Hi,


I use GAE - Google Application Engine Python - and my project raises error 
during 'import requests' when it is ran under GAE sandbox (locally).


'platform' now is used in requests/utils.py after the commit 'proxy bypass 
on Windows without DNS lookups' ( 
https://github.com/kennethreitz/requests/commits/master/requests/utils.py )

GAE doesn't have _winreg in sys.modules and the _winreg is called by 
platform.py. In platform.py: system() function -> uname() -> win32_ver() -> 
import _winreg.


<https://lh3.googleusercontent.com/-JGfXFlX3ACQ/WRhlEci5LdI/AAAAAAAATGg/4Q6mwFNqu9ENUsSiP4KJnmxNYQdBSGyXQCLcB/s1600/imagem001.png>


I don't know why GAE doesn't import _winreg. It seems GAE was developed in 
Unix-like platform.


GAE uses requests library too, but it uses an old version.


If I copy an old requests version to my project (without import platform) 
and it works nice. I'd like to use update version. Besides I believe that 
can became a problem to other developers, because all documents say to 
developers install requests (third-part libraries) inside their GAE project 
(pip install requests -t lib)


I'm not sure if this is a problem with the Requests project or Google.


Regards,
André

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d59f60da-a4ff-487f-b2b0-4dcc60a1f7f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Andre Avilla

Reply via email to