Hi Andreas,
On Thu, Apr 19, 2012 at 7:41 AM, Andreas <[email protected]> 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 Apr 18, 2012, at 5:38 PM, Computer_Engineer wrote:
>
> This is the log from the admin console log:
>
> 2012-04-18 14:37:10.162 /favicon.ico 500 666ms 0kb Mozilla/5.0 (Windows; U;
> Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko)
> Chrome/9.0.597.67 Safari/534.13
>
> 86.108.69.231 - - [18/Apr/2012:14:37:10 -0700] "GET /favicon.ico HTTP/1.1"
> 500 0 - "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13
> (KHTML, like Gecko) Chrome/9.0.597.67 Safari/534.13"
> "filterimages2012.appspot.com" ms=667 cpu_ms=350 api_cpu_ms=0
> cpm_usd=0.009764 instance=00c61b117c8fe6c4727b8c723b40c98b47e0df7f
>
> E2012-04-18 14:37:10.033
>
> Traceback (most recent call last):
> File
> "/base/data/home/apps/s~filterimages2012/1.358303610596814412/helloworld.py",
> line 7, in <module>
> out.save("2.jpg")
> File
> "/base/python27_runtime/python27_lib/versions/third_party/PIL-1.1.7/PIL/Image.py",
> line 1433, in save
> fp = __builtin__.open(fp, "wb")
> IOError: [Errno 13] Permission denied: '2.jpg'
>
> 2012-04-18 14:37:09.075 / 500 957ms 0kb Mozilla/5.0 (Windows; U; Windows NT
> 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.67
> Safari/534.13
>
> 86.108.69.231 - - [18/Apr/2012:14:37:09 -0700] "GET / HTTP/1.1" 500 0 -
> "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML,
> like Gecko) Chrome/9.0.597.67 Safari/534.13" "filterimages2012.appspot.com"
> ms=958 cpu_ms=467 api_cpu_ms=0 cpm_usd=0.013012 loading_request=1
> instance=00c61b117c8fe6c4727b8c723b40c98b47e0df7f
>
> E2012-04-18 14:37:09.071
>
> Traceback (most recent call last):
> File
> "/base/data/home/apps/s~filterimages2012/1.358303610596814412/helloworld.py",
> line 7, in <module>
> out.save("2.jpg")
> File
> "/base/python27_runtime/python27_lib/versions/third_party/PIL-1.1.7/PIL/Image.py",
> line 1433, in save
> fp = __builtin__.open(fp, "wb")
> IOError: [Errno 13] Permission denied: '2.jpg'
>
> I2012-04-18 14:37:09.074
>
> This request caused a new process to be started for your application, and
> thus caused your application code to be loaded for the first time. This
> request may thus take longer and use more CPU than a typical request for
> your application.
>
>
> 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/-/Rk9EAnJyPIEJ.
> 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.
--
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.