Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this message mean? from: can't read /var/mail/ex48 (Learn Python the Hard Way ex49)

Tags:

python

In ex49, we are told to call the the lexicon.py file created in ex48 with the following command.

When I try to import the lexicon file with the following command

    >>> from ex48 import lexicon

it returns the following:

    from: can't read /var/mail/ex48

I've tried looking this up. What does this mean? Is a file in the wrong place?

like image 571
chacha Avatar asked Nov 06 '11 15:11

chacha


1 Answers

You need to add the shebang to the first line of your program. Put in #!/usr/bin/python or where ever your python bin is located and your program will run.

like image 81
Joe Avatar answered Nov 03 '22 17:11

Joe