Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4080188
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:53:53+00:00 2026-05-20T17:53:53+00:00

I have a Windows Server 2008 R2 (64bits) machine on which I wanted to

  • 0

I have a Windows Server 2008 R2 (64bits) machine on which I wanted to develop a google AppEngine app.

So I installed Python 2.5.4 from python.org (because the Google SDK said I needed 2.5 and 2.5.6 didn’t have any MSI’s)
Then I installed PIL from http://www.pythonware.com/products/pil/ I used version 1.1.7 for python 2.5
I used the 32-bits versions of both of these.

Then I installed the AppEngine SDK.

Hello-World worked fine, but I wanted to manipulate an image, which didn’t work because I get this stacktrace and a HTTP 500 response:

2010-02-18 11:50:27 Running command: "['C:\\Python25\\pythonw.exe', 'C:\\Program Files 

(x86)\\Google\\google_appengine\\dev_appserver.py', '--admin_console_server=', '--port=8080', 'd:\\imgsvc']"
WARNING  2010-02-18 10:50:29,260 datastore_file_stub.py:623] Could not read datastore data from c:\users\admini~1\appdata\local\temp\dev_appserver.datastore
INFO     2010-02-18 10:50:29,627 dev_appserver_main.py:399] Running application imgsvc on port 8080: http://localhost:8080
ERROR    2010-02-18 10:50:40,058 dev_appserver.py:3217] Exception encountered handling request
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3180, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3123, in _Dispatch
    base_env_dict=env_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 515, in Dispatch
    base_env_dict=base_env_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2382, in Dispatch
    self._module_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2292, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2188, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "d:\imgsvc\imgsvc.py", line 7, in <module>
    outputimage = images.resize(inputimage.content, 32, 32)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\images\__init__.py", line 625, in resize
    return image.execute_transforms(output_encoding=output_encoding)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\images\__init__.py", line 513, in execute_transforms
    response)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 78, in MakeSyncCall
    return apiproxy.MakeSyncCall(service, call, request, response)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub_map.py", line 278, in MakeSyncCall
    rpc.CheckSuccess()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_rpc.py", line 149, in _WaitImpl
    self.request, self.response)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\apiproxy_stub.py", line 80, in MakeSyncCall
    method(request, response)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\images\images_stub.py", line 171, in _Dynamic_Transform
    response_value = self._EncodeImage(new_image, request.output())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\images\images_stub.py", line 193, in _EncodeImage
    image.save(image_string, image_encoding)
  File "C:\Python25\lib\site-packages\PIL\Image.py", line 1439, in save
    save_handler(self, fp, filename)
  File "C:\Python25\lib\site-packages\PIL\PngImagePlugin.py", line 564, in _save
    import ICCProfile
SystemError: Parent module 'PIL' not loaded
INFO     2010-02-18 10:50:40,081 dev_appserver.py:3246] "GET / HTTP/1.1" 500 -

The python script I was trying to run:

from google.appengine.api import urlfetch
from google.appengine.api import images

url = "http://www.brokenwire.net/bw/images/113.png"
inputimage = urlfetch.fetch(url)
if inputimage.status_code == 200:
    outputimage = images.resize(inputimage.content, 32, 32)
    self.response.headers['Content-Type'] = "image/png"
        self.response.out.write(outputimage)

Anybody any idea what is going wrong here?

I also tried this standalone python script, which works fine:

import Image
im = Image.open('filename.png')
im2 = im.resize((100,100), Image.ANTIALIAS)
im2.show()

It seems that it makes a difference which image I use:

url = "http://www.r-stone.net/blogs/ishikawa/uploaded_images/google_appengine-779483.png"

Gives the stacktrace of the question, but

url = "http://www.brokenwire.net/bw/images/113.png"

works without a problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:53:54+00:00Added an answer on May 20, 2026 at 5:53 pm

    This happens when Python can’t find ICCProfile module.
    Apperently when using trough GAE instead of an ImportError the importer throws a SystemError, and the function fails.
    What i did was to change line 567 in …\Python25\Lib\site-packages\PIL\PngImagePlugin.py
    from

    except ImportError:

    to:

    except Exception:

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I installed Windows Server 2008 I didn't have the (activation) key. Now that
I have just installed the Platform SDK for Windows Server 2008 and .NET 3.5
We have a windows server 2008 R2 32G memory machine, this is obviously a
I have a windows server 2008 with a mail server installed. For every emails
I have Windows Server 2008 R2 Machine that is running a Delphi 2007 application.
We have an Windows 2008 server with IIS 7 to test sites we develop
I have a Windows 2008 Server with IIS7 on it and a web page
I am currently using Windows Server 2008 Standard and have several Hyper V machines.
I have setup web dav on windows server 2008. It seems to work fine
On my home network I have an installation of Windows Server 2008 and for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.