Dear all,
Here is the listing:

In [1]: import matplotlib

In [2]: print matplotlib.__file__
matplotlib/__init__.pyc

In [3]: ls -a
./           .gimp-2.6/          Public/
../           .gksu.lock          .pulse/
.adobe/        .gnome2/              .pulse-cookie
ATLAS/           .gnome2_private/       pydstool/
.bash_history  .gnupg/              PyDSTool/
.bash_logout   .gstreamer-0.10/       .recently-used
.bashrc        .gtk-bookmarks          .recently-used.xbel
.bashrc~       .gvfs/              scipy-0.7.0b1/
.cache/        .hplip/              scipy_build/
.checkgmail/   .ICEauthority          .ssh/
.compiz/       .icons/              .subversion/
.config/       .inkscape/          .sudo_as_admin_successful
.dbus/           .ipython/          SuiteSparse/
Desktop/       lapack-3.1.1/          Templates/
.dmrc           .lftp/              .themes/
Documents/     .local/              .thumbnails/
.emacs           .macromedia/          .tomboy/
.emacs.d/      matplotlib/          .tomboy.log
.esd_auth      .matplotlib/          .tsclient/
.evolution/    .mozilla/          .update-manager-core/
Examples@      .mozilla-thunderbird/  .update-notifier/
fftw-3.2/      Music/              Videos/
.fontconfig/   .nautilus/          .viminfo
.gconf/        neuron/              .wapi/
.gconfd/       numpy-1.2.1/          .Xauthority
.geany/        .openoffice.org2/      .xsession-errors
.gegl-0.0/     Pictures/
.gftp/           .profile


Hani


On Tue, Jun 9, 2009 at 10:30 AM, John Hunter <jdh2...@gmail.com> wrote:

> 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

Reply via email to