Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 678742

Summary: dev-python/bpython should depend on dev-python/typing
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: Andrey Grozin <grozin>
Status: RESOLVED FIXED    
Severity: normal CC: python, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Capricelli 2019-02-25 11:16:17 UTC
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
>>>
Comment 1 Larry the Git Cow gentoo-dev 2019-02-26 14:24:09 UTC
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(+)
Comment 2 Thomas Capricelli 2021-02-12 16:03:06 UTC
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.