[google-appengine] Re: python problems - HTTPSHandler

2009-02-01 Thread chazmatazz

Are you using MacPorts?

http://aralbalkan.com/1692

On Jan 30, 12:21 pm, Robert  wrote:
> Hi @ll,
>
> This has probably been asked before, in that case, sorry for my
> ignorance.
>
> My system only had python 2.4 installed. So I downloaded python 2.5.3,
> build it on my system, enabling the md5, and various necessary sha...
> modules, and now reach a point where python itself seems to start up
> nicely, but I'm running into a problem with urllib2.
>
> $ Python-2.5.4/python -v google_appengine/dev_appserver.py apps/
> helloworld/
>
> [...]
> import cookielib # precompiled from /home/rhundt/projects/Python-2.5.4/
> Lib/cookielib.pyc
> # /home/rhundt/projects/Python-2.5.4/Lib/_LWPCookieJar.pyc matches /
> home/rhundt/projects/Python-2.5.4/Lib/_LWPCookieJar.py
> import _LWPCookieJar # precompiled from /home/rhundt/projects/
> Python-2.5.4/Lib/_LWPCookieJar.pyc
> # /home/rhundt/projects/Python-2.5.4/Lib/_MozillaCookieJar.pyc
> matches /home/rhundt/projects/Python-2.5.4/Lib/_MozillaCookieJar.py
> import _MozillaCookieJar # precompiled from /home/rhundt/projects/
> Python-2.5.4/Lib/_MozillaCookieJar.pyc
> Traceback (most recent call last):
>   File "google_appengine/dev_appserver.py", line 60, in 
>     run_file(__file__, globals())
>   File "google_appengine/dev_appserver.py", line 57, in run_file
>     execfile(script_path, globals_)
>   File "/home/rhundt/projects/google_appengine/google/appengine/tools/
> dev_appserver_main.py", line 73, in 
>     from google.appengine.tools import appcfg
>   File "/home/rhundt/projects/google_appengine/google/appengine/tools/
> appcfg.py", line 55, in 
>     from google.appengine.tools import appengine_rpc
>   File "/home/rhundt/projects/google_appengine/google/appengine/tools/
> appengine_rpc.py", line 31, in 
>     https_handler = urllib2.HTTPSHandler
> AttributeError: 'module' object has no attribute 'HTTPSHandler'
>
> Did anybody else run into this before?
>
> Thanks
>   Robert

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: python problems - HTTPSHandler

2009-02-02 Thread Robert

Interestingly, things work just fine on my Mac. I was having problems
with the Linux setup.

I tried to rebuild my python etc., still no success. I verified that /
usr/bin/env python points to my latest 2.5 build. No success.

I guess I will be working on my Mac for a while... ;-)

Thanks for the help
  Robert

On Feb 1, 10:20 am, chazmatazz  wrote:
> Are you using MacPorts?
>
> http://aralbalkan.com/1692
>
> On Jan 30, 12:21 pm, Robert  wrote:
>
> > Hi @ll,
>
> > This has probably been asked before, in that case, sorry for my
> > ignorance.
>
> > My system only hadpython2.4 installed. So I downloadedpython2.5.3,
> > build it on my system, enabling the md5, and various necessary sha...
> > modules, and now reach a point wherepythonitself seems to start up
> > nicely, but I'm running into a problem with urllib2.
>
> > $Python-2.5.4/python-v google_appengine/dev_appserver.py apps/
> > helloworld/
>
> > [...]
> > import cookielib # precompiled from /home/rhundt/projects/Python-2.5.4/
> > Lib/cookielib.pyc
> > # /home/rhundt/projects/Python-2.5.4/Lib/_LWPCookieJar.pyc matches /
> > home/rhundt/projects/Python-2.5.4/Lib/_LWPCookieJar.py
> > import _LWPCookieJar # precompiled from /home/rhundt/projects/
> >Python-2.5.4/Lib/_LWPCookieJar.pyc
> > # /home/rhundt/projects/Python-2.5.4/Lib/_MozillaCookieJar.pyc
> > matches /home/rhundt/projects/Python-2.5.4/Lib/_MozillaCookieJar.py
> > import _MozillaCookieJar # precompiled from /home/rhundt/projects/
> >Python-2.5.4/Lib/_MozillaCookieJar.pyc
> > Traceback (most recent call last):
> >   File "google_appengine/dev_appserver.py", line 60, in 
> > run_file(__file__, globals())
> >   File "google_appengine/dev_appserver.py", line 57, in run_file
> > execfile(script_path, globals_)
> >   File "/home/rhundt/projects/google_appengine/google/appengine/tools/
> > dev_appserver_main.py", line 73, in 
> > from google.appengine.tools import appcfg
> >   File "/home/rhundt/projects/google_appengine/google/appengine/tools/
> > appcfg.py", line 55, in 
> > from google.appengine.tools import appengine_rpc
> >   File "/home/rhundt/projects/google_appengine/google/appengine/tools/
> > appengine_rpc.py", line 31, in 
> > https_handler = urllib2.HTTPSHandler
> > AttributeError: 'module' object has no attribute 'HTTPSHandler'
>
> > Did anybody else run into this before?
>
> > Thanks
> >   Robert
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: python problems - HTTPSHandler

2009-02-03 Thread Alexander Artemenko

I have found, that if you are working with macports, than you need to
install py25-socket-ssl module:

sudo port install py25-socket-ssl

