FS#69717 - [python-gitdb] package broken with python-smmap 4.0.0
Attached to Project:
Community Packages
Opened by Marcus Hoffmann (BubuIIC) - Saturday, 20 February 2021, 15:05 GMT
Last edited by David Runge (dvzrv) - Friday, 26 March 2021, 18:27 GMT
Opened by Marcus Hoffmann (BubuIIC) - Saturday, 20 February 2021, 15:05 GMT
Last edited by David Runge (dvzrv) - Friday, 26 March 2021, 18:27 GMT
|
Details
Description:
When trying to import gitdb from a django app (weblate in my case) it fails complaining that the installer smmap version is outside the allowed version range. (See also here https://github.com/gitpython-developers/gitdb/issues/67) Patching the package that it removes the <4 constraint before building fixes this. Additional info: * package version(s) 4.0.5-3 Logs: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master ws.require(__requires__) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (smmap 4.0.0 (/usr/lib/python3.9/site-packages), Requirement.parse('smmap<4,>=3.0.1'), {'gitdb'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/weblate/runner.py", line 34, in main utility.execute() File "/usr/lib/python3.9/site-packages/django/core/management/__init__.py", line 377, in execute django.setup() File "/usr/lib/python3.9/site-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/lib/python3.9/site-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/usr/lib/python3.9/site-packages/django/apps/config.py", line 116, in create mod = import_module(mod_path) 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 790, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/weblate/formats/apps.py", line 24, in <module> from weblate.utils.checks import weblate_check File "/usr/lib/python3.9/site-packages/weblate/utils/checks.py", line 39, in <module> from weblate.utils.docs import get_doc_url File "/usr/lib/python3.9/site-packages/weblate/utils/docs.py", line 24, in <module> import weblate.utils.version File "/usr/lib/python3.9/site-packages/weblate/utils/version.py", line 23, in <module> from weblate.vcs.base import RepositoryException File "/usr/lib/python3.9/site-packages/weblate/vcs/base.py", line 35, in <module> from pkg_resources import Requirement, resource_filename File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'smmap<4,>=3.0.1' distribution was not found and is required by gitdb |
This task depends upon
Closed by David Runge (dvzrv)
Friday, 26 March 2021, 18:27 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with python-gitdb 1:4.0.7-1
Friday, 26 March 2021, 18:27 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with python-gitdb 1:4.0.7-1

This is a known upstream issue
https://github.com/gitpython-developers/gitdb/issues/67
and the developers plan on bumping the version requirements.

gitdb 4.0.7 will finally fix this. (the fix was supposed to go
into 4.0.6 but didn't)