[MacPorts] #18047: py25-matplotlib - 0.98.5.2 - Graphics fails when using CocoaAgg

MacPorts noreply at macports.org
Fri Jan 16 10:12:33 PST 2009


#18047: py25-matplotlib - 0.98.5.2 - Graphics fails when using CocoaAgg
------------------------------+---------------------------------------------
 Reporter:  krunk7@…          |       Owner:  ram@…           
     Type:  defect            |      Status:  new             
 Priority:  Normal            |   Milestone:  Port Bugs       
Component:  ports             |     Version:  1.7.0           
 Keywords:                    |        Port:  py25-matplotlib 
------------------------------+---------------------------------------------
Changes (by macsforever2000@…):

  * owner:  macports-tickets@… => ram@…
  * port:  => py25-matplotlib


Old 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

New 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
 }}}

--

Comment:

 Please remember to use WikiFormatting.

-- 
Ticket URL: <http://trac.macports.org/ticket/18047#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list