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 929291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:08:49+00:00 2026-05-15T20:08:49+00:00

I have installed Python Imaging Library (PIL) version 1.1.7 on a Windows 7 computer.

  • 0

I have installed Python Imaging Library (PIL) version 1.1.7 on a Windows 7 computer. I have configured Netbeans to use Python (instead of Jython). I added a reference to C:\Python26\Lib\site-packages\PIL to the project but when I attempt this code:

import Image, ImageDraw

img = Image.new("RGB", (100,150),(255,255,255))

I get the following error:

ImportError: The _imaging C module is not installed

The _imaging.pyd file exists and is in the right directory. Furthermore, Python (from the command line) can load PIL and Image and execute the code that I posted above successfully. Can anyone enlighten me as to what I am doing wrong? Thank you!

  • 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-15T20:08:50+00:00Added an answer on May 15, 2026 at 8:08 pm

    Solved. Project was incorrectly using Jython instead of Python. Although I configured Python as the default Python instance in the main Netbeans settings, that change didn’t propagate to my project. Setting it in the projects properties fixed it. Jython is known to have issues with PIL.

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

Sidebar

Related Questions

I try Library SimpleCV. I have Ubuntu 11.10, Python 2.7 with PIL (python-imaging ver.
I have installed WMI for python and pywin32 extensions to be able to use
I have installed twill on my computer (having previously installed Python 2.5) and have
I have installed python from .msi installer in windows and installed a lot of
I have installed Python 2.7 and mod_wsgi. I've added LoadModule wsgi_module modules/mod_wsgi.so to the
I have installed Python 2.7 for Windows, and downloaded Django-1.2.3. Now, I want to
I am running a windows machine have installed Python 2.5. I also used the
I wrote a Python script that I need to have installed on Windows Server
I have installed PyOpenGL from here for 64-bit Python 3.x and Windows 7. I
I have installed python 2.7 64bit,MySQL-python-1.2.3.win-amd64-py2.7.exe. I use the following code to insert data

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.