Django Tutorial (Database setup) Question

2015-09-27 Thread Cai Gengyang
Hello all ! So I am going through the (Database setup) chapter of this tutorial (https://docs.djangoproject.com/en/1.8/intro/tutorial01/) --- Its the section right after the first chapter on "Creating a project" I opened up mysite/settings.py as per the instructions on the Django tutorial. Ho

Re: ConnectionError handling problem

2015-09-27 Thread Gonzalo V
Hi Cameron. i had the same problems and you have to tell to python what to do with the connect problem. try this: ... except *urllib.error.HTTPError* as e: if e.getcode()==504: disp = "SIN RESPUESTA DEL SERVIDOR" #(No answer from the server) nombre=''

PY3.5 and nnumpy and scipy installation problem

2015-09-27 Thread Ek Esawi
Hi Steven, Thank you for the prompt response. What I meant by not working is the following: once I had py3.5 working, I downloaded numpy and scipy and unzipped them. After that I tried to install them. But there is no install file for either. There was a setup file which I thought would do the sa

Python IDLE won't start

2015-09-27 Thread Jacob Chaar
Hi there, So, I download Python 3.5.0 and I while I execute the Python IDLE, it won't start up. Also, I try to open the python command line and a message error pop up. If you can help me, it will be really appreciate. Regards, Jacob Chaar -- https://mail.python.org/mailman/listinf

Beginning question #compilersetup, #windows7, #vs2010

2015-09-27 Thread Jeff VanderDoes
All, I'm fairly new to Python and was excited to start playing with it until I ran into need to compile some extensions under windows 7 64 bit. I've done some searching but after more hours than I care to count being unsuccessful setting up MS visual studio (2015, 2012, and 2010) with service pac

Re: Python IDLE won't start

2015-09-27 Thread Cai Gengyang
On Sunday, September 27, 2015 at 4:41:54 PM UTC+8, Jacob Chaar wrote: > Hi there, > > So, I download Python 3.5.0 and I while I execute the Python IDLE, it won't > start up. Also, I try to open the python command line and a message error > pop up. > > If you can help me, it will be really a

Re: Python IDLE won't start

2015-09-27 Thread mm0fmf via Python-list
On 26/09/2015 18:14, Jacob Chaar wrote: Hi there, So, I download Python 3.5.0 and I while I execute the Python IDLE, it won’t start up. Also, I try to open the python command line and a message error pop up. If you can help me, it will be really appreciate. Regards, Jacob Chaar Maybe if you

Re: Python IDLE won't start

2015-09-27 Thread Laura Creighton
In a message of Sat, 26 Sep 2015 13:14:44 -0400, Jacob Chaar writes: >Hi there, > > > >So, I download Python 3.5.0 and I while I execute the Python IDLE, it won't >start up. Also, I try to open the python command line and a message error >pop up. > > > >If you can help me, it will be really app

Re: Python IDLE won't start

2015-09-27 Thread Terry Reedy
On 9/27/2015 8:03 AM, Cai Gengyang wrote: Step 1 : Download Python 3.5 from here --- https://www.python.org/downloads/ Step 2 : Install it Step 3 : Click on the 'IDLE' button --- for me , I am using a Mac so I click on 'Finder', then type IDLE in the search field on the top right corner of the '

Re: Beginning question #compilersetup, #windows7, #vs2010

2015-09-27 Thread Mark Lawrence
On 26/09/2015 22:40, Jeff VanderDoes wrote: All, I'm fairly new to Python and was excited to start playing with it until I ran into need to compile some extensions under windows 7 64 bit. I've done some searching but after more hours than I care to count being unsuccessful setting up MS visual

Re: Django Tutorial (Database setup) Question

2015-09-27 Thread Joel Goldstick
On Sun, Sep 27, 2015 at 3:32 AM, Cai Gengyang wrote: > Hello all ! > > So I am going through the (Database setup) chapter of this tutorial ( > https://docs.djangoproject.com/en/1.8/intro/tutorial01/) --- Its the > section right after the first chapter on "Creating a project" > > I opened up mysit

Re: Django Tutorial (Database setup) Question

2015-09-27 Thread Cai Gengyang
I believe I am already in the same directory that contains manage.py , but I still get an error (a syntax error). Checked the lines in settings.py and can't find anything wrong with them either. Posted my entire code below : CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite folder CaiGengYangs

Re: Django Tutorial (Database setup) Question

2015-09-27 Thread Cai Gengyang
I believe I am already in the same directory that contains manage.py , but I still get an error (a syntax error). Checked the lines in settings.py and can't find anything wrong with them either. Posted my entire code below : CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite folder CaiGengYangs-M

Help with Debugging

2015-09-27 Thread Cai Gengyang
http://pastebin.com/RWt1mp7F --- If anybody can find any errors with this settings.py file, let me know ! Can't seem to find anything wrong with it ... -- https://mail.python.org/mailman/listinfo/python-list

Fwd: Django Tutorial (Database setup) Question

2015-09-27 Thread Chris Warrick
Forwarding to list (forgot about this stupid reply all thing, sorry). -- Forwarded message -- From: Chris Warrick Date: 27 September 2015 at 19:50 Subject: Re: Django Tutorial (Database setup) Question To: Cai Gengyang On 27 September 2015 at 19:39, Cai Gengyang wrote: > http

Re: Beginning question #compilersetup, #windows7, #vs2010

2015-09-27 Thread eryksun
On Sat, Sep 26, 2015 at 4:40 PM, Jeff VanderDoes wrote: > > I'm fairly new to Python and was excited to start playing with it until I > ran into need to compile some extensions under windows 7 64 bit. I've done > some searching but after more hours than I care to count being unsuccessful > settin

PY3.5 and nnumpy and scipy installation problem

2015-09-27 Thread paul . anton . letnes
Easiest way of installing is removing the python you've installed already and installing continuum's anaconda python 3.x (for x = 4 or 5). It has "batteries included" - numpy, scipy and many others! Paul -- https://mail.python.org/mailman/listinfo/python-list

PY3.5 and nnumpy and scipy installation problem

2015-09-27 Thread paul . anton . letnes
I'll heartily recommend anaconda python. It's got everything you need prepackaged. Remove what you installed before. Cheers Pauk -- https://mail.python.org/mailman/listinfo/python-list

Interacting with a web site, which lib?

2015-09-27 Thread paul . hermeneutic
Does anyone have an opinion on the relative merits of using the following packages to interact with web sites? Mechanize - cannot run under Python 3 Requests Robobrowser -- https://mail.python.org/mailman/listinfo/python-list

Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
I am the author of https://www.tundraware.com/Software/twander, a cross platform, macro- programmable file manager written in python/tkinter. Of late, I am seeing core dumps of this program (which has been stable/mature for some years) but only on VPS servers, both FreeBSD 10 and CentOS 6/7. Is

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
On 09/27/2015 04:20 PM, Tim Daneliuk wrote: > I am the author of https://www.tundraware.com/Software/twander, a cross > platform, macro- > programmable file manager written in python/tkinter. > > Of late, I am seeing core dumps of this program (which has been stable/mature > for some > years) bu

Re: Interacting with a web site, which lib?

2015-09-27 Thread Laura Creighton
In a message of Sun, 27 Sep 2015 15:05:37 -0600, paul.hermeneu...@gmail.com wri tes: >Does anyone have an opinion on the relative merits of using the >following packages to interact with web sites? > >Mechanize - cannot run under Python 3 >Requests >Robobrowser I don't know anything about mechaniz

Re: Interacting with a web site, which lib?

2015-09-27 Thread Gonzalo V
I am working with selenium for.python. easy and powerful saludos, desde un móvil. El sep 27, 2015 6:01 p.m., "Laura Creighton" escribió: > In a message of Sun, 27 Sep 2015 15:05:37 -0600, > paul.hermeneu...@gmail.com wri > tes: > >Does anyone have an opinion on the relative merits of using the >

Re: Interacting with a web site, which lib?

2015-09-27 Thread Gonzalo V
Selenium https://selenium-python.readthedocs.org/ i used pip for install it. Saludos, Gonzalo 2015-09-27 18:16 GMT-04:00 Gonzalo V : > I am working with selenium for.python. easy and powerful > > saludos, > desde un móvil. > El sep 27, 2015 6:01 p.m., "Laura Creighton" escribió: > >> In a m

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Paul Rubin
Tim Daneliuk writes: > this is somehow VPS related but not sure where to start. How are you expecting tkinter to work on a vps, when there is no window system? It wouldn't surprise me if tk is crashing. -- https://mail.python.org/mailman/listinfo/python-list

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Terry Reedy
On 9/27/2015 5:31 PM, Tim Daneliuk wrote: Of late, I am seeing core dumps of this program (which has been stable/mature for some years) but only on VPS servers, both FreeBSD 10 and CentOS 6/7. Correction: It dumps core on FreeBSD 10.2 Dumping core when there is no terminal server, instead

python.org bugs

2015-09-27 Thread Terry Reedy
1. No easy way to report bugs "Submit Website Bugs" takes me to https://github.com/python/pythondotorg/issues which wants me to get an account and login, even to report a typo, or in this case, a dead link. I won't do that. For bugs.python.org, one can report bugs here and someone who agree m

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Paul Rubin
Terry Reedy writes: > Dumping core when there is no terminal server, instead of exiting > gracefully, might be considered a bug. I wonder if it's a missing or wrong .so since there's no X and maybe no X libraries. That might lead to a crash. -- https://mail.python.org/mailman/listinfo/python-li

Re: Help with Debugging

2015-09-27 Thread Steven D'Aprano
On Mon, 28 Sep 2015 03:45 am, Cai Gengyang wrote: > http://pastebin.com/RWt1mp7F --- If anybody can find any errors with this > settings.py file, let me know ! > > Can't seem to find anything wrong with it ... Perhaps there is nothing wrong with it. What makes you think that there is? Do you ge

Re: python.org bugs

2015-09-27 Thread Chris Angelico
On Mon, Sep 28, 2015 at 9:57 AM, Terry Reedy wrote: > 1. No easy way to report bugs "Submit Website Bugs" takes me to > https://github.com/python/pythondotorg/issues > which wants me to get an account and login, even to report a typo, or in > this case, a dead link. I won't do that. > > For bugs.

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
On 09/27/2015 05:29 PM, Paul Rubin wrote: > Tim Daneliuk writes: >> this is somehow VPS related but not sure where to start. > > How are you expecting tkinter to work on a vps, when there is no window > system? It wouldn't surprise me if tk is crashing. > You may have heard about this thing ca

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
On 09/27/2015 06:32 PM, Terry Reedy wrote: > On 9/27/2015 5:31 PM, Tim Daneliuk wrote: > >>> Of late, I am seeing core dumps of this program (which has been >>> stable/mature for some >>> years) but only on VPS servers, both FreeBSD 10 and CentOS 6/7. > >> Correction: It dumps core on FreeBSD 1

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Chris Angelico
On Mon, Sep 28, 2015 at 12:37 PM, Tim Daneliuk wrote: > You may have heard about this thing called X Windows and this other thing > called > ssh that easily permit VPS instances to run GUI code while displaying things > on a remote X server. I'd still be curious about the possibility of a missin

Re: python.org bugs

2015-09-27 Thread Terry Reedy
On 9/27/2015 8:38 PM, Chris Angelico wrote: What's the issue, precisely? 2. https://github.com/python/pythondotorg/issues Sorry, this page https://www.python.org/doc/essays/omg-darpa-mcc-position/ at "Python has been used to implement a web browser (Grail). " links 'Grail' to grail.python.

Re: python.org bugs

2015-09-27 Thread Chris Angelico
On Mon, Sep 28, 2015 at 1:54 PM, Terry Reedy wrote: > Sorry, this page > https://www.python.org/doc/essays/omg-darpa-mcc-position/ > at "Python has been used to implement a web browser (Grail). " Got it, thanks. https://github.com/python/pythondotorg/issues/828 ChrisA -- https://mail.python.or

Re: Help with Debugging

2015-09-27 Thread Cai Gengyang
This is my input and output error message (the whole thing) : CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite folder CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ ls manage.pymysite CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ python manage.py migrate Traceback (most recent call

Re: Help with Debugging

2015-09-27 Thread Andrea D'Amore
On 2015-09-28 05:26:35 +, Cai Gengyang said: File "/Users/CaiGengYang/mysite/mysite/settings.py", line 45 'django.middleware.csrf.CsrfViewMiddleware', ^ SyntaxError: invalid syntax The syntax looks fine in the pastebin, did you possibl

Re: Help with Debugging

2015-09-27 Thread Cai Gengyang
I am glad to announce that it works now ! The error was an addition random 'qq' that somehow appeared in my settings.py file on line 44. Once I spotted and removed it , the code works. I have pasted the entire successful piece of code here for viewing and discussion ... CaiGengYangs-MacBook-Pro

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Paul Rubin
Tim Daneliuk writes: > P.S. X applications like xterm work flawlessly on the hosts in question. It could still be that tk requires some client libraries that are missing, that xterm doesn't use. xterm is a much older and cruftier program. Does Gnome work? For that matter, does Idle work (it is