I've downloaded and installed sage on my OS X 10.5 (Leopard) Mac Pro.
I'm trying to do some image processing, but things seem a bit bollixed
up. It seems to me that if you're going to depend on a library that's
installed in some non-standard place (I have no idea what would
create /opt/local/lib) you should instead package it with and in the
Sage tree.
Bill
/local/sage-4.7 57 % ./sage
----------------------------------------------------------------------
| Sage Version 4.7, Release Date: 2011-05-23 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: import Image
sage: a = Image.open("/Users/wjanssen/Downloads/photo.png")
sage: a.load()
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)
/local/sage-4.7/<ipython console> in <module>()
/local/sage-4.7/local/lib/python2.6/site-packages/PIL/ImageFile.pyc in
load(self)
153 self.map = None
154
--> 155 self.load_prepare()
156
157 # look for read/seek overrides
/local/sage-4.7/local/lib/python2.6/site-packages/PIL/
PngImagePlugin.pyc in load_prepare(self)
337 raise IOError("cannot read interlaced PNG files")
338
--> 339 ImageFile.ImageFile.load_prepare(self)
340
341 def load_read(self, bytes):
/local/sage-4.7/local/lib/python2.6/site-packages/PIL/ImageFile.pyc in
load_prepare(self)
221 if not self.im or\
222 self.im.mode != self.mode or self.im.size !=
self.size:
--> 223 self.im = Image.core.new(self.mode, self.size)
224 # create palette (optional)
225 if self.mode == "P":
/local/sage-4.7/local/lib/python2.6/site-packages/PIL/Image.pyc in
__getattr__(self, id)
34 # module placeholder
35 def __getattr__(self, id):
---> 36 raise ImportError("The _imaging C module is not
installed")
37
38 try:
ImportError: The _imaging C module is not installed
sage: import _imaging
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)
/local/sage-4.7/<ipython console> in <module>()
ImportError: dlopen(/local/sage-4.7/local/lib/python2.6/site-packages/
PIL/_imaging.so, 2): Library not loaded: /opt/local/lib/libjpeg.
8.dylib
Referenced from: /local/sage-4.7/local/lib/python2.6/site-packages/
PIL/_imaging.so
Reason: image not found
sage:
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org