Python -- Import error from GASP

I used ez_install to install GASP, and didn’t receive any errors during the process. In python when I try to import GASP, however:

>>> from gasp import *Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gasp

when I look in sys.path,
I see …’/usr/local/lib64/python2.5/site-packages’, ‘/usr/local/lib64/python2.5/site-packages/gasp-0.4.5-py2.5.egg’

Any ideas how to resolve this? Thank you.

I do not have GASP installed but what happens when you import the whole module like:

from imaplib import *


import sys

Are you sure you have the module name correct?

I downloaded gasp from the launchpad site and it will not install on opensuse 11:

/usr/local/gasp # python ./ install
running install
error: invalid Python installation: unable to open /usr/lib/python2.5/config/Makefile (No such file or directory)

Since GASP is a simplified version of pygame just use pygame.

If you are trying to learn python here are some tutorials to help:

Learn Python wiki / HowToStart
Python Tutorial
Python Tutorials, more than 300, updated September 7, 2008, and carefully sorted by topic and category

Good Luck


install python-devel package first(with yast). :slight_smile:

yep! I forgot to update this when I realized I didn’t have that installed. That was exactly how I resolved everything.