Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666192 - dev-python/curtsies-0.3.0: incompatible with python >=3.5
Summary: dev-python/curtsies-0.3.0: incompatible with python >=3.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-13 21:00 UTC by Jonas Jelten
Modified: 2019-03-21 18:13 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Jelten 2018-09-13 21:00:49 UTC
curtsies ships a requirement.txt in /usr/lib64/python3.6/site-packages/curtsies-0.3.0-py3.6.egg-info/requires.txt
where it specifies "typing" as a dependency.

The typing module is included in the standart library for python >=3.5.

bpython or rather curties refuses to start up because the typing module is not found (cause it's part of the standard library now):
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/bpdb", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3098, in <module>
    @_call_aside
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3082, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 3111, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 573, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'typing' distribution was not found and is required by curtsies


Solution: patch out the line containing "typing" from the requires.txt
Comment 1 Arfrever Frehtes Taifersar Arahesis 2018-10-05 15:40:45 UTC
Upstream fix:
https://github.com/bpython/curtsies/commit/217b4f83e954837f8adc4c549c1f2f9f2bb272a7

Ebuild needs dependency on virtual/python-typing[${PYTHON_USEDEP}].
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-03-21 18:13:31 UTC
commit f369e978f691eab9f4ca842a414449b1211ce857
Author:     Andrey Grozin <grozin@gentoo.org>
AuthorDate: Tue Feb 26 15:23:06 2019
Commit:     Andrey Grozin <grozin@gentoo.org>
CommitDate: Tue Feb 26 15:23:45 2019

    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>