| Summary: | net-misc/youtube-dl-2013.08.09 - /usr/bin/python2.7 setup.py build [...]: ImportError: No module named pkg_resources | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | jer |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Juergen Rose
2013-08-13 06:43:11 UTC
*** Bug 480872 has been marked as a duplicate of this bug. *** I reemerged =python-2.7.5-r1, =python-3.2.5-r1 and =python-3.3.2-r1, but I still get the same error. I just found that I do not have /usr/lib64/python2.7/site-packages/pkg_resources.py, which was installed by dev-python/setuptools-0.9.8-r1 on other systems, but was not installed on 'lynx':
rose@lynx:/home/rose(13)$ ll /usr/lib64/python2.7/site-packages/pkg_resources*
/bin/ls: cannot access /usr/lib64/python2.7/site-packages/pkg_resources*: No such file or directory
rose@lynx:/home/rose(14)$ qlist -Iv setuptools
dev-python/setuptools-0.9.8-r1
rose@lynx:/home/rose(15)$ qlist -v setuptools | grep pkg_resources
rose@lynx:/home/rose(16)$ genlop -t setuptools | tail
Tue Jul 23 16:29:37 2013 >>> dev-python/setuptools-0.9.7
merge time: 29 seconds.
Tue Jul 30 11:08:39 2013 >>> dev-python/setuptools-0.9.8
merge time: 29 seconds.
Mon Aug 5 20:07:03 2013 >>> dev-python/setuptools-0.9.8-r1
merge time: 49 seconds.
After reemerging dev-python/setuptools /usr/lib64/python3.2/site-packages/pkg_resources.py is installed and 'emerge youtube-dl' works too:
root@lynx:/root(3)# emerge -v1 dev-python/setuptools
...
root@lynx:/root(2)# qlist -v setuptools | grep pkg_resources
/usr/lib64/python3.2/site-packages/__pycache__/pkg_resources.cpython-32.pyo
/usr/lib64/python3.2/site-packages/__pycache__/pkg_resources.cpython-32.pyc
/usr/lib64/python3.2/site-packages/pkg_resources.py
/usr/lib64/python2.7/site-packages/pkg_resources.pyc
/usr/lib64/python2.7/site-packages/pkg_resources.py
/usr/lib64/python2.7/site-packages/pkg_resources.pyo
/usr/share/doc/setuptools-0.9.8-r1/pkg_resources.txt.bz2
root@lynx:/root(3)# emerge -v1 youtube-dl
...
>>> net-misc/youtube-dl-2013.08.09 merged.
Why did setuptools need a rebuild? (In reply to Jeroen Roovers from comment #5) > Why did setuptools need a rebuild? Because the installation of setuptools from Aug 5th (see Comment 3) did not install pkg_resources.py. (In reply to Juergen Rose from comment #6) > (In reply to Jeroen Roovers from comment #5) > > Why did setuptools need a rebuild? > > Because the installation of setuptools from Aug 5th (see Comment 3) did not > install pkg_resources.py. If you have a build log from the installation that did not have pkg_resources.py, we can take a look. Otherwise, I don't see anything we can do. |