I was not sure on which list to post this, but perhaps someone here can point me in the right direction. I maintain a few installers of scientific python packages for OSX, one of which being matplotlib. I generate mpkg installers with bdist_mpkg, and for the most part it works fine. However, for matplotlib, many users report the following error after installing and importing:
backend = matplotlib.rcParams[’backend’]
AttributeError: ‘module’ object has no attribute ‘rcParams’
By context, I assume this has something to do with the matplotlibrc setup. This does not happen, by the way, when installing directly (ie. using python setup.py install) or via eggs. If anyone knows why this may be happening, I would appreciate some feedback.
I'm also wondering if it may ultimately be easier to build eggs, then perhaps wrap in a nice applescript for a point-and-click installer.
My guess is that you're installing basemap or some other
matplotlib.toolkits package with the setuptools namespace code (or you
users are), and this is wreaking havoc and causing the mpl __init__.py
code to not be read. The latest svn has the namespace code commented
out in matplotlib.toolkits. You can try building from svn, and your
uses will probably need to clean all the setuptools, namespace-ified
matplotlib and matplotlib.toolkits from their systems.
JDH
···
On Dec 20, 2007 10:09 AM, <listservs@...935...> wrote:
I was not sure on which list to post this, but perhaps someone here
can point me in the right direction. I maintain a few installers of
scientific python packages for OSX, one of which being matplotlib. I
generate mpkg installers with bdist_mpkg, and for the most part it
works fine. However, for matplotlib, many users report the following
error after installing and importing:
backend = matplotlib.rcParams['backend']
AttributeError: 'module' object has no attribute 'rcParams'
By context, I assume this has something to do with the matplotlibrc
setup. This does not happen, by the way, when installing directly (ie.
using python setup.py install) or via eggs. If anyone knows why this
may be happening, I would appreciate some feedback