module name not recognized
alanmk at hotmail.com
Sat Oct 9 17:19:48 CEST 2004
>>>I have built two basic modules using distutils. One of them
>>> installs fine, but the other, I can't import modules from it.
>>> I've been pouring over the code and I cant find the problem.
>>Two things to check:
>>Does the package have the required __init__.py file?
>>Is the directory where it is installed on the PYTHONPATH?
> I checked both before writing the original post, this isnt the
One more thing to check: have you named your module with an identical
name to an existing module that is before your module the path, e.g.
calling your module "xml" or "email", which clash with standard
library modules. This is a frequent cause of hair-pulling inexplicable
If that isn't the problem either, then you're probably best off
posting more details, i.e. what are your modules called, where are
they located, what doesn't work/what exceptions are raised, etc.
More information about the Python-list