question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Websocket Error - Anyone else getting this?

See original GitHub issue

Several 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
CapitalZecommented, Sep 11, 2019

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)

0reactions
Slow1commented, Nov 9, 2022

I have the same error on a venv, using python 3.6 and can’t install websockets 9.1.1 or >

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebSockets - Handling Errors
WebSockets - Handling Errors, Once a connection has been established between the client and the server, an open event is fired from the...
Read more >
How to catch `WebSocket connection to 'ws://xxx:nn' failed
This gives you the opportunity to set handlers for different disconnect scenarios and then handle everything else as a generic error.
Read more >
WebSocket Connection Error for some users?
Hello everybody, my company uses shinyproxy for production and it ... They receive the following 403 Error. ... Did anybody solve this?
Read more >
WebSocket: error event - Web APIs | MDN
The error event is fired when a connection with a WebSocket has been closed due to an error (some data couldn't be sent...
Read more >
Websocket connection error upon first login - every time
Hi, I get the following error every time I login to the controller: It just appears for a few moments and then ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found