From 4ad07404e554d871497e885b32090d10c4148dfc Mon Sep 17 00:00:00 2001 From: Mateusz Palczuk Date: Fri, 31 Mar 2023 13:44:19 +0200 Subject: [PATCH 1/2] Update information about python setuptools in the troubleshooting section Signed-off-by: Mateusz Palczuk --- docs/support/troubleshooting.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/support/troubleshooting.md b/docs/support/troubleshooting.md index b28d60b0569..370403afcfc 100644 --- a/docs/support/troubleshooting.md +++ b/docs/support/troubleshooting.md @@ -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 From 0efed40019d3a141f30e234b20355d247cd5d313 Mon Sep 17 00:00:00 2001 From: Mateusz Palczuk <80065197+TauTheLepton@users.noreply.github.com> Date: Fri, 7 Apr 2023 10:25:29 +0200 Subject: [PATCH 2/2] Apply suggested correction Co-authored-by: Piotr Zyskowski <87643052+piotr-zyskowski-rai@users.noreply.github.com> Signed-off-by: Mateusz Palczuk --- docs/support/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/support/troubleshooting.md b/docs/support/troubleshooting.md index 370403afcfc..4d079f37359 100644 --- a/docs/support/troubleshooting.md +++ b/docs/support/troubleshooting.md @@ -139,7 +139,7 @@ pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '0.23ubu 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. +Since version 67.5.1 `setuptools` has a [fallback](https://github.com/pypa/setuptools/commit/1640731114734043b8500d211366fc941b741f67) that makes it possible to work with old packages again. The solution is to update `setuptools` to the newest version with the following command