PIL - still ill (newbie)

Bjorn Pettersen bjorn at roguewave.com
Sat Feb 19 16:23:18 EST 2000


Haven't tried this, but....  If you look through your python directories,
there should be a DLLs directory. If you put it there, python should be able
to find it (I'm not sure if you have to rename it to _imaging.pyd... if the
above doesn't work, you could always try it...)  As a final option you could
try putting it in any directory that's in your PATH environment variable.

-- bjorn

JimM wrote:

> Fredrik or anybody,
> I'm still having trouble using PIL.
> I downloaded pil-win32-991101 from pythonware and unzipped it with winzip.
> I unzipped it to c:\program files\python\tools.
> Here's a sample error:
> >>> import Image
> >>> im = Image.open("E:/images/sts93.jpg")
> >>> im.size
> (1038, 768)
> >>> im.thumbnail((128,128))
> Traceback (innermost last):
>   File "<interactive input>", line 0, in ?
>   File "C:\PROGRA~1\PYTHON\PY152\PIL\Image.py", line 724, in thumbnail
>     self.load()
>   File "ImageFile.py", line 125, in load
>     self.load_prepare()
>   File "ImageFile.py", line 175, in load_prepare
>     self.im = Image.core.new(self.mode, self.size)
>   File "C:\PROGRA~1\PYTHON\PY152\PIL\Image.py", line 40, in __getattr__
>     raise ImportError, "The _imaging C module is not installed"
> ImportError: The _imaging C module is not installed
>
> As you can see, it finds Image.py but not the _imaging C module
> (_imaging.dll ?)
>
> I'm not sure if this is part of the problem but I originally placed the
> files in :
> c:\program files\python\py152\
> I had some trouble so I removed them and unzipped in
> c:\program files\python\tools   as I mentioned above.
>
> Why is it still finding Image.py in \python\py152\pil\
> when that directory no longer exists (see traceback above)?
>
> I'm new to python in the windows environment
> so explicit help will be appreciated.
>
> Thanks,
>
> Jim
>
> --
> http://www.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list