NotImplementedError: 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 GAEI'm going to address the Python 2.7 case since that is the best choice
for this problem.
You use PIL from main.py just like you would use PIL from any Python
script e.g.
import Image
i = Image.open(...)
In order to use Python 2.7 with the dev_appserver, you'll have to
install Python 2.7 and PIL on your computer.
Cheers,
Brian
>
> --
> 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/-/g48i1VaP0IUJ.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengi...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
You need to use Python 2.7 locally, and you need to ensure PIL is
installed for Python 2.7.
Robert
> --
> 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/-/f2BduRaG_CsJ.
On Thu, Apr 19, 2012 at 2:53 AM, Computer_Engineer <grou...@gmail.com> wrote:
> Robert Kluin:
> I firstly run my code on localhost to check errors.then i upload it to GAE,i
> use eclipse for working on python with GAE in windows, i installed
> python2.7
> and PIL version 1.1.7,then i edited the app.yaml,but the problem
> still,please i want a solution for this problem as soon as possible.
> Thank you..
In this case, could you try what Robert suggested and just upload your
application without running it locally to see if the problem is with
your code or with your local development environment?
If it works on the production system but not locally then you try
starting a Python shell and typing "import Image". If that doesn't
work then your PIL installation is not correct.
Cheers,
Brian
> --
> 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/-/tmkdHRDGqAYJ.
Cheers,
Brian
> --
> 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/-/Gy6_kxeqsY0J.
Robert
Could you send the stack trace from production, not from your
development server?
Cheers,
Brian
> --
> 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.
Go to the administration console (http://appengine.google.com), select
your application and then click "Logs".
Cheers,
Brian
> --
> 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/-/CcIwSJCCDXEJ.
--
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/-/Rk9EAnJyPIEJ.
On Thu, Apr 19, 2012 at 7:41 AM, Andreas <a.sch...@gmail.com> wrote:
> you are trying to open a file. you can't do that. you dont have any access
> to the filesystem on gae.
That is not true - you have access to a read-only file system
containing all of the files in the directory that you uploaded with
appcfg.py update (and don't appear in a "static" handler in your
app.yaml, doesn't match skip_files, etc.). The reason that this fails
is because the file is being opened for *write*, which is not
supported.
Cheers,
Brian
On Fri, Apr 20, 2012 at 12:30 AM, Computer_Engineer <grou...@gmail.com> wrote:
> Please i want to ask how can i test the application locally before uploading
> it to GAE,how can i solve the PIL problem on localhost?and if i want to
> filter images using PIL i will open it firstly,so my code initially let the
> user to upload his photo then i store this image in blobstorem and get the
> url of this image top open it,but this didn't solve the problem;that i can't
> open it?
You might be better to ask search for the answer to these questions at
http://stackoverflow.com/ and, if you can't find one, to ask a new
one. The tag that you should use is "google-app-engine".
Cheers,
Brian
> --
> 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/-/W3-vzVSeq94J.