Closed
Description
Describe the bug
errbot's setup.py is hardcoded to install pyOpenSSL-21.0.0
. This version breaks when any distro or python version uses newer cryptography. Even the latest debian stable breaks.
To Reproduce
Example with Debian 11's python3.9
Using containers to test in a clean environment.
docker run -ti debian:11 bash
In the shell that pops up:
apt-get update && apt-get install -y git python3 python3-pip python3-dev
pip install errbot
Now run any pip command (like pip install requests
) or even errbot's webserver plugin
It will throw
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
This breaks pip which means you cant upgrade pyOpenSSL yourself
Expected behavior
Does not break pip or errbot's plugins
Additional context
You can find more info here pyca/pyopenssl#1177
Fix
Unpin or upgrade pyOpenSSL. If theyre using pip then its probably installed anyways.