Python seems broken after latest system update

Discussions Regarding Software

Moderator: Moderators

Post Reply
hydran
Young Hen
Posts: 20
Joined: Sat Sep 01, 2018 4:50

Python seems broken after latest system update

Post by hydran » Tue Mar 31, 2020 22:56

Trying to start Deluge, which was working fine an hour ago. Then I updated.

Traceback (most recent call last):
File "/usr/bin/deluge", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3251, in <module>
@_call_aside
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'service_identity>=18.1.0' distribution was not found and is required by twisted

jane477
Baby Hen
Posts: 1
Joined: Mon Jul 06, 2020 12:18

Re: Python seems broken after latest system update

Post by jane477 » Thu Jul 09, 2020 6:58

Trying to start Deluge, which was working fine an hour ago. Then I updated.

Traceback (most recent call last):
File "/usr/bin/deluge", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3251, in <module>
@_call_aside
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'service_identity>=18.1.0' distribution was not found and is required by twisted
Had the same issue recently
the only thing that helped was restoring old version from backup storage
I think that this thesis statement generator is the best free tool you could find

toni.rth
Baby Hen
Posts: 4
Joined: Tue Jun 02, 2020 12:52

Re: Python seems broken after latest system update

Post by toni.rth » Sun Aug 02, 2020 19:24

It seems that a library is not found. It is very common when you are running Python in a different Environment. I don't know if you remember in which, but maybe you can try the following:

Code: Select all

$ python3 -m venv venv_sabayon
$ source venv_sabayon/bin/activate
$ pip install .
In theory this will ensure that the libraries are installed on the same context as the one in which you want to run/install Sabayon software
Gamer lover, now married with AMD Ryzen

joost
Sagely Hen
Posts: 2805
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Python seems broken after latest system update

Post by joost » Mon Aug 03, 2020 16:43

Might be a missing dependency. It seems that it requires dev-python/service_identity.
Do you have this package installed?
My blog | Mastodon | Please support Sabayon: Become a Patron

Post Reply