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
[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
(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
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
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.