[reportlab-users] ImportError: No module named Image?

Ash Gupta traderashish at yahoo.com
Tue Apr 15 20:58:38 EDT 2008


Any clues what is missing? I have latest renderPM
downloaded today.
I have am getting pdf but no png, gifs etc

Ashish


File "mycharts.py", line 28, in ?

MyBarChartDrawing().save(formats=['gif','png','jpg','pdf'],outDir='.',fnRoot='barchart')
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/reportlab/graphics/shapes.py",
line 695, in save
renderPM.drawToFile(self,
filename,fmt=bmFmt,showBoundary=getattr(self,'showBorder',rl_config.showBoundary),**_extraKW(self,'_renderPM_',**kw))
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/reportlab/graphics/renderPM.py",
line 611, in drawToFile
c.saveToFile(fn,fmt)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/reportlab/graphics/renderPM.py",
line 267, in saveToFile
im = self.toPIL()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/reportlab/graphics/renderPM.py",
line 262, in toPIL
im = _getImage().new('RGB', size=(self._gs.width,
self._gs.height))
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/reportlab/graphics/renderPM.py",
line 37, in _getImage
import Image
ImportError: No module named Image




More information about the reportlab-users mailing list