I suggest, if you are working on the "debian like" linux, then you
should try something like that first:

apt-cache search python ssl

Or, as a last resort, make sudo easy_install ssl (i should download
and install ssl module from the http://pypi.python.org/pypi/ssl/)

On 2 фев, 21:57, Robert  wrote:
> Interestingly, things work just fine on my Mac. I was having problems
> with the Linux setup.

Good luck

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: python problems - HTTPSHandler

2009-02-09 Thread Haiming

I encountered similar problem on Ubuntu Linux:

$ dev_appserver.py evaluation/
Traceback (most recent call last):
  File "/usr/local/google/laihaiming/google_appengine/
dev_appserver.py", line 55, in 
execfile(script_path, globals())
  File "/usr/local/google/laihaiming/google_appengine/google/appengine/
tools/dev_appserver_main.py", line 358, in 
sys.exit(main(sys.argv))
  File "/usr/local/google/laihaiming/google_appengine/google/appengine/
tools/dev_appserver_main.py", line 316, in main
server = MakeRpcServer(option_dict)
  File "/usr/local/google/laihaiming/google_appengine/google/appengine/
tools/dev_appserver_main.py", line 277, in MakeRpcServer
host_override=option_dict[ARG_ADMIN_CONSOLE_HOST])
  File "/usr/local/google/laihaiming/google_appengine/google/appengine/
tools/appcfg.py", line 125, in __init__
self.opener = self._GetOpener()
  File "/usr/local/google/laihaiming/google_appengine/google/appengine/
tools/appcfg.py", line 338, in _GetOpener
opener.add_handler(urllib2.HTTPSHandler())
AttributeError: 'module' object has no attribute 'HTTPSHandler'

My python version is 2.5.4. Does anyone know the cause ?

On Feb 4, 4:42 am, Alexander Artemenko 
wrote:
> I have found, that if you are working with macports, than you need to
> install py25-socket-ssl module:
>
> sudo port install py25-socket-ssl
>
> I suggest, if you are working on the "debian like" linux, then you
> should try something like that first:
>
> apt-cache search python ssl
>
> Or, as a last resort, make sudo easy_install ssl (i should download
> and install ssl module from thehttp://pypi.python.org/pypi/ssl/)
>
> On 2 фев, 21:57, Robert  wrote:
>
> > Interestingly, things work just fine on my Mac. I was having problems
> > with the Linux setup.
>
> Good luck

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: python problems - HTTPSHandler

2009-02-09 Thread Brett C.



On Feb 9, 1:29 am, Haiming  wrote:
> I encountered similar problem on Ubuntu Linux:
>
> $ dev_appserver.py evaluation/
> Traceback (most recent call last):
>   File "/usr/local/google/laihaiming/google_appengine/
> dev_appserver.py", line 55, in 
>     execfile(script_path, globals())
>   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> tools/dev_appserver_main.py", line 358, in 
>     sys.exit(main(sys.argv))
>   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> tools/dev_appserver_main.py", line 316, in main
>     server = MakeRpcServer(option_dict)
>   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> tools/dev_appserver_main.py", line 277, in MakeRpcServer
>     host_override=option_dict[ARG_ADMIN_CONSOLE_HOST])
>   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> tools/appcfg.py", line 125, in __init__
>     self.opener = self._GetOpener()
>   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> tools/appcfg.py", line 338, in _GetOpener
>     opener.add_handler(urllib2.HTTPSHandler())
> AttributeError: 'module' object has no attribute 'HTTPSHandler'
>
> My python version is 2.5.4. Does anyone know the cause ?
>

Check if the ssl module is built. If you can't import ssl then that's
the problem and you need to follow the instructions others have
pointed out in this thread on how to use apt-get to download the
module.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: python problems - HTTPSHandler

2009-03-13 Thread matej

Hi, all i need (Linux - ubuntu) is to run python directly (path
problems or ???)
/usr/bin/python2.5 -u /home/.../Packages/GAE/google_appengine/
appcfg.py --email=myem...@gmail update MyApp
(My first app in python :)

On Feb 10, 12:30 am, "Brett C."  wrote:
> On Feb 9, 1:29 am, Haiming  wrote:
>
>
>
> > I encountered similar problem on Ubuntu Linux:
>
> > $ dev_appserver.py evaluation/
> > Traceback (most recent call last):
> >   File "/usr/local/google/laihaiming/google_appengine/
> > dev_appserver.py",line55, in 
> >     execfile(script_path, globals())
> >   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> > tools/dev_appserver_main.py",line358, in 
> >     sys.exit(main(sys.argv))
> >   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> > tools/dev_appserver_main.py",line316, in main
> >     server = MakeRpcServer(option_dict)
> >   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> > tools/dev_appserver_main.py",line277, in MakeRpcServer
> >     host_override=option_dict[ARG_ADMIN_CONSOLE_HOST])
> >   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> > tools/appcfg.py",line125, in __init__
> >     self.opener = self._GetOpener()
> >   File "/usr/local/google/laihaiming/google_appengine/google/appengine/
> > tools/appcfg.py",line338, in _GetOpener
> >     opener.add_handler(urllib2.HTTPSHandler())
> >AttributeError: 'module'objecthasnoattribute'HTTPSHandler'
>
> > My python version is 2.5.4. Does anyone know the cause ?
>
> Check if the sslmoduleis built. If you can't import ssl then that's
> the problem and you need to follow the instructions others have
> pointed out in this thread on how to use apt-get to download themodule.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---