Python SSL module suddenly not found in jobs involving macOS 10.14 VMs

Giotto Maintainers 16 Reputation points
2020-10-05T09:05:42.09+00:00

After no change in my Python project https://github.com/giotto-ai/giotto-tda, my macOS CI/CD jobs are failing due to Python saying the SSL module is now missing. This had not been the case so far. We are using a strategy matrix involving three Python versions (3.6, 3.7 and 3.8) and I have noticed that the problem disappears when only one of the Python versions is kept.

Community Center | Not monitored
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Giotto Maintainers 16 Reputation points
    2020-10-05T10:10:33.15+00:00

    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.

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.