I was explicitly trying to use MacOSX. Thanks for the tip, Kurt & Lain.

Sorry for the confusion, Martin. Something in Scisoft was putting one of its 
paths at the front of the sys.path list in python. That problem has been 
corrected (ie I'm deleting the scisoft paths at the beginning of the script), 
and the problem persists, as subsequent followup would have suggested.

Thanks,
Sean Lake

On Mar 22, 2011, at 11:48, Iain Day wrote:

> Matplotlib will work okay on 64bit fink if you set it to use an X11 
> backend rather than the MacOSX native one. I have matplotlib set to use 
> GTKAgg as the backend in my matplotibrc and this works fine with X11.
> 
> Maybe the global matplotlibrc (in 
> /sw/lib/python2.X/site-packages/matplotlib/mpl-data/matplotlibrc) for 
> 64bit fink could be patched accordingly?
> 
> Best wishes,
> 
> Iain
> 
> On 22/03/2011 14:57, Kurt Schwehr wrote:
>> matplotlib does not work on 64bit fink. I need to set the distribution
>> correctly. Apple does not support Carbon on 64bit mac environments.
>> 
>> -kurt
>> (goatbar)
>> http://schwehr.org
>> 
>> 
>> ------------------------------------------------------------------------
>> *From:* Martin Costabel <[email protected]>
>> *To:* Sean Lake <[email protected]>
>> *Cc:* fink-users Fink <[email protected]>; Kurt Schwehr
>> <[email protected]>
>> *Sent:* Tue, March 22, 2011 9:06:52 AM
>> *Subject:* Re: [Fink-users] matplotlib-py26-1.0.0-1 Error
>> 
>> Sean Lake wrote:
>>> Hello all,
>>> 
>>> I'm running into a little trouble running this program. When I try to
>> plot something I run into this error:
>>> 
>>> import matplotlib.pyplot as plt
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
>>> File
>> "/usr/local/scisoft/packages/python/lib/python2.6/site-packages/matplotlib/pyplot.py",
>> line 95, in <module>
>>> new_figure_manager, draw_if_interactive, show = pylab_setup()
>>> File
>> "/usr/local/scisoft/packages/python/lib/python2.6/site-packages/matplotlib/backends/__init__.py",
>> line 25, in pylab_setup
>>> globals(),locals(),[backend_name])
>>> File
>> "/usr/local/scisoft/packages/python/lib/python2.6/site-packages/matplotlib/backends/backend_macosx.py",
>> line 5, in <module>
>>> import MacOS
>>> ImportError: No module named MacOS
>>> 
>>> This is when trying to run an example script from the matplotlib
>> website:
>> http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/histogram_demo.py
>>> 
>>> My matplotlibrc file is very simple: text.usetex : True
>>> 
>>> backend : MacOSX
>> 
>> Visibly, this is not an error with Fink's matplotlib, but with another
>> version installed in /usr/local/scisoft.
>> 
>> Without more information from you, one can only guess why you are using
>> this and not Fink's version. Supposing that your Fink matplotlib package
>> is installed correctly, you are probably running the wrong python, not
>> /sw/bin/python, but something in /usr/local. This could be a PATH
>> problem, or that you run "python" instead of, for instance, "python2.6",
>> but you haven't installed Fink's "python" package.
>> 
>> -- Martin
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Enable your software for Intel(R) Active Management Technology to meet the
>> growing manageability and security demands of your customers. Businesses
>> are taking advantage of Intel(R) vPro (TM) technology - will your software
>> be a part of the solution? Download the Intel(R) Manageability Checker
>> today! http://p.sf.net/sfu/intel-dev2devmar
>> 
>> 
>> 
>> _______________________________________________
>> Fink-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fink-users
> 
> 
> 
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software 
> be a part of the solution? Download the Intel(R) Manageability Checker 
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Fink-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fink-users


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to