On Tue, Jun 9, 2009 at 10:22 AM, Hani Nakhoul<nakh...@gmail.com> wrote: > Dear all, > I'm running matplotlib 0.98.5.2 on a machine with Ubuntu Intrepid 8.10. It's > worked well for me so far, but I encounter problems running matplotlib when > trying to update the PYTHONPATH in the .bashrc file. Adding just the line > "export PYTHONPATH=$PYTHONPATH", for example, gives the following: > > $ ipython -pylab > Traceback (most recent call last): > File "/usr/bin/ipython", line 27, in <module> > IPython.Shell.start().mainloop() > File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1219, in > start > shell = _select_shell(sys.argv) > File "/var/lib/python-support/python2.5/IPython/Shell.py", line 1188, in > _select_shell > backend = matplotlib.rcParams['backend'] > AttributeError: 'module' object has no attribute 'rcParams'
Most likely you are adding a directory to the path that has a directory named matplotlib in it (eg the matplotlib src directory) which is not the matplotlib install directory. Try doing >>> import matplotlib >>> print matplotlib.__file__ when the PYTHONPATH is set to the troublesome value and then do an ls on the directory that is reported by the __file__ printout. Post the listing here and we can advise further. JDH ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users