'twisted' has no attribute '__version__'

439 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
Partha Sen On

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

0
Jean-Paul Calderone On

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

pip install --upgrade twisted[tls]