pythonvirtualenvnosenosetests

Problems using nose in a virtualenv


I am unable to use nose (nosetests) in a virtualenv project - it can't seem to find the packages installed in the virtualenv environment.

The odd thing is that i can set

test_suite = 'nose.collector'

in setup.py and run the tests just fine as

python setup.py test

but when running nosetests straight, there are all sorts of import errors.

I've tried it with both a system-wide installation of nose and a virtualenv nose package and no luck.

Any thoughts?

Thanks!!


Solution

  • Are you able to run myenv/bin/python /usr/bin/nosetests? That should run Nose using the virtual environment's library set.