Re: Can anyone help me run python scripts with http.server?

2015-09-07 Thread Cameron Simpson

On 07Sep2015 14:57, Chris Angelico  wrote:

On Mon, Sep 7, 2015 at 2:05 PM, Cameron Simpson  wrote:

Another nice thing about Flask is that you can run it standalone without
Apache. I'm knocking something together right now using Flask, and I'm
intending to run it without Apache at all. There'll be an haproxy in front
of it for other reasons, but to get off the ground you don't even need that.


Running a Flask app standalone is, if I'm not mistaken, good for
low-traffic usage only.


I know. But the current target use is low traffic:-)

Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


Re: Django Calendar

2015-09-07 Thread Mahan Marwat
Django is not Python.
This question better suits to Django group: 
https://groups.google.com/forum/#!forum/django-users
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Django Calendar

2015-09-07 Thread Laura Creighton
In a message of Sun, 06 Sep 2015 13:52:16 -0700, [email protected] writes:
>Does anyone know of an easy to follow guide/tutorial to follow. I am trying to 
>implement a calendar into my app that works as a job rota for employees. I 
>have tried using django-scheduler and creating htmlcalendar but can not get 
>either method to work
>-- 
>https://mail.python.org/mailman/listinfo/python-list

There is a'make a calendar app' as part of 'Django by Example'
http://lightbird.net/dbe/cal1.html

I have no idea about the quality of Django by Example, though ...

Laura
-- 
https://mail.python.org/mailman/listinfo/python-list


install pip

2015-09-07 Thread [email protected]

hi:
   I cross compiled python2.7.10 and install python on my embedded 
device. But now, I may install pip on my embedded device.

   So, I did it as follow:
   1>I execute cmd:python -m ensurepip. It ocuurs errors as follow:
   Traceback (most recent call last):
File "/usr/lib/python/lib/python27.zip/runpy.py", line 162, 
in _run_module_as_main
File "/usr/lib/python/lib/python27.zip/runpy.py", line 72, 
in _run_code
File 
"/var/app/python/libs/ensurepip.zip/ensurepip/__main__.py", line 4, in 

File 
"/var/app/python/libs/ensurepip.zip/ensurepip/__init__.py", line 226, in 
_main
File 
"/var/app/python/libs/ensurepip.zip/ensurepip/__init__.py", line 123, in 
bootstrap
File 
"/var/app/python/libs/ensurepip.zip/ensurepip/__init__.py", line 45, in 
_run_pip
File 
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/__init__.py", line 
15, in 
File 
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/vcs/subversion.py", 
line 9, in 
File 
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/index.py", line 30, 
in 
File 
"/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl/pip/_vendor/__init__.py", 
line 92, in load_module

ImportError: No module named 'pip._vendor.html5lib'
The message "/tmp/tmprHZPx4/pip-6.1.1-py2.py3-none-any.whl" point out 
the pip package in that dir, while it is not there.
   2>As a result of the above error message, I download the 
pip-7.1.2 package and install it on my embedded device. It ocuurs errors 
as follow:

   # python setup.py install
   Traceback (most recent call last):
File "setup.py", line 6, in 
from setuptools import setup, find_packages
ImportError: No module named setuptools
   #
   3> I I download the setuptools package and  execute cmd: python 
setup.py install.It ocuurs errors as follow:

   # python setup.py install
Traceback (most recent call last):
 File "setup.py", line 6, in 
 from setuptools import setup, find_packages
 File 
"/var/app/python/libs/setuptools.zip/setuptools/__init__.py", line 12, 
in 
 File 
"/var/app/python/libs/setuptools.zip/setuptools/extension.py", line 8, 
in 
 File 
"/var/app/python/libs/setuptools.zip/setuptools/dist.py", line 19, in 


 ImportError: No module named pkg_resources
  So, where can i download the pkg_resources package. Is there 
somebody installed pip on embedded device? can you tell me how to do that?




-- 
https://mail.python.org/mailman/listinfo/python-list


Re: install pip

2015-09-07 Thread Laura Creighton
Try that question on [email protected] where the authors
of pip are.

Laura

-- 
https://mail.python.org/mailman/listinfo/python-list


python---configure file

2015-09-07 Thread [email protected]

hi:
   I download the python2.7.10 package and execute cmd: ./configure 
--help.It is messages as follow:


   Optional Packages:
--with-PACKAGE[=ARG]use PACKAGE [ARG=yes]
--without-PACKAGE   do not use PACKAGE (same as --with-PACKAGE=no)
  --with-universal-archs=ARCH
  select architectures for universal build 
