[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Issue with InvalidVersion



Hello Folks!

I hope everyone is doing great today/tonight!

We are experiencing an item with a package named "fairseq" and are experiencing the following symptoms:

  Running setup.py develop for fairseq

.........

.........


      File "/tmp/pip-build-env-n1wx5a7x/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2631, in hashcmp

        self.parsed_version,

      File "/tmp/pip-build-env-n1wx5a7x/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2685, in parsed_version

        raise packaging.version.InvalidVersion(f"{str(ex)} {info}") from None

    pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '7.5.3-deb10u1' (package: reportbug)


We have researched this and have been advised by the setuptools team to request you to please release a stable update with the fix from:

https://salsa.debian.org/reportbug-team/reportbug/-/commit/ca2e3b530682cd0ed8aab5597b84f8ff303673cc

Python versions like `11.6.0ubuntu1` or `7.5.3~deb10u1` are not PEP440
compliant. With setuptools 66, the versions of all packages visible in
the Python environment *must* obey PEP440.
We are actively looking for a work-around and I thought that I should report this item. 
Please let me know if you need any information from me?
Any guidance is appreciated!
Thank you,
Matt

Reply to: