Getting DistributionNotFound error, but package exists

I run pyjade for Django templates, since it is much easier for me to write it, but I try to convert it to html with a built-in converter.When I run pyjade -c django input.jade output.html , I get the error pkg_resources.DistributionNotFound: six . However, the six package does exist, and I can import it into python, and when I run pip install six --upgrade , it says that it is already updated.

Here is the full trace:

 Traceback (most recent call last): File "/usr/local/bin/pyjade", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: six 

What would cause this error?

+8
python django pajade
source share
2 answers

Reinstalling via easy_setup (vs pip) solved it for me on OS X Mavericks:

sudo easy_install six

Hope that helps you!

+8
source share

Old setuptools was my culprit.

pip install -U setuptools

+3
source share

All Articles