Re: Python site-packages and import

2005-04-29 Thread Maurice LING
Peter Saffrey wrote: (apologies for starting a new thread - Google can't retrieve the other message for some reason) Yes, /usr/lib/python/site-packages is in sys.path. This series of commands should explain what I mean: I've put the Python ID3 module in a sub-directory of site-packages as an illust

Re: Python site-packages and import

2005-04-29 Thread Jorge Godoy
[EMAIL PROTECTED] (Peter Saffrey) writes: > [EMAIL PROTECTED]:~$ ls /usr/lib/python2.3/site-packages/id3 > ID3.py ID3.pyc ID3.pyo > > >>> import id3.ID3 > Traceback (most recent call last): > File "", line 1, in ? > ImportError: No module named id3.ID3 > >>> It is missing a file name

Python site-packages and import

2005-04-29 Thread Peter Saffrey
(apologies for starting a new thread - Google can't retrieve the other message for some reason) Yes, /usr/lib/python/site-packages is in sys.path. This series of commands should explain what I mean: I've put the Python ID3 module in a sub-directory of site-packages as an illustration. [EMAIL PROT

Re: Python site-packages and import

2005-04-28 Thread Maurice LING
Peter Saffrey wrote: I'm trying to write a python service, with an executable in /usr/local/bin, but modules that are kept in a sub-directory of /usr/lib/python/site-packages. Using apt-proxy as my template, I've put the modules in /usr/lib/python/site-packages/mymodules and tried to import them wi

Python site-packages and import

2005-04-28 Thread Peter Saffrey
I'm trying to write a python service, with an executable in /usr/local/bin, but modules that are kept in a sub-directory of /usr/lib/python/site-packages. Using apt-proxy as my template, I've put the modules in /usr/lib/python/site-packages/mymodules and tried to import them with import mymodules.