Closed dsultanr closed 3 years ago
решилось удалением дефолтного websocket и установкой нового
# pip uninstall websocket
Found existing installation: websocket 0.2.1
Uninstalling websocket-0.2.1:
Would remove:
/usr/local/lib/python3.9/site-packages/websocket-0.2.1.dist-info/*
/usr/local/lib/python3.9/site-packages/websocket/*
Proceed (y/n)? y
Successfully uninstalled websocket-0.2.1
# pip install websocket-client==0.37.0
Collecting websocket-client==0.37.0
Downloading websocket_client-0.37.0.tar.gz (194 kB)
|████████████████████████████████| 194 kB 311 kB/s
Requirement already satisfied: six in /usr/local/lib/python3.9/site-packages (from websocket-client==0.37.0) (1.15.0)
Building wheels for collected packages: websocket-client
Building wheel for websocket-client (setup.py) ... done
Created wheel for websocket-client: filename=websocket_client-0.37.0-py3-none-any.whl size=196980 sha256=03c839db910d89e3d91cd73382fc9488e9be959835e5276ed7305d5e5b4057a2
Stored in directory: /root/.cache/pip/wheels/78/f2/b6/f251354c4ac953fa4e0eacc3d007652ffcc683ceb733252fce
Successfully built websocket-client
Installing collected packages: websocket-client
Successfully installed websocket-client-0.37.0
до этого ругалось ModuleNotFoundError: No module named 'websocket'