Hi, On Thu, Apr 19, 2012 at 7:12 AM, Computer_Engineer <[email protected]> wrote: > > I provided my app.yaml in the question,and this is the trace: > INFO 2012-04-18 21:08:25,615 appengine_rpc.py:159] Server: > appengine.google.com > INFO 2012-04-18 21:08:25,904 rdbms_sqlite.py:58] Connecting to SQLite > database '' with file > 'c:\\users\\me\\appdata\\local\\temp\\dev_appserver.rdbms' > INFO 2012-04-18 21:08:26,200 dev_appserver_multiprocess.py:637] Running > application compressanddecompress on port 8080: http://localhost:8080 > ERROR 2012-04-18 21:09:16,936 dev_appserver.py:4096] Exception > encountered handling request > Traceback (most recent call last): > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 4039, in _HandleRequest > self._Dispatch(dispatcher, self.rfile, outfile, env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3945, in _Dispatch > base_env_dict=env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 605, in Dispatch > base_env_dict=base_env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3015, in Dispatch > self._module_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2925, in ExecuteCGI > reset_modules = exec_script(handler_path, cgi_path, hook) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2785, in ExecuteOrImportScript > exec module_code in script_module.__dict__ > File "C:\Users\me\workspace\img_filter\helloworld.py", line 1, in <module> > from PIL import Image > ImportError: No module named PIL
Could you send the stack trace from production, not from your development server? Cheers, Brian > INFO 2012-04-18 21:09:16,938 dev_appserver.py:4143] "GET / HTTP/1.1" 500 > - > ERROR 2012-04-18 21:09:17,328 dev_appserver.py:4096] Exception > encountered handling request > Traceback (most recent call last): > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 4039, in _HandleRequest > self._Dispatch(dispatcher, self.rfile, outfile, env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3945, in _Dispatch > base_env_dict=env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 605, in Dispatch > base_env_dict=base_env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3015, in Dispatch > self._module_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2925, in ExecuteCGI > reset_modules = exec_script(handler_path, cgi_path, hook) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2785, in ExecuteOrImportScript > exec module_code in script_module.__dict__ > File "C:\Users\me\workspace\img_filter\helloworld.py", line 1, in <module> > from PIL import Image > ImportError: No module named PIL > INFO 2012-04-18 21:09:17,328 dev_appserver.py:4143] "GET /favicon.ico > HTTP/1.1" 500 - > ERROR 2012-04-18 21:09:37,575 dev_appserver.py:4096] Exception > encountered handling request > Traceback (most recent call last): > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 4039, in _HandleRequest > self._Dispatch(dispatcher, self.rfile, outfile, env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3945, in _Dispatch > base_env_dict=env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 605, in Dispatch > base_env_dict=base_env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3015, in Dispatch > self._module_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2925, in ExecuteCGI > reset_modules = exec_script(handler_path, cgi_path, hook) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2785, in ExecuteOrImportScript > exec module_code in script_module.__dict__ > File "C:\Users\me\workspace\img_filter\helloworld.py", line 1, in <module> > from PIL import Image > ImportError: No module named PIL > INFO 2012-04-18 21:09:37,576 dev_appserver.py:4143] "GET / HTTP/1.1" 500 > - > ERROR 2012-04-18 21:09:37,904 dev_appserver.py:4096] Exception > encountered handling request > Traceback (most recent call last): > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 4039, in _HandleRequest > self._Dispatch(dispatcher, self.rfile, outfile, env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3945, in _Dispatch > base_env_dict=env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 605, in Dispatch > base_env_dict=base_env_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 3015, in Dispatch > self._module_dict) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2925, in ExecuteCGI > reset_modules = exec_script(handler_path, cgi_path, hook) > File "C:\Program > Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line > 2785, in ExecuteOrImportScript > exec module_code in script_module.__dict__ > File "C:\Users\me\workspace\img_filter\helloworld.py", line 1, in <module> > from PIL import Image > ImportError: No module named PIL > INFO 2012-04-18 21:09:37,904 dev_appserver.py:4143] "GET /favicon.ico > HTTP/1.1" 500 - > > On Tuesday, April 17, 2012 5:11:44 PM UTC+3, Computer_Engineer wrote: >> >> I'm working on python google app engine application,i'm using python2.5, i >> want to deal with images on GAE(filter images), initially i tried wit PIL >> library and i installed it successfully and i tested it and it works >> correctly on my computer,but when i test it on localhost(run on GAE), i have >> an error thatNotImplementedError: Unable to find the Python PIL library,then >> i tried to deal with images using Images Python API , as in this >> tutorial:https://developers.google.com/appengine/docs/python/images/overview, >> and i tested resizing images service,and it works correctly,but the main >> application that i want is to filter the images,the question is :if this >> service(image filtering) supported in Images Python API in GAE?and if not >> how can i filter images on GAE?i saw that this service available in PIL,but >> this library is not supported by GAE >> I tried as a second choice to use python2.7 such that it supports PIL >> library and i edited the app.yaml configuration file,but i don't know how to >> use this library in the python page(main.py)? >> app.yaml: >> application: app_id >> version: 1 >> runtime: python27 >> api_version: 1 >> threadsafe: false >> handlers: >> - url: /.* >> script: main.py >> libraries: >> - name: PIL >> version: "1.1.7" >> >> ...any suggestions are welcome...Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine/-/ybmVHi70O0IJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
