Select to view content in your preferred language

Ability to use on-premise/custom image library for cloning python packages

262
2
12-19-2024 08:49 AM
Status: Needs Clarification
Labels (1)
JamesNeild1
Occasional Contributor

We are blocked from pulling packages down from cloud image libraries, we have an on-premises image manager that we have to use for pip. It would be great if there was a config setting that allowed us to choose between the cloud or a custom image library.

Error messages such as the following show up in the "Create Environment" Task.

Collecting pip 23:07:14 [INFO] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

We use pip config commands to set our image index and image index url to our local repo.

2 Comments
DavidSolari

Pro uses Conda instead of pip/pypi for package handling and I doubt this will change in the near future. I think the Conda version of what you're doing is called a "private channel", the official docs might help here. This has the added bonus of letting you grab a package and all its dependencies from pypi and hosting it, avoiding the usual issues with outdated packages.

HannesZiegler
Status changed to: Needs Clarification

Hi @JamesNeild1 ,

It seems there is still some misconfiguration, the specific error mentioned is caused by pip not trusting the SSL certificate, that will need to be addressed independently by adding a certificate. The suggestion to set up a conda private channel could also be an avenue to explore.

Is the primary problem you are trying to solve that of cloning of your Python environment in an offline setting, or are you having trouble installing individual packages in an offline setting (I suspect a mixture of both)?