Skip to content

Commit

Permalink
Update information about python setuptools in the troubleshooting sec…
Browse files Browse the repository at this point in the history
…tion

Signed-off-by: Mateusz Palczuk <mateusz.palczuk@robotec.ai>
  • Loading branch information
TauTheLepton committed Apr 4, 2023
1 parent acc1168 commit 4ad0740
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/support/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,14 @@ During building the following issue can occurs
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '0.23ubuntu1'
```

The error is due to the fact that since version 66.0.0 `setuptools` enforces the python packages to be
The error is due to the fact that for versions between 66.0.0 and 67.5.0 `setuptools` enforces the python packages to be
[PEP-440](https://peps.python.org/pep-0440/) conformant.
Since version 67.5.1 `setuptools` added [fallback](https://github.com/pypa/setuptools/commit/1640731114734043b8500d211366fc941b741f67) that makes it possible to work with old packages again.

The workaround is to lower the version of `setuptools` to 65 or lower. It can be done using the following command
The solution is to update `setuptools` to the newest version with the following command

```bash
pip install -U setuptools==65.7.0
pip install --upgrade setuptools
```

## Docker/rocker issues
Expand Down

0 comments on commit 4ad0740

Please sign in to comment.