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

  • SEARCH
  • Home
  • 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 8110969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:56:36+00:00 2026-06-06T01:56:36+00:00

I am developing Python application for Google App Engine on MacOS and I am

  • 0

I am developing Python application for Google App Engine on MacOS and I am having troubles trying to setup PIL for local development. I am running Python 2.5 in virtualenv and I also installed PIL 1.1.7 in the virtualenv using pip:

pip install PIL

I can import it in python interpreter and everything seems ok, but when it is used by the App Engine SDK, the following error is raised:

File "/Users/user/Development/src/virtualenv/lib/python2.5/site-packages/PIL/PngImagePlugin.py", line 564, in _save
SystemError: Parent module 'PIL' not loaded

It appears that this error occurs when PIL imports ICCProfile, but it should also be caught by the except and handled properly. Here is the code from PngImagePlugin.py:

try:
    import ICCProfile
    p = ICCProfile.ICCProfile(im.info["icc_profile"])
    name = p.tags.desc.get("ASCII", p.tags.desc.get("Unicode", p.tags.desc.get("Macintosh", p.tags.desc.get("en", {}).get("US", "ICC Profile")))).encode("latin1", "replace")[:79]
except ImportError:
    name = "ICC Profile"

The suggestion I got, when searching for the solution, was that I should create PIL.pth file with a path to PIL, but this file already exists in the virtualenv in site-packages folder and the content of the file is:

PIL

Does anyone have any suggestion on how to fix it or what else could I try?

  • 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-06-06T01:56:38+00:00Added an answer on June 6, 2026 at 1:56 am

    Try using Pillow instead of PIL.

    Update 1

    See this thread http://code.activestate.com/lists/python-image-sig/6543/

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

Sidebar

Related Questions

I am developing an application on the Google App Engine using Python (and Django,
I am developing an application on the Google App Engine using Python. I have
i am using python for developing Google app engine application. my question is that
I am developing a Java application using Google App Engine that depends on a
I'm developing an application on Google App Engine using the current django non-rel and
This error is driving me crazy. I'm developing an App Engine Python application. These
I'm developing an app in Python for Google App Engine. When I run the
I'm developing a long-running multi-threaded Python application for Windows, and I want the process
I'm developing an application in Python on Ubuntu and I'm running external binaries from
First, some background: I'm developing a web application using Python. All of my (text)

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.