Closed kbrameld closed 7 months ago
What is the version of your Python, 3.8.10? RoboDK 5.6.9 introduces type hints, which only works with Python 3.5+. Thus, we created two versions which are automatically selected. Python 3.8.10 should have ">=3.5" in the setup.py, the file name should be robodk-5.6.9-py3-none-any (which is different from your trace).
See here: https://github.com/RoboDK/RoboDK-API/blob/master/Python/setup.py#L18 https://pypi.org/project/robodk/#files
Thanks for the quick response. Yes, my python version is 3.8.10. This can be reproduced in a clean ubuntu20.04 docker container via:
docker run ubuntu:20.04 sh -c 'apt update && apt install python3-pip -y && pip3 install robodk'
Thank you, I will investigate further. For now, you can manually download and install the py3 version (https://pypi.org/project/robodk/#files) or modify the setup.py to remove the python_require.
Can you run pip install --upgrade pip
to ensure you are using the latest version of pip?
Upgrading pip to 24.0 does seem to get around the issue. It seems like the previous pip version 20.0.2 (default on Ubuntu 20.04) prefers downloading the py2.py3 version over the py3 version.
Closing with the recommendation to upgrade pip.
I think upgrading pip is a workaround, but not a solution. Requiring users to upgrade pip leads to extra steps in user setup, CI pipelines, and the resulting pip version no longer matching the system's recommended version, potentially leading to issues elsewhere. Given Ubuntu 20.04 is a fairly popular OS (and I'm assuming is a targeted platform), I see not being able to use system-default pip to install this package a remaining issue.
Version 5.7.0 should fix this issue: https://pypi.org/project/robodk/
Thanks @sambertrdk, I confirmed I am able to install 5.7.0 through pip 20.0.2
In 5.6.9, installing robodk via
pip3 install robodk
fails on Ubuntu 20.04.