module name not recognized

Larry Bates lbates at
Fri Oct 8 22:44:33 CEST 2004

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 file?
Is the directory where it is installed on the PYTHONPATH?

Larry Bates

More information about the Python-list mailing list