pkg_resources.DistributionNotFound: PyYAML
Opened this issue · 5 comments
Hi,
i have this problem
$ kaptanTraceback (most recent call last):
File "/usr/bin/kaptan", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 2697, in
working_set.require(requires)
File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 669, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib64/python3.3/site-packages/pkg_resources.py", line 572, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PyYAML
but yaml it installed and worked from others packages
Thanks.
This project has PyYAML
as an install_requires
. In one of my projects, I use yaml
as a dependency. On my Ubuntu machine, I have the Debian package python3-yaml
installed. My project works when I call it from the source checkout. But apparently setuptools does not find it. I guess it installs it into an unexpected location. So I think the bug really is with the yaml package.
I forget it that...
Hello Martin,
Make sure you installed python3 before installing pysetuptools...
solved
Hmm, I do have python3
installed on my system.
/ping @berkerpeksag
I couldn't reproduce the issue on Ubuntu 12.04 with Python 3.3.4.
$ cd kaptan/
$ python3.3 -m venv venv33
$ . venv33/bin/activate
$ python -V
Python 3.3.4
$ wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
$ python get-pip.py
$ which pip
/home/berker/projects/kaptan/venv33/bin/pip
$ pip install -r requirements.txt
$ pip install -e .
$ py.test tests.py
...
18 passed, 1 skipped in 0.11 seconds
$ kaptan ~/.flexget/config.yml
{"tasks": {"diziler": {"rss": "https://kickass.to/tv/?rss=1", "series": [{"person of interest": {"quality": "hdtv"}}, {"brooklyn nine-nine": {"quality": "720p"}}, {"castle 2009": {"quality": "hdtv"}}, {"the big bang theory": {"quality": "720p"}}]}}}