Closed dvidmon closed 5 years ago
you may probably need to add the *_proxy environment variables to the meta.yaml build section, as documented in the "Use environment variables" paragraph of https://conda.io/projects/conda-build/en/latest/resources/define-metadata.html#build-section, so that the settings become available to curl when executing in the conda build sub-shell.
Hi Riccardo,
Thanks for your help. However, although defining the environment variables through the meta.yaml file (see enclosed code) make them available, the conda build process keep on failing due to the same exact curl error (curl: (6) Could not resolve host: www.inchi-trust.org):
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
/software/anaconda2/lib/python2.7/site-packages/conda_build/environ.py:426: UserWarning: The environment variable 'HTTP_PROXY' is being passed through with value http://user:pwd@proxyip:port. If you are splitting build and test phases with --no-test, please ensure that this value is also set similarly at test time.
UserWarning
/software/anaconda2/lib/python2.7/site-packages/conda_build/environ.py:426: UserWarning: The environment variable 'HTTPS_PROXY' is being passed through with value http://user:pwd@proxyip:port. If you are splitting build and test phases with --no-test, please ensure that this value is also set similarly at test time.
UserWarning
/software/anaconda2/lib/python2.7/site-packages/conda_build/environ.py:426: UserWarning: The environment variable 'FTP_PROXY' is being passed through with value http://user:pwd@proxyip:port. If you are splitting build and test phases with --no-test, please ensure that this value is also set similarly at test time.
UserWarning
Attempting to finalize metadata for rdkit
Any ideas?
Hi again,
Apparently, it is a case sensitive issue, as when I defined the variables lower case, it worked just fine:
script_env:
- http_proxy
- https_proxy
- ftp_proxy
Thanks for your help. I'm closing the issue.
Hello,
I'm trying to build binary RDKit packages on conda. As I'm behind a firewall I've configured the corresponding proxy server in both the environment (export {https,http,ftp}_proxy=https://user:password@proxy:port/) and the conda configuration file (.condarc).
Everything goes smoothly on running the "conda build rdkit" until the program tries to build the InChI support when, apparently, curl is not able to download the source code from http://www.inchi-trust.org:
However, I've tried curl manually and it works just fine:
Is there any trick to bypass this situation?