gorgeous-addition-6562
08/25/2022, 11:02 PMrequirements.txt
is like this
bagpy
roslz4 --extra-index-url <https://rospypi.github.io/simple/>
Using that in a venv with pip works fine for my app. But pants
seems to not able to pick up the extra url:
stderr:
ERROR: Could not find a version that satisfies the requirement roslz4
ERROR: No matching distribution found for roslz4
pid 1205759 -> /home/aghosh/.cache/pants/named_caches/pex_root/venvs/b16167dce033b47f1a773c13706cbea19b1a1591/ddab8011daaee380698ac2fb9701af18c90c03f6/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /home/aghosh/.cache/pants/named_caches/pex_root --log /tmp/process-executionqu5xHv/.tmp/pex-pip-logz29_sdf0/pip.log download --dest /tmp/process-executionqu5xHv/.tmp/tmpjrywxg8u/usr.bin.python3.8 bagpy roslz4 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
None
How do I fix this problem? Look like pex
has option to pick up --extra-index-url
as well, but my guess is pants
doesn't pass that to pex
?
More context: https://stackoverflow.com/questions/58754968/failed-to-load-python-extension-for-lz4-support-lz4-compression-will-not-be-avahundreds-father-404
08/25/2022, 11:04 PMpants.toml
[python-repos]
indexes.add = ["<https://rospypi.github.io/simple/>"]
gorgeous-addition-6562
08/25/2022, 11:05 PMgorgeous-addition-6562
08/25/2022, 11:06 PMgorgeous-addition-6562
08/26/2022, 2:12 AMroslz4
wheels in the extra url https://rospypi.github.io/simple/roslz4/. Don't know why it picks that wheel in py3rosmsgs-1.18.2-py2.py3-non-any.whl
?gorgeous-addition-6562
08/26/2022, 5:10 AMpy3rosmsgs
, which bagpy
depends on, is the culprit. It's a collection of packages, which could be outdated. Removing them and using original packages from rospypi
seems to help solve my problem.