[Pythonmac-SIG] PIL - image.show() problem on 10.2.8 in X11
Bob Ippolito
bob at redivi.com
Thu Feb 24 20:07:56 CET 2005
On Feb 24, 2005, at 11:31 AM, Gavin Hall wrote:
> Haven't been on this long at all so I can't gauge the standard. Hope
> I'm not being too much of a newbie. I just wanted to no if anyone has
> got show() from PIL Image to work assuming that python and PIL and xv
> have been installed via fink and the script is being run in an X11
> terminal window:
>
> Traceback (most recent call last):
> File "proto.py", line 27, in ?
> img.show()
> File "/sw/lib/python2.2/site-packages/PIL/Image.py", line 749, in
> show
> _showxv(self, title, command)
> File "/sw/lib/python2.2/site-packages/PIL/Image.py", line 1042, in
> _showxv
> file = self._dump(format=format)
> File "/sw/lib/python2.2/site-packages/PIL/Image.py", line 333, in
> _dump
> self.load()
> File "/sw/lib/python2.2/site-packages/PIL/ImageFile.py", line 117,
> in load
> self.map = Image.core.map(self.filename)
> File "/sw/lib/python2.2/site-packages/PIL/Image.py", line 37, in
> __getattr__
> raise ImportError, "The _imaging C module is not installed"
> ImportError: The _imaging C module is not installed
>
> Haven't a clue what's going on and any help would be appreciated.
If the _imaging module isn't installed, then Fink didn't actually
install PIL correctly. Are you sure Python 2.2 is the right
interpreter to be using? Python 2.4 is current..
You'll probably want to take this up with the maintainer for PIL in
Fink if you are using the correct interpreter.
-bob
More information about the Pythonmac-SIG
mailing list