Invalid version: '0.23ubuntu1' causes subsequent pip3 install failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
distro-info (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
During installation of pip3/python modules we run into an "Invalid version" error that lists this package as the source.
---------
Docker container of Ubuntu 20.04
Description: Ubuntu 20.04.5 LTS
Release: 20.04
#apt-cache policy python3-distro-info
python3-
Installed: 0.23ubuntu1
Candidate: 0.23ubuntu1
Version table:
*** 0.23ubuntu1 500
500 http://
100 /var/lib/
---------
# apt show python3-distro-info
Package: python3-distro-info
Version: 0.23ubuntu1
Priority: standard
Section: python
Source: distro-info
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-
Bugs: https:/
Installed-Size: 32.8 kB
Depends: distro-info-data, python3:any
Task: standard
Download-Size: 5924 B
APT-Manual-
APT-Sources: http://
Description: information about distributions' releases (Python 3 module)
-------
We expected to be able to install a pip3 package - in this case pre-commit.
Command and subsequent error:
# pip3 install pre-commit
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/
status = self.run(options, args)
File "/usr/lib/
resolver.
File "/usr/lib/
discovered_
File "/usr/lib/
abstract_dist = self._get_
File "/usr/lib/
skip_reason = self._check_
File "/usr/lib/
req_
File "/usr/lib/
self.
File "/usr/local/
dist = get_provider(dist)
File "/usr/local/
return working_
File "/usr/local/
needed = self.resolve(
File "/usr/local/
dist = self._resolve_dist(
File "/usr/local/
env = Environment(
File "/usr/local/
self.
File "/usr/local/
self.add(dist)
File "/usr/local/
dists.
File "/usr/local/
self.
File "/usr/local/
raise packaging.
pkg_resources.
--------------
steps to reproduce:
- clean ubuntu install
- install curl gnupg lsb-release python3 python3-pip lsb-release wget software-
- pip3 install --upgrade setuptools (necessary for other packages we use)
- pip3 install pre-commit
This is a duplicate of LP: #1991606 (but the LP machinery won't let me set that right now, it's timing out)