Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830971 - dev-python/google-api-python-client: requires uritemplate<4, and this is not reflected in the ebuild nor available in Portage
Summary: dev-python/google-api-python-client: requires uritemplate<4, and this is not ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on: 831094
Blocks:
  Show dependency tree
 
Reported: 2022-01-10 22:54 UTC by 27
Modified: 2022-02-27 08:32 UTC (History)
4 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 27 2022-01-10 22:54:06 UTC
google-api-python-client requires uritemplate<4dev,>=3.0.0, but this is not reflected in the ebuils, resulting in crashes in programs that depend on it. 

Reproducible: Always

Steps to Reproduce:
1. Install google-api-python-client
2. Run a program that depends on it, such as qrl wallet_ls
Actual Results:  
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 573, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 782, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (uritemplate 4.1.0 (/usr/lib/python3.9/site-packages), Requirement.parse('uritemplate<4dev,>=3.0.0'), {'google-api-python-client'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/happysmash27/.local/bin/qrl", line 33, in <module>
    sys.exit(load_entry_point('qrl==2.1.2+0.g58039970.dirty', 'console_scripts', 'qrl')())
  File "/home/happysmash27/.local/bin/qrl", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/happysmash27/.local/lib/python3.9/site-packages/qrl-2.1.2+0.g58039970.dirty-py3.9.egg/qrl/cli.py", line 11, in <module>
    from google.protobuf.json_format import MessageToJson
  File "/home/happysmash27/.local/lib/python3.9/site-packages/protobuf-3.15.8-py3.9.egg/google/__init__.py", line 1, in <module>
    __import__('pkg_resources').declare_namespace(__name__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3267, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3241, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 575, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 588, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'uritemplate<4dev,>=3.0.0' distribution was not found and is required by google-api-python-client

Expected Results:  
The program works as expected. 

uritemplate<4 no longer exists in the ebuild repository.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-02-27 08:32:33 UTC
All current versions support <5.