Edit .condarc in case of error " ProxyError: Conda cannot proceed due to an error in your proxy configuration. Check for ... "

When following the Mantid GitHub instructions for building Mantid from source, I get the following error when entering

conda env create -f mantid-developer-linux.yml

into my terminal:

ProxyError: Conda cannot proceed due to an error in your proxy configuration.
Check for typos and other configuration errors in any ‘.netrc’ file in your home directory,
any environment variables ending in ‘_PROXY’, and any other system-wide proxy
configuration settings.

After reading an answer to a similar problem on StackOverflow, I was able to solve the problem by editing PathTo/mambaforge/.condarc by replacing

! NOTE !: I had to put spaces before and after each dot and dash because new MantidForum users are only allowed to place 2 links in a post

proxy_servers:

! NOTE !: there are unnecessary spaces in the line below because this was posted to a forum which limits number of hyperlinks per post

http: http: / / proxy . ill . fr:8888

! NOTE !: there are unnecessary spaces in the line below because this was posted to a forum which limits number of hyperlinks per post

https: http: / / proxy . ill . fr:8888

With

proxy_servers:

! NOTE !: there are unnecessary spaces in the line below because this was posted to a forum which limits number of hyperlinks per post

http: proxy . ill . fr:8888

Figured to post this here in case it is not worth editing the instructions on GitHub.

1 Like

That’s helpful, thanks for your suggestion. I will discuss it with the team.

1 Like