Categories
Linux Posts Python Ubuntu

ImportError: No module named …

Numeric

Error:

Traceback (most recent call last):
  File "", line 1, in
ImportError: No module named Numeric

Package:

sudo apt-get install python-numeric

ImageTk

Error:

ITraceback (most recent call last):
  File "", line 1, in
ImportError: No module named ImageTk

Package:

sudo apt-get install python-imaging-tk
Categories
Linux Posts

Pyrobot Install Error

/home/ubuntu/pyrobot/bin/pyrobot: line 1: -e: command not found
/home/ubuntu/pyrobot/bin/pyrobot: line 8: 
Pyrobot - Python Robotics
(c) 2005, PyroRobotics.org. Licensed under the GNU GPL.

THIS FILE IS AUTOMATICALLY GENERATED
: command not found
/home/ubuntu/pyrobot/bin/pyrobot: line 11: __author__: command not found
/home/ubuntu/pyrobot/bin/pyrobot: line 12: __version__: command not found
/home/ubuntu/pyrobot/bin/pyrobot: line 20: syntax error near unexpected token `('
/home/ubuntu/pyrobot/bin/pyrobot: line 20: `        cwd = os.getcwd() + '\\' + sys.argv[0]'

To fix this problem you need to remove the -e from the front the first line of the “~/pyrobot/bin/pyrobot” file
Before:

 -e #!/usr/bin/python2.6

After:

 #!/usr/bin/python2.6

Once this is done, re-run pyrobot and the GUI should start as it should.