From dcb8ce8b189c06040814afd271bde15808f1f01e Mon Sep 17 00:00:00 2001 From: Lukasz Chojnacki Date: Thu, 2 Feb 2023 10:57:10 +0100 Subject: [PATCH 1/3] Add information about setuptools issue in the troubleshooting section Signed-off-by: Lukasz Chojnacki --- docs/support/troubleshooting.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/support/troubleshooting.md b/docs/support/troubleshooting.md index 9bce687a421..de27c4fac38 100644 --- a/docs/support/troubleshooting.md +++ b/docs/support/troubleshooting.md @@ -129,6 +129,22 @@ In addition to the causes listed above, there are two common misunderstandings a 2. You didn't update the workspace after changing the branch of `autowarefoundation/autoware`. Changing the branch of `autowarefoundation/autoware` does not affect the files under `src/`. You have to run the `vcs import` command to update them. + +### Error when building python package + +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 +[PEP-440](https://peps.python.org/pep-0440/) conformant. + +The workaround is to lower the version of `setuptools` to 65 or lower. It can be done using the following command +``` +pip install -U setuptools==65.7.0 +``` + ## Docker/rocker issues If any errors occur when running Autoware with Docker or rocker, first confirm that your Docker installation is working correctly by running the following commands: From 05ddd65e8b94a52e4942077cf0a7a6bc4e0a0b51 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 10:00:57 +0000 Subject: [PATCH 2/3] style(pre-commit): autofix --- docs/support/troubleshooting.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/support/troubleshooting.md b/docs/support/troubleshooting.md index de27c4fac38..eb9af0df99a 100644 --- a/docs/support/troubleshooting.md +++ b/docs/support/troubleshooting.md @@ -129,18 +129,19 @@ In addition to the causes listed above, there are two common misunderstandings a 2. You didn't update the workspace after changing the branch of `autowarefoundation/autoware`. Changing the branch of `autowarefoundation/autoware` does not affect the files under `src/`. You have to run the `vcs import` command to update them. - ### Error when building python package 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 since version 66.0.0 `setuptools` enforces the python packages to be [PEP-440](https://peps.python.org/pep-0440/) conformant. The workaround is to lower the version of `setuptools` to 65 or lower. It can be done using the following command + ``` pip install -U setuptools==65.7.0 ``` From 11d11a7adadb5fa8a2accc7a49e757bbb67c33be Mon Sep 17 00:00:00 2001 From: Lukasz Chojnacki Date: Thu, 2 Feb 2023 11:08:18 +0100 Subject: [PATCH 3/3] Add language specification to fenced code blocks Signed-off-by: Lukasz Chojnacki --- docs/support/troubleshooting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/support/troubleshooting.md b/docs/support/troubleshooting.md index eb9af0df99a..d71e22909d6 100644 --- a/docs/support/troubleshooting.md +++ b/docs/support/troubleshooting.md @@ -133,7 +133,7 @@ In addition to the causes listed above, there are two common misunderstandings a During building the following issue can occurs -``` +```bash pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '0.23ubuntu1' ``` @@ -142,7 +142,7 @@ The error is due to the fact that since version 66.0.0 `setuptools` enforces the The workaround is to lower the version of `setuptools` to 65 or lower. It can be done using the following command -``` +```bash pip install -U setuptools==65.7.0 ```