Description of problem: $ pyp2rpm httpretty Version-Release number of selected component: pyp2rpm-1.0.1-3.fc20 Additional info: reporter: libreport-2.1.9 cmdline: /usr/bin/python /usr/bin/pyp2rpm httpretty dso_list: python-setuptools-0.9.8-2.fc20.noarch executable: /usr/bin/pyp2rpm kernel: 3.11.7-300.fc20.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: pkg_resources.py:626:resolve:DistributionNotFound: distribute Traceback (most recent call last): File "/usr/bin/pyp2rpm", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3007, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve raise DistributionNotFound(req) DistributionNotFound: distribute Local variables in innermost frame: dist: None to_activate: [pyp2rpm 1.0.1 (/usr/lib/python2.7/site-packages)] req: Requirement.parse('distribute') requirements: [Requirement.parse('Jinja2')] processed: {Requirement.parse('pyp2rpm==1.0.1'): True} env: <pkg_resources.Environment object at 0x7f86bf0a0310> installer: None self: <pkg_resources.WorkingSet object at 0x7f86bf0a0050> best: {'distribute': None}
Created attachment 830564 [details] File: backtrace
Created attachment 830565 [details] File: environ
Run pyp2rpm with any arguments to get this error.
I couldn't reproduce the bug, is this still an issue? If not, it was probably a setuptools problem (there are new setuptools in f20) otherwise there may be a problem with eggs files.
*** Bug 1045713 has been marked as a duplicate of this bug. ***
*** Bug 1035207 has been marked as a duplicate of this bug. ***
Currently this is not happening because it is "covered" by bz1045713 - that's what is happening.
Ooo, ignore my previous comment, I've been having hallucinations. Yes I can reproduce this. $ pyp2rpm httpretty Traceback (most recent call last): File "/usr/bin/pyp2rpm", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2793, in <module> working_set.require(__requires__) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 673, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 576, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: distribute
Ok, I have managed to reproduce this in mock. As I mentioned in my previous comment it was problem with egg file but on my side. [rkuska@localhost distribute-0.7.3-py2.7.egg-info]$ rpm -qf PKG-INFO file /usr/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg-info/PKG-INFO is not owned by any package [rkuska@localhost distribute-0.7.3-py2.7.egg-info]$ cat requires.txt setuptools>=0.7 Quite interesting. I have some sort of compatibility wrapper leftover for distribute->setuptools. This is easy to fix I guess, change of requires from distribute to setuptools should do the trick.
I don't have distribute at all installed here on my system (F20). And I was able to "fix" this issue by manually removing "distribute" from /usr/lib/python2.7/site-packages/pyp2rpm-1.0.1-py2.7.egg-info/requires.txt
The following fix for the spec will solve this issue. diff --git a/pyp2rpm.spec b/pyp2rpm.spec index 8a5924a..9d57771 100644 --- a/pyp2rpm.spec +++ b/pyp2rpm.spec @@ -72,6 +72,9 @@ rm -rf %{py3dir} cp -a . %{py3dir} find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|' +# remove hard dependency to distribute +sed -i "/'distribute',/d" setup.py + %endif # with_python3
(In reply to Robert Kuska from comment #9) > Ok, I have managed to reproduce this in mock. > > As I mentioned in my previous comment it was problem with egg file but on my > side. > > [rkuska@localhost distribute-0.7.3-py2.7.egg-info]$ rpm -qf PKG-INFO > file > /usr/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg-info/PKG-INFO is > not owned by any package > [rkuska@localhost distribute-0.7.3-py2.7.egg-info]$ cat requires.txt > setuptools>=0.7 > > Quite interesting. I have some sort of compatibility wrapper leftover for > distribute->setuptools. > > > This is easy to fix I guess, change of requires from distribute to > setuptools should do the trick. Err, requires should be handled via rpm, right? Will you fix this?
(In reply to Matthias Runge from comment #12) > (In reply to Robert Kuska from comment #9) > > Ok, I have managed to reproduce this in mock. > > > > As I mentioned in my previous comment it was problem with egg file but on my > > side. > > > > [rkuska@localhost distribute-0.7.3-py2.7.egg-info]$ rpm -qf PKG-INFO > > file > > /usr/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg-info/PKG-INFO is > > not owned by any package > > [rkuska@localhost distribute-0.7.3-py2.7.egg-info]$ cat requires.txt > > setuptools>=0.7 > > > > Quite interesting. I have some sort of compatibility wrapper leftover for > > distribute->setuptools. > > > > > > This is easy to fix I guess, change of requires from distribute to > > setuptools should do the trick. > Err, requires should be handled via rpm, right? Will you fix this? Yes x 2
pyp2rpm-1.0.1-4.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/pyp2rpm-1.0.1-4.fc20
Package pyp2rpm-1.0.1-4.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing pyp2rpm-1.0.1-4.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-1798/pyp2rpm-1.0.1-4.fc20 then log in and leave karma (feedback).
Seems to be OK now. $ cat /usr/lib/python2.7/site-packages/pyp2rpm-1.0.1-py2.7.egg-info/requires.txt Jinja2 setuptools
pyp2rpm-1.0.1-4.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.