← Back to team overview

sikuli-driver team mailing list archive

[Question #145962]: ImportError: The _imaging C module is not installed

 

New question #145962 on Sikuli:
https://answers.launchpad.net/sikuli/+question/145962

Hi, 

When I run the following piece of code below on python , works great. but on Sikuli I get "ImportError: The _imaging C module is not installed"

import os, sys
import Image

size = 128, 128
infile ="C:\\OCR\\ABC.JPG"
print infile

outfile = os.path.splitext(infile)[0] + ".thumbnail"
im = Image.open(infile)
im.thumbnail(size)
print outfile
im.save(outfile, "JPEG")
print "saved"


Sikuli Trace :

 File "C:\Temp\sikuli-tmp9173871111396522169.py", line 10, in   
 im.thumbnail(size)  
 File "C:\Python27\Lib\site-packages\PIL\Image.py", line 1559,  in thumbnail  
 self.load()  
 File "C:\Python27\Lib\site-packages\PIL\ImageFile.py", line 164, in load  
 self.load_prepare()  
 File "C:\Python27\Lib\site-packages\PIL\ImageFile.py", line 231, in load_prepare  
 self.im = Image.core.new(self.mode, self.size)  
 File "C:\Python27\Lib\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




Appreciate your time and help.

Thanks,
SA 

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.