I have a strange problem with my builds of matplotlib on OS X 10.4: If I install them from the command line, with setup.py, they install fine and matplotlib can be imported with no problem. However, I need to build distributable OS X packages, which I do using bdist_mpkg; when this package is installed, I get an error when importing pylab:
from pylab import *
Traceback (most recent call last):
File “”, line 1, in
File “/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/pylab.py”, line 1, in
from matplotlib.pylab import *
File “/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/pylab.py”, line 199, in
import cm
File “/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/cm.py”, line 5, in
import colors
File “/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/colors.py”, line 38, in
from numerix import array, arange, take, put, Float, Int, putmask, \
File “/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/numerix/init.py”, line 20, in
from matplotlib import rcParams, verbose
ImportError: cannot import name rcParams
I would appreciate any help to resolve this issue.