Discussion:
Running fedpkg on Fedora 28
Mike Miller
2018-11-27 23:41:42 UTC
Permalink
Hello - I am trying to update a package on Fedora 28 but am getting this
error any time I try to run fedpkg:
Traceback (most recent call last):
File "/usr/bin/fedpkg", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
3095, in <module>
@_call_aside
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
3079, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
3108, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
570, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
888, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line
774, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'PyYAML' distribution was not found
and is required by rpkg

I have the python2-yaml package installed:
Package python2-pyyaml-3.12-10.fc28.x86_64 is already installed, skipping.

I tried using python3 and modifying the fedpkg script to run with python3
but then I get the following error:
pkg_resources.DistributionNotFound: The 'fedpkg==1.35' distribution was not
found and is required by the application

I have installed the latest fedpkg, fedpkg-1.35-1.fc28.noarch. Do I need
to upgrade to 29? I thought fedpkg would still work on 28.
Jason L Tibbitts III
2018-11-28 01:26:35 UTC
Permalink
MM> I have installed the latest fedpkg, fedpkg-1.35-1.fc28.noarch. Do I
MM> need to upgrade to 29? I thought fedpkg would still work on 28.

I'm still on F28 (for another hour or so) and have no problems running
fedpkg.

fedpkg-1.35-1.fc28.noarch
python2-2.7.15-4.fc28.x86_64
python2-rpkg-1.56-2.fc28.noarch
python2-pyyaml-3.12-10.fc28.x86_64

I don't really have much of an idea of what your problem might be. I
would suggest rpm -V on the relevant packages (and dnf reinstall if
necessary) along with verifying that you're actually running the proper
fedpkg code instead of something you might have installed locally.

- J<
_______________________________________________
devel mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/***@l
Mike Miller
2018-11-28 01:42:00 UTC
Permalink
The python2-pyyaml package was missing a file, weird.
rpm -V python2-pyyaml-3.12-10.fc28.x86_64
missing /usr/lib64/python2.7/site-packages/PyYAML-3.12-py2.7.egg-info

Running "dnf reinstall python2-pyyaml-3.12-10.fc28.x86_64" fixed it.
Thanks for the help!
Post by Jason L Tibbitts III
MM> I have installed the latest fedpkg, fedpkg-1.35-1.fc28.noarch. Do I
MM> need to upgrade to 29? I thought fedpkg would still work on 28.
I'm still on F28 (for another hour or so) and have no problems running
fedpkg.
fedpkg-1.35-1.fc28.noarch
python2-2.7.15-4.fc28.x86_64
python2-rpkg-1.56-2.fc28.noarch
python2-pyyaml-3.12-10.fc28.x86_64
I don't really have much of an idea of what your problem might be. I
would suggest rpm -V on the relevant packages (and dnf reinstall if
necessary) along with verifying that you're actually running the proper
fedpkg code instead of something you might have installed locally.
- J<
Adam Williamson
2018-11-28 01:46:15 UTC
Permalink
Post by Mike Miller
The python2-pyyaml package was missing a file, weird.
rpm -V python2-pyyaml-3.12-10.fc28.x86_64
missing /usr/lib64/python2.7/site-packages/PyYAML-3.12-py2.7.egg-info
Running "dnf reinstall python2-pyyaml-3.12-10.fc28.x86_64" fixed it.
Thanks for the help!
If you ever run 'pip' as root, or something like that, it could
conceivably mess with it.
--
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | XMPP: adamw AT happyassassin . net
http://www.happyassassin.net
_______________________________________________
devel mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/***@lists.fedorapr
Loading...