I have a Python project (main-project) that depends on another project (common-utils) hosted on GitLab. While building main-project, I get an error similar to:
Collecting common-utils@ https://gitlab-ci-token:****@gitlab.address.git/common-utils.git@11991 (from -r /code/requirements.txt (line 17))
ERROR: HTTP error 404 while getting https://gitlab-ci-token:****@gitlab.address/common-utils.git@11991
ERROR: Could not install requirement common-utils@ https://gitlab-ci-token:****@gitlab.address.git@11991 from https://gitlab-ci-token:****@gitlab.address.git@11991 (from -r /code/requirements.txt (line 17))
because of HTTP error 404 Client Error: Not Found for url: https://gitlab.address.git@11991 for URL https://gitlab-ci-token:****@gitlab.address.git@11991
I have allowed access to common-utils from the main-project in CI/CD Settings -> Token Access
of the former.
The requirements.txt file is created with poetry export
and the troublesome dependency is:
common-utils @ https://gitlab-ci-token:[email protected]_address/common-utils.git@11991 ; python_full_version >= "3.11.7" and python_full_version < "4.0.0"
Can you help identifying what I’m missing?