Websocket Error - Anyone else getting this?
See original GitHub issueSeveral months back I installed alpaca, zipline, pylivetrader etc to test these platforms out and play around with them. After some trouble-shooting everything went well and it all worked as expected.
I’ve just come back and tried to reinstall (as I no longer have the original test installation) and now I am confronted with this error:
Collecting websockets>=8.0 (from alpaca-trade-api>=0.38->pylivetrader) ERROR: Could not find a version that satisfies the requirement websockets>=8.0 (from alpaca-trade-api>=0.38->pylivetrader) (from versions: 1.0, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2, 3.3, 3.4, 4.0, 4.0.1, 5.0, 5.0.1, 6.0, 7.0) ERROR: No matching distribution found for websockets>=8.0 (from alpaca-trade-api>=0.38->pylivetrader)
I’ve spent as much time as I can trying to resolve it but am not able to make any progress on it.
For clarification:
- Host Machine Macbook
- VMware
- Guest OS = Ubuntu 16.04
I have changed nothing on this particular machine other than delete the original pylivetrader (etc) installation after I had finished several months back yet now this error is raised no matter which method I use to install pylivetrader, alpaca-trade-api, zipline, pipeline-live etc.
If anyone has any insight onto this I’d be particularly grateful.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
I had followed every step I could to ensure my venv was solely running python 3.6
But in the error codes there were clear python conflicts, as you stated.
In the end I solved it, amongst some other conflicts in my system, with:
sudo apt-get install python3.6-dev
I hope this helps someone else; it had me snagged for days.
FYI, the exact sequence I underwent was:
$ sudo add-apt-repository ppa:jonathonf/python-3.6
$ sudo apt-get update
$ sudo apt-get install python3.6
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
$ sudo update-alternatives --config python3
(then type 2 and press enter)$ python3 -V
(to check version Python 3 running)$ sudo apt-get install python3-pip
$ sudo pip3 install virtualenv
$ virtualenv --no-site-packages -p python3.6 venv
$ source ./venv/bin/activate
$ python –version
(should read Python 3.6.X)$ sudo apt-get install build-essential libssl-dev libffi-dev
$ sudo apt-get install unixodbc-dev
$ sudo apt-get install python3.6-dev
$ pip install pandas
$ pip install pylivetrader
$ pylivetrader run –help
(To check installation was successful)I have the same error on a venv, using python 3.6 and can’t install websockets 9.1.1 or >