I am using Matplotlib with python 2.6 on a MacBook Pro (Mac OS X 10.6):
Darwin Peters-MacBook-Pro.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
I had a hard job getting matplotlib going, but eventually managed it using an easy_install script that installed scipy and numpy as well. Matplotlib would not work with the EPD distribution on my machine. I also tried installing python 2.7 on my mac and working with that but it didn't work either. So I deleted all (I hope) the python stuff I had tried to get going, including environment variables, keeping just the default python 2.6 that comes with Mac OS X 10.6. Now matplotlib works just fine.
But now when I run port selfupdate and then port -v upgrade outdated i get the following error:
---> Activating python26 @2.6.6_1
Error: Target org.macports.activate returned: Image error: /opt/local/bin/python2.6 already exists and does not belong to a registered port. Unable to activate port python26. Use 'port -f activate python26' to force the activation.
Error: Failed to install python26
Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/main.log
Error: The following dependencies were not installed: python26
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>
I wonder if this is due to an old failed install that I tried with macports.
My question is: can I force this activation and know that my matplotlib etc will still work?
If this is nothing to do with updating the shipped python, how can I stop macports trying to upgrade python 2.6?
I really don't want to do anything that will break my lovely matplotlib again.
This might be more of a macports question, but I'm interested to hear of others' experiences with matplotlib on mac OS X 10.6 anyway.