justinmayer/virtualfish

Install doesn't work with python packaging 21.x

evilhamsterman opened this issue · 0 comments

  • [ x] I am using Fish shell version 3.1 or higher.
  • [ x] I am using Python version 3.6 or higher.
  • [ x] I have searched the issues (including closed ones) and believe that this is not a duplicate.
  • [ x] If related to a plugin, I prefixed the issue title with the name of the plugin.
  • OS version and name: Arch Linux
  • Fish shell version: 3.4.1-1
  • VirtualFish version: 2.5.4 and git

Issue

The dependencies include the packaging library but it has a version limit of packaging = "^20.3" which limits the version to packaging==20.*,>=20.3.0 but packaging uses a year release versioning so the newer releases are all 21.* so installing virtualfish fails

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 573, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 782, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (packaging 21.3 (/usr/lib/python3.10/site-packages), Requirement.parse('packaging==20.*,>=20.3.0'), {'virtualfish'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/vf", line 33, in <module>
    sys.exit(load_entry_point('virtualfish==2.5.4', 'console_scripts', 'vf')())
  File "/usr/bin/vf", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/virtualfish/loader/__init__.py", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3267, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3241, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 575, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 588, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'packaging==20.*,>=20.3.0' distribution was not found and is required by virtualfish