("32-bit",

  "64-bit", "3-way", "intel" or "all")
  --with-framework-name=FRAMEWORK
  specify an alternate name of the framework built
  with --enable-framework
  ..
  ..
--with(out)-ensurepip=[=OPTION]
  "install" or "upgrade" using bundled pip, 
default is "no"
 So, I do not know how to use package option: --with-PACKAGE[=ARG]. 
It(PACKAGE) means 3rd party packages which I download from website? 
which directory can i put it In python2.7.10 package? For example, I 
download pip7.1.2 from website and I put it in python2.7.10 package dir. 
Therefor, I add compile option --with-pip7.1.2=yes when i compile 
python2.7.10. Does it correct? --with(out)-ensurepip=[=OPTION], how can 
i use it?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: XML Binding

2015-09-07 Thread Palpandi
Hi All,

Is it better to use pyxb than lxml?

What are the advantages of lxml and pyxb?

Thanks,
Palpandi
-- 
https://mail.python.org/mailman/listinfo/python-list


mocking request and still getting certain ones locally

2015-09-07 Thread Larry Martell
I use the getsentry/responses package
(https://github.com/getsentry/responses) for mocking the requests
library for unit testing. It works great but now I have a situation
where I need to talk to a local server but have my remote requests
mocked out. With getsentry/responses I cannot do that - all the
requests go to the mock server. Has anyone done something like this
with any other package?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: python

2015-09-07 Thread Denis McMahon
On Sun, 06 Sep 2015 16:09:42 -0700, babi pepek wrote:

> I wand update

update

There, now you have update.

-- 
Denis McMahon, [email protected]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Trying pmw with python3: Lots of crashes!

2015-09-07 Thread Paulo da Silva
Às 06:24 de 07-09-2015, Christian Gollwitzer escreveu:
> Am 07.09.15 um 03:40 schrieb Paulo da Silva:
...

>>
> For a multicolumn editable list I suggest using tablelist. There are
> Python bindings around. Scrolling in Tk is generally done by grouping
> together scrollbars and widgets in a frame and connecting the scrollbars
> scrollcommands with xview/yview.
> 
I have found tablelist (tklib) and a wrapper to python2.
May be I'll give it a try changing the wrapper to python3.
For now I am trying (learning) Laura's suggestion kivy.

Thanks.
Paulo

-- 
https://mail.python.org/mailman/listinfo/python-list


[RELEASED] Python 3.5.0rc3 is now available

2015-09-07 Thread Larry Hastings



On behalf of the Python development community and the Python 3.5 release 
team, I'm relieved to announce the availability of Python 3.5.0rc3, also 
known as Python 3.5.0 Release Candidate 3.


The next release of Python 3.5 will be Python 3.5.0 final.  There should 
be few (or no) changes to Python 3.5 between rc3 and final.


This is a preview release, and its use is not recommended for production 
settings.



You can find Python 3.5.0rc3 here:

https://www.python.org/downloads/release/python-350rc3/

Windows and Mac users: please read the important platform-specific 
"Notes on this release" section near the end of that page.



Happy hacking,


//arry/
-- 
https://mail.python.org/mailman/listinfo/python-list


python---configure file

2015-09-07 Thread [email protected]


hi:
   I download the python2.7.10 package and execute cmd: ./configure 
--help.It is messages as follow:


   Optional Packages:
--with-PACKAGE[=ARG]use PACKAGE [ARG=yes]
--without-PACKAGE   do not use PACKAGE (same as --with-PACKAGE=no)
  --with-universal-archs=ARCH
  select architectures for universal build 
("32-bit",

  "64-bit", "3-way", "intel" or "all")
  --with-framework-name=FRAMEWORK
  specify an alternate name of the framework built
  with --enable-framework
  ..
  ..
--with(out)-ensurepip=[=OPTION]
  "install" or "upgrade" using bundled pip, 
default is "no"
 So, I do not know how to use package option: --with-PACKAGE[=ARG]. 
It(PACKAGE) means 3rd party packages which I download from website? 
which directory can i put it In python2.7.10 package? For example, I 
download pip7.1.2 from website and I put it in python2.7.10 package dir. 
Therefor, I add compile option --with-pip7.1.2=yes when i compile 
python2.7.10. Does it correct? --with(out)-ensurepip=[=OPTION], how can 
i use it?Is there anybody know that?



-- 
https://mail.python.org/mailman/listinfo/python-list