The _imaging C module is not installed
Oana Ureche <oana_ureche2000 <at> yahoo.com>
2008-02-04 15:18:14 GMT
Hi All!
Has anybody tried the PIL library in Jython?
The PIL library is installed and working well for Python.
I copied the PIL folder in the Jython/Lib folder. The creation of the jar file using the jythonc command is working smooth. Is processing the PIL library..
In my python code I use
from PIL import Image
.... class etc
im = Image.open("example.png")
.... processing over im
Is not anything out of the ordinary..
So, I create the jar file and try to run it and I get:
C:\jython2.2.1>java -jar watermarkimage.jar
Exception in thread "main" Traceback (innermost last):
File "C:\jython2.2.1\WatermarkImage.py", line 0, in main
File "C:\jython2.2.1\WatermarkImage.py", line 0, in writeToImage
File
"C:\jython2.2.1\Lib\PIL\Image.py", line 0, in open
File "C:\jython2.2.1\Lib\PIL\ImageFile.py", line 0, in __init__
File "C:\jython2.2.1\Lib\PIL\PngImagePlugin.py", line 0, in _open
File "C:\jython2.2.1\Lib\PIL\PngImagePlugin.py", line 0, in __init__
File "C:\jython2.2.1\Lib\PIL\PngImagePlugin.py", line 0, in __init__
File "C:\jython2.2.1\Lib\PIL\Image.py", line 0, in __getattr__
ImportError: The _imaging C module is not installed
Any advices would be good,
OEU
Never miss a thing.
Make Yahoo your homepage.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jython-users mailing list
Jython-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users