Importerror

Hi,

I’m new on linux and i’m trying to use the next command but i get an
error :

thijs@thijs-AMILO-Xi-2528:~/src$ #!/usr/bin/env python
thijs@thijs-AMILO-Xi-2528:~/src$ from gnuradio import gr
from: can’t read /var/mail/gnuradio

Can anyone help me solving this problem ?

Grtz Thijs

On Mon, Sep 12, 2011 at 08:54:02AM +0000, Thijs wrote:

thijs@thijs-AMILO-Xi-2528:~/src$ #!/usr/bin/env python
thijs@thijs-AMILO-Xi-2528:~/src$ from gnuradio import gr
from: can’t read /var/mail/gnuradio

Can anyone help me solving this problem ?

Hi Thijs,

you are running Python code on the command line–that’s not what you’re
supposed to do. Put all that stuff in a file, make it executable and
then you’re there (or run it on a Python command line).

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Martin B. wrote in post #1021452:

On Mon, Sep 12, 2011 at 08:54:02AM +0000, Thijs wrote:

thijs@thijs-AMILO-Xi-2528:~/src$ #!/usr/bin/env python
thijs@thijs-AMILO-Xi-2528:~/src$ from gnuradio import gr
from: can’t read /var/mail/gnuradio

Can anyone help me solving this problem ?

Hi Thijs,

you are running Python code on the command line–that’s not what you’re
supposed to do. Put all that stuff in a file, make it executable and
then you’re there (or run it on a Python command line).

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association

Thanks for the reply but I’m new on Linux so I don’t really understand
what you mean. Can you explain a little bit more please ?

Thanks in advance

Thijs