module import problem

Milos Prudek prudek at bvx.cz
Sat May 24 17:59:27 EDT 2008


I have a Kubuntu upgrade script that fails to run:

File "/tmp/kde-root//DistUpgradeFetcherCore.py", 
line 34, in <module>
import GnuPGInterface
ImportError
No module named GnuPGInterface

I got a folder /usr/share/python-support/python-gnupginterface with 
a "GnuPGInterface.py" but no __init__.py.

In python command line, print sys.path shows that /usr/share/python-support/ 
is not among python paths.

If I cd into /usr/share/python-support/python-gnupginterface and launch Python 
I can "import GnuPGInterface". But when I run DistUpgradeFetcherCore.py in 
that folder it always fails with No module named GnuPGInterface.

 I do not know much about setting python path. 

-- 
Milos Prudek



More information about the Python-list mailing list