Opened 15 years ago

Last modified 11 years ago

#18047 closed defect

py25-matplotlib - 0.98.5.2 - Graphics fails when using CocoaAgg — at Initial Version

Reported by: krunk7@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: py25-matplotlib

Description

If CocoaAgg is set in the matplotlibrc, an error is thrown:

"must have pyObjc installed"

After installing py25-pyobjc2 (for Leopard 10.5), the following error is produced on render:

:!python2.5 temp.py 2>&1| tee /var/folders/jT/jTtjyOlwG-iLpczTAAnRIE+++TM/-Tmp-/v182152/22 Traceback (most recent call last):

File "temp.py", line 2, in <module>

from pylab import *

File "/opt/local/lib/python2.5/site-packages/pylab.py", line 1, in <module>

from matplotlib.pylab import *

File "/opt/local/lib/python2.5/site-packages/matplotlib/pylab.py", line 253, in <module>

from matplotlib.pyplot import *

File "/opt/local/lib/python2.5/site-packages/matplotlib/pyplot.py", line 75, in <module>

new_figure_manager, draw_if_interactive, show = pylab_setup()

File "/opt/local/lib/python2.5/site-packages/matplotlib/backends/init.py", line 25, in pylab_setup

globals(),locals(),[backend_name])

File "/opt/local/lib/python2.5/site-packages/matplotlib/backends/backend_cocoaagg.py", line 26, in <module>

from Foundation import *

ImportError: No module named Foundation

Change History (1)

Changed 15 years ago by krunk7@…

Attachment: temp.py added

Generic rendering code used to test CocoaAgg

Note: See TracTickets for help on using tickets.