#10059: PIL on OS X: ImportError: The _imaging C module is not installed
------------------------+---------------------------------------------------
Reporter: mpatel | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: packages | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
The Python Imaging Library's `_imaging` module is not installed on some OS
X systems. This causes doctest failures in `sage/plot/plot3d/base.pyx`:
{{{
#!python
sage -t -long devel/sage/sage/plot/plot3d/base.pyx
**********************************************************************
File "/Users/Sage/sage-4.6.alpha0/devel/sage-
main/sage/plot/plot3d/base.pyx", line 1160:
sage: G.save(f)
Exception raised:
Traceback (most recent call last):
File "/Users/Sage/sage-4.6.alpha0/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/Users/Sage/sage-4.6.alpha0/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/Users/Sage/sage-4.6.alpha0/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_35[4]>", line 1, in <module>
G.save(f)###line 1160:
sage: G.save(f)
File "base.pyx", line 1198, in sage.plot.plot3d.base.Graphics3d.save
(sage/plot/plot3d/base.c:11722)
Image.open(out_filename).save(filename)
File "/Users/Sage/sage-4.6.alpha0/local/lib/python2.6/site-
packages/PIL/Image.py", line 1372, in save
self.load()
File "/Users/Sage/sage-4.6.alpha0/local/lib/python2.6/site-
packages/PIL/ImageFile.py", line 155, in load
self.load_prepare()
File "/Users/Sage/sage-4.6.alpha0/local/lib/python2.6/site-
packages/PIL/ImageFile.py", line 223, in load_prepare
self.im = Image.core.new(self.mode, self.size)
File "/Users/Sage/sage-4.6.alpha0/local/lib/python2.6/site-
packages/PIL/Image.py", line 36, in __getattr__
raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
[...]
}}}
See also: [http://groups.google.com/group/sage-
devel/browse_thread/thread/bb883d9d9956d23e/334ba8ad6d65af7e?#334ba8ad6d65af7e
sage-devel], [http://groups.google.com/group/sage-
release/msg/fe720bce3f933171 sage-release].
Related tickets: #7344, #9864.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10059>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.