On Dec 20, 2007 10:09 AM,  <[EMAIL PROTECTED]> 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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to