Hello,
I am trying use Gitlab CI but I encounter a problem when trying to install my environment with pip: it seems that the server executing the script cannot connect to pypi.org.
content of .gitlab-ci.yml:
test-carotid:
image: python:latest
before_script:
- pip install -e ./src
script:
- pytest ./src/tests
traceback:
Preparing metadata (setup.py): finished with status 'done'
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f2d4cfd27a0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/monai/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f2d4c44b640>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/monai/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f2d4c44b490>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/monai/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f2d4c44b310>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/monai/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f2d4c44b190>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/monai/
ERROR: Could not find a version that satisfies the requirement monai==0.8.1 (from carotid) (from versions: none)
ERROR: No matching distribution found for monai==0.8.1
ERROR: Job failed: command terminated with exit code 1
Requirements of my projects:
monai==0.8.1
scipy==1.7.3
matplotlib==3.5.2
simpleitk==2.1.1
numpy==1.22.4
scikit-learn==1.1.1
tqdm==4.64.0
pandas==1.4.2
pydicom==2.3.0
click==8.1.3
torch
pytest
Does someone know how to enable this connection?