|
From: Nils W. <nw...@ia...> - 2006-04-07 13:11:00
|
I am using the latest svn version of matplotlib
Python 2.4.1 (#1, Sep 12 2005, 23:33:18)
[GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/python2.4/site-packages/pylab.py", line 1, in ?
from matplotlib.pylab import *
ImportError: No module named pylab
This seems to be related to some of the recent changes.
Am I missing something ?
Nils
|
|
From: <tor...@ti...> - 2007-11-07 12:13:23
|
Dear all,
I'm unable to import pylab anymore, and I don't know why. It seems to=20
be due to environment variables. The sys.path leads to the correct=20
directories. I'm running Fedora 7 (I started using Matplotlib & Co. on=20
FC5, then due to the problems I had I upgraded to F7, but it still=20
doesn't work) Do you know if there is a conflict between scipy,=20
matplotlib and pylab. Problems seem to have started after I installed=20
scipy from the home:ashigabou.repo repository.
I can import pylab from an interactive prompt:
[me@mycomputer ~] $ python
Python 2.5 (r25:51908, Oct 19 2007, 09:47:40)=20
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
>>> import matplotlib
>>> import scipy
>>>=20
If I try to run a script which imports pylab I get the following=20
error:
[me@mycomputer ~] $ python scripts/fit_gauss.py
Traceback (most recent call last):
File "scripts/fit_gauss.py", line 3, in <module>
from pylab import *
File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in=20
<module>
from matplotlib.pylab import *
ImportError: No module named pylab
I am also getting the same error if I try to run a script from XEmacs.
Thank you for your time!
Cheers,
Maximilian
________________________________________________
Tiscali Tandem Free (Telefono+Adsl). Attiva entro l?8/11/07: chiami in tutt=
a Italia e navighi senza limiti a SOLI 9,95 =E2=82=AC AL MESE FINO A PRIMAV=
ERA 2008! http://abbonati.tiscali.it/adsl/prodotti/dem/tc/tandemfree_tel_cc=
/
|
|
From: Charlie M. <cw...@gm...> - 2006-04-07 13:31:40
|
On 4/7/06, Nils Wagner <nw...@ia...> wrote: > I am using the latest svn version of matplotlib > > Python 2.4.1 (#1, Sep 12 2005, 23:33:18) > [GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from pylab import * > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib64/python2.4/site-packages/pylab.py", line 1, in ? > from matplotlib.pylab import * > ImportError: No module named pylab I can't reproduce. Does the file "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py" exist for you? |
|
From: Darren D. <dd...@co...> - 2006-04-07 13:33:38
|
On Friday 07 April 2006 09:10, Nils Wagner wrote: > I am using the latest svn version of matplotlib > > Python 2.4.1 (#1, Sep 12 2005, 23:33:18) > [GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > >>> from pylab import * > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib64/python2.4/site-packages/pylab.py", line 1, in ? > from matplotlib.pylab import * > ImportError: No module named pylab > > This seems to be related to some of the recent changes. > > Am I missing something ? I'm using the most recent svn (2273), and I can't reproduce this. |
|
From: Charlie M. <cw...@gm...> - 2006-04-07 14:06:04
|
> > I can't reproduce. Does the file > > "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py" exist for > > you? > Yes Something is flaky. Try running python with "python -v". You can also try the "--verbose-debug-annoying" flag, but I am guessing you aren't getting far enough to get any matplotlib output. |
|
From: Darren D. <dd...@co...> - 2006-04-07 14:13:52
|
On Friday 07 April 2006 10:05, Charlie Moad wrote: > > > I can't reproduce. Does the file > > > "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py" exist for > > > you? > > > > Yes > > Something is flaky. Try running python with "python -v". You can > also try the "--verbose-debug-annoying" flag, but I am guessing you > aren't getting far enough to get any matplotlib output. This sounds like a python path issue. Nils, could it be that you have a matplotlib directory in your current working directory? Try changing dirs and running your test again. |
|
From: Nils W. <nw...@ia...> - 2006-04-07 14:17:55
|
Darren Dale wrote: > On Friday 07 April 2006 10:05, Charlie Moad wrote: > >>>> I can't reproduce. Does the file >>>> "/usr/lib64/python2.4/site-packages/matplotlib/pylab.py" exist for >>>> you? >>>> >>> Yes >>> >> Something is flaky. Try running python with "python -v". You can >> also try the "--verbose-debug-annoying" flag, but I am guessing you >> aren't getting far enough to get any matplotlib output. >> > > This sounds like a python path issue. Nils, could it be that you have a > matplotlib directory in your current working directory? Try changing dirs and > running your test again. > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > No but I had a file called matplotlib.py in my home directory. I have removed it. Now it works again. Thank you very much and sorry for the noise ! Nils |