Mike Miller
2018-11-27 23:41:42 UTC
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.
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.