module name not recognized

Darren Dale dd55 at cornell.edu
Fri Oct 8 20:34:38 EDT 2004


Larry Bates wrote:

> Darren Dale wrote:
>> 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.
>> 
>> I know the file has been copied to site-packages/mypackage, but I cant do
>> 
>> from mypackage import mymodule
>> 
>> Could I get suggestions as to why a module would be installed but not
>> registered?
>> 
>> Thanks,
>> Darren
> 
> Two things to check:
> 
> Does the package have the required __init__.py file?
> Is the directory where it is installed on the PYTHONPATH?
> 
> Larry Bates

Thanks Larry,
I checked both before writing the original post, this isnt the problem.






More information about the Python-list mailing list