'twisted' has no attribute '__version__'

401 Views Asked by At

I have loaded twisted using pip pip install twisted. Then I tried to import from autobahn.twisted.websocket import WebSocketClientProtocol, I get error when I import 'twisted' has no attribute '__version__'.

2

There are 2 best solutions below

0
On

If you want to use TLS functionality, use the appropriate extra:

pip install --upgrade twisted[tls]
0
On

pip install --upgrade pyopenssl can solve the issue when I am using Ubuntu