where is my pylab?? (gentoo linux)

Hello,
I am new to matplotlib. My system administrator installed matplotlib (using gentoo's emerge command). There were no errors while installation, but wen i try to import pylab i get an error:

markacy@...632...:~>python
Python 2.3.5 (#1, Apr 28 2005, 10:18:07)
[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie- on linux2
Type "help", "copyright", "credits" or "license" for more information.

from pylab import *

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named pylab

What is the problem??
Thanks,
Marek

Homo sum, humani nihil a me alienum puto.

Marek Szczypinski wrote:

Hello,
I am new to matplotlib. My system administrator installed matplotlib (using gentoo's emerge command). There were no errors while installation, but wen i try to import pylab i get an error:

markacy@...632...:~>python
Python 2.3.5 (#1, Apr 28 2005, 10:18:07)
[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie- on linux2
Type "help", "copyright", "credits" or "license" for more information.

from pylab import *

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named pylab

>>> from matplotlib.pylab import *

or, better:

$ ipython -pylab

···

--
Robert Kern
rkern@...376...

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

Hi Marek,

I just installed Matplotlib via gentoo's emerge (a first for me) and had no
problem with from pylab import *. I think you may need to take it up with
your sysadmin. Make sure dev-python/matplotlib is added to your
package.keywords file. The 0.80 version is stable, although it is masked as
testing (~) in the gentoo tree.

Darren

···

On Wednesday 25 May 2005 7:40 pm, Marek Szczypinski wrote:

Hello,
I am new to matplotlib. My system administrator installed matplotlib
(using gentoo's emerge command). There were no errors while installation,
but wen i try to import pylab i get an error:

markacy@...632...:~>python
Python 2.3.5 (#1, Apr 28 2005, 10:18:07)
[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1,
pie- on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> from pylab import *

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named pylab

What is the problem??
Thanks,
Marek

Homo sum, humani nihil a me alienum puto.

-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel
and communications. There is no equipment to buy and you can meet as often
as you want. Try it
free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
Darren S. Dale

Bard Hall
Department of Materials Science and Engineering
Cornell University
Ithaca, NY. 14850

dd55@...163...
http://people.ccmr.cornell.edu/~dd55/

I have also tried this:
markacy@...632...:~>python
Python 2.3.5 (#1, Apr 28 2005, 10:18:07)
[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie- on linux2
Type "help", "copyright", "credits" or "license" for more information.

from matplotlib.pylab import *

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named pylab

from matplotlib import *
from matplotlib.pylab import *

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named pylab

import matplotlib
form matplotlib.pylab import *

   File "<stdin>", line 1
     form matplotlib.pylab import *
                   ^
SyntaxError: invalid syntax

markacy@...632...:~>locate pylab
markacy@...632...:~>

Still nothing... :frowning: Please help.
Marek

Homo sum, humani nihil a me alienum puto.

···

On Wed, 25 May 2005, Robert Kern wrote:

Marek Szczypinski wrote:

Hello,
I am new to matplotlib. My system administrator installed matplotlib
(using gentoo's emerge command). There were no errors while installation,
but wen i try to import pylab i get an error:

markacy@...632...:~>python
Python 2.3.5 (#1, Apr 28 2005, 10:18:07)
[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1,
pie- on linux2
Type "help", "copyright", "credits" or "license" for more information.

> > > from pylab import *

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named pylab

> > from matplotlib.pylab import *

or, better:

$ ipython -pylab

--
Robert Kern
rkern@...376...

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
  -- Richard Harter

-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Try
~> locate matplotlib

I think you have version 0.64, which did not include the change from
matplotlib.matlab to matplotlib.pylab. I'll try to find someone to mark the
most recent version as stable in the gentoo tree. I can almost guarantee this
to be the source of your problem.

Darren

···

On Wednesday 25 May 2005 8:25 pm, Marek Szczypinski wrote:

I have also tried this:
markacy@...632...:~>python
Python 2.3.5 (#1, Apr 28 2005, 10:18:07)
[GCC 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1, ssp-3.3.5.20050130-1,
pie- on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> from matplotlib.pylab import *

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named pylab

>>> from matplotlib import *
>>> from matplotlib.pylab import *

Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named pylab

>>> import matplotlib
>>> form matplotlib.pylab import *

   File "<stdin>", line 1
     form matplotlib.pylab import *
                   ^
SyntaxError: invalid syntax

markacy@...632...:~>locate pylab
markacy@...632...:~>

Still nothing... :frowning: Please help.
Marek

You were right, Darren, it was the problem. from matplotlib.matlab import * works just fine:)
Thanks very much.
Marek

···

On Wed, 25 May 2005, Darren Dale wrote:

Try
~> locate matplotlib

I think you have version 0.64, which did not include the change from
matplotlib.matlab to matplotlib.pylab. I'll try to find someone to mark the
most recent version as stable in the gentoo tree. I can almost guarantee this
to be the source of your problem.

Darren

You won't know until you address the syntax error
('form').

Cheers,
Alan Isaac

···

On Wed, 25 May 2005, Darren Dale apparently wrote:

import matplotlib
form matplotlib.pylab import *

   File "<stdin>", line 1
     form matplotlib.pylab import *
      ^
SyntaxError: invalid syntax

Well, that was quick. Matplotlib-0.71 has been marked stable in the gentoo
tree, version 0.64 and 0.65 have been removed.

···

On Wednesday 25 May 2005 9:28 pm, Marek Szczypinski wrote:

You were right, Darren, it was the problem. from matplotlib.matlab import
* works just fine:)
Thanks very much.
Marek

On Wed, 25 May 2005, Darren Dale wrote:
> Try
> ~> locate matplotlib
>
> I think you have version 0.64, which did not include the change from
> matplotlib.matlab to matplotlib.pylab. I'll try to find someone to mark
> the most recent version as stable in the gentoo tree. I can almost
> guarantee this to be the source of your problem.

Hello,

···

On Thu, May 26, 2005 at 02:25:53AM +0200, Marek Szczypinski wrote:

    form matplotlib.pylab import *
                  ^
SyntaxError: invalid syntax

you typed "form" instead of "from".

I hope this helps,
Jochen
--