Problem with Python 2.6 + PIL + Google App Engine

I am using OS X 1.6 Snow Leopard and I have successfully received PIL. I can open a terminal and import a type image without any errors.

However, when I use the application engine, I get an Image error, which still says that PIL is not installed. I am wondering if any of you have any thoughts on how I can solve this problem.

Matthew

+3
source share
5 answers

Apparently, Google provides PIL in the module google.appengine.api.images. You can see examples of how to use it in the Documentation on the App Engine - Using the Python Image API .

+3

GoogleAppEngineLauncher | , Python Path /usr/local/bin/python 2.5

.

+1

PIL Appengine; C . PIL, , API dev_appserver, SDK- API PIL, , PIL API ; API .

, Python 2.5 , 2.5.2, Python 2.6 ( " FooError as bar" ), , .

0

, , .

, , , . , -, , Python, C:\python27_x64, pythonw.exe Google App Engine.

FYI, Windows 8.1


"C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\appcfg.py", 127,   run_file ( , globals()) "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\appcfg.py", 123, run_file   execfile (_PATHS.script_file (_), globals_) "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\appcfg.py" , 5399,    (sys.argv) "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\appcfg.py" , 5390,   result = AppCfgApp (argv).Run() "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\appcfg.py" , 2980, Run   self.action() "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\appcfg.py" , 5046,    () "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\appcfg.py" , 3793, ""   self._UpdateWithParsedAppYaml (appyaml, self.basepath) "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\appcfg.py" , 3814, _UpdateWithParsedAppYaml   updatecheck.CheckForUpdates() "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\sdk_update_checker.py", 243, CheckForUpdates    = )) "C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools\appengine_rpc.py", 424,   f = self.opener.open(req) "C:\Python27\lib\urllib2.py", 431,   response = self._open (req, data) "C:\Python27\lib\urllib2.py", 449, _open   '_open', req) "C:\Python27\lib\urllib2.py", 409, _call_chain   result = func (* args) "C:\Python27\lib\urllib2.py", 1240, https_open    = self._context) TypeError: do_open() 'context' 2015-02-08 17:42:53 ( 1)

You can close this window now.

0
source

How did you install PIL? If I remember correctly, I had to install it through MacPorts to get the App Engine SDK to find out that it was installed.

You should probably install Python 2.5 and use this while you're on it, since this is the version of Python that App Engine uses and develops against 2.6 locally, it can potentially lead to unexpected problems when deploying your application.

-1
source

Source: https://habr.com/ru/post/1746615/


All Articles