'httpretty.errors.UnmockedError: Failed to socket.setblocking because because a real socket does not exist

I am using moto a python library to mock aws services. On my local everything works fine but on teamcity I get the error

httpretty.errors.UnmockedError: Failed to socket.setblocking because because a real socket does not exist

I am using httpretty==1.1.4 with python3.8.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source