Newbie trying to install matplotlib on OS10.5

I tried to follow the directions per

% python setup.py build
% python setup.py install

but within the build step I get the message

“library not found for -lpng”

It exits with an error code, and then install does not work either (no surprise).

I also tried easy_install. It says that I have numpy 1.0.1 but need numpy 1.1, which I have and which works. So I downloaded numpy 1.1 again and successfully installed it (again), but easy_install gives me the same message.

I have wxpython installed, and it works, but don’t know if that’s related to my problems.

I’m also a newbie to the mac, and am having trouble deciphering some of the posts with similar issues.

Thanks for whatever help you can provide.

Dan

Could you try the instructions at:

http://ipython.scipy.org/moin/Py4Science/InstallationOSX

and let us know how it goes?

Thanks,
JDH

···

On Thu, Jun 12, 2008 at 1:11 AM, Dan Murphy <chiefmurph@...935...> wrote:

I tried to follow the directions per

% python setup.py build
% python setup.py install

John Hunter wrote:

Could you try the instructions at:

http://ipython.scipy.org/moin/Py4Science/InstallationOSX

note that these only work on OS-X 10.5 (which was the OP's question).

However, the key issue is if you are building it just for yourself, or if you want to be able to re-distribute either your build or applications built from it via py2app, etc.

If the latter, you want Charlie Moad's page:

http://ipython.scipy.org/moin/MatplotlibOSXBuildNotes

However, it really is a lot easier to just install the binary egg found here:

http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194&release_id=603020

It's called:

    matplotlib-0.98.0-py2.5-macosx-10.3.egg

the "10.3" means "10.3 or greater".

you may need to re-name it:

matplotlib-0.98.0-py2.5.egg

then:

$ easy_install matplotlib-0.98.0-py2.5.egg

(I may not have the re-naming right, I'm not running 10.5 to test.)

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

John Hunter wrote:

Could you try the instructions at:

http://ipython.scipy.org/moin/Py4Science/InstallationOSX

Minor note on that:

"""
I installed
wxPython2.8-osx-unicode-2.8.3.0-universal10.4-py2.5.dmg from the pythonmac site and am crossing my fingers that I don't find myself entangled in wx version hell.
"""

recent version of the wx back-end no longer rely on compiled code, so wx version hell is a think of the past (you will get better performance with wx 2.8+, though).

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...