Problem with OpenSSL on PyPi Deploy

build-env

#1

I am getting a “ModuleNotFound” error when trying to deploy a project to PyPi.

Travis CI reports a ModuleNotFound error for OpenSSL when attempting to deploy to PyPi using twine. See the build script here. A few weeks ago, this same build script worked. I haven’t changed any of my dependencies and the build environment looks very similar (e.g., same OpenSSL, urllib3 version) to another build that succeeded (here)

Any thoughts on what could be going wrong?


#2

Restarted it again today, and there was no error!


#3

Got the same thing yesterday and added pip install pyOpenSSL --upgrade to the install in the PyPI deploy which also fixed it. Today I took it out and it’s working fine. :thinking: