[Distutils] ImportError running 'test' on namespace package - other package in namespace not found

Phillip J. Eby pje at telecommunity.com
Mon Jun 30 03:20:46 CEST 2008

At 06:06 PM 6/29/2008 -0600, Jason R. Coombs wrote:
>Note, I could add a dependency from myns.projB on myns.projA, but it's not
>necessary for this demonstration.
>Then, I either setup myns.projA with either "install" or "develop" so that
>it's visible to the Python installation.
>Thereafter, if I try to run "setup.py test" on myns.projB, I get the
>ImportError.  See error.txt, attached, for the transcript.  I've 
>also attached
>the two test packages as described.  I notice now that the error appears to
>only occur when nose.collector is used... and when the package_dir of the
>child package is overridden.  Perhaps this needs to go to the nose 
>project and
>instead of the distutils project.
>Please advise on what I might do next to help resolve this 
>issue.  Obviously I
>could restructure my projects to avoid the problem, but I would much rather
>help resolve the problem, as I suspect it may affect other users' deployments
>as well.

I can't reproduce this using the archive you uploaded.  After running 
develop on projA, I ran test on projB and got an error message about 
nose not being available, so I added tests_require="nose" to projB, 
and then I got a run that said zero tests ran.

More information about the Distutils-SIG mailing list