After deeper investigation, the problem seems to be due to a bad (but new!) interaction between the package manager brew
and Azure. We are using brew
in the step prior to the one which breaks. The default behaviour of brew
is to run brew cleanup
after any installation if it has not been run for 30 days. It seems that since yesterday, this corrupts something about the Python installation or its connection with the OpenSSL library. The problem disappears when I set the HOMEBREW_NO_INSTALL_CLEANUP
flag to 1.
This might affect several other users so I think it would be worth investigating why it has started happening only yesterday.