If i install bpython and starts it, i have the following error: % bpython Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/bpython", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3191, in <module> @_call_aside File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside f(*args, **kwargs) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by curtsies I can manually install the 'typing' by doing: emerge -1 dev-python/typing Then everything works well: % bpython bpython version 0.17.1 on top of Python 2.7.15 /usr/bin/python2.7 >>>
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f369e978f691eab9f4ca842a414449b1211ce857 commit f369e978f691eab9f4ca842a414449b1211ce857 Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: 2019-02-26 14:23:06 +0000 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: 2019-02-26 14:23:45 +0000 dev-python/curtsies: depend on dev-python/typing correctly Bug: https://bugs.gentoo.org/show_bug.cgi?id=678742 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andrey Grozin <grozin@gentoo.org> dev-python/curtsies/curtsies-0.3.0-r1.ebuild | 38 +++++++++++++++++++++++++ dev-python/curtsies/files/curtsies-typing.patch | 9 ++++++ 2 files changed, 47 insertions(+)
For the record: the patch from 2019 adds a dependancy on 'typing' in the the curtsies ebuild. The current (2021-02) ebuild doesn't have it anymore, probably because typing is now part of python3. Anyway, it works.