#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 ------------------------------+--------------------------------------------- Comment(by krunk7@…): Replying to [comment:2 macsforever2000@…]:
{{{import Foundation}}} works fine for me in python 2.5 - tested in ipython2.5. Do you have python_select installed? Have you run:
{{{ sudo python_select python25 }}} jkyle ~ % which python /opt/local/bin/python jkyle ~ % python --version Python 2.5.4 jkyle ~ %
Maybe try re-installing py25-matplotlib now that py25-pyobjc2 is
installed. I gave that a shot, still didn't work. Here's my current matplotlib variants args: The following ports are currently installed: py25-matplotlib @0.98.5.2_0+cairo+ghostscript+gtk2+latex+wxpython (active) I can even open up python (no ipython) and attempt to import Foundation, same error. jkyle ~ % sudo port install py25-pyobjc2 ---> Fetching py25-pyobjc2 ---> Verifying checksum(s) for py25-pyobjc2 ---> Extracting py25-pyobjc2 ---> Configuring py25-pyobjc2 ---> Building py25-pyobjc2 ---> Staging py25-pyobjc2 into destroot ---> Installing py25-pyobjc2 @2.0_0 ---> Activating py25-pyobjc2 @2.0_0 ---> Cleaning py25-pyobjc2 jkyle ~ % python Python 2.5.4 (r254:67916, Jan 3 2009, 15:50:29) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import Foundation Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named Foundation
-- Ticket URL: <http://trac.macports.org/ticket/18047#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS