-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'WebSocketProtocol13' object has no attribute 'is_closing' #75
Comments
Hmm, it seems it IS about the tornado version (jupyter/notebook#5920). My workaround was to add the venv to the cd ~/ws
virtualenv .venv
source .venv/bin/activate
pip install --upgrade tornado
source /opt/ros/DISTRO/setup.bash
colcon build Running: source ~/ws/install/setup.bash
export PYTHONPATH=$(realpath ~/ws/.venv/lib/python3.8/site-packages):$PYTHONPATH
ros2 run rosboard rosboard_node Note: adjust paths (in particular the Edit: typo in one of the paths |
After some testing I've added a following method to the @staticmethod
def is_ws_closing(ws_connection):
return (not ws_connection) or ws_connection.stream.closed() or ws_connection.client_terminated or ws_connection.server_terminated |
@mjbogusz Thank you! I'll set up a virtual machine later and test this. |
@mjbogusz Hi there, |
Fwiw: I solved the same issue by |
I've rebased my work on top of dev, dropping my quick-n-dirty fix and it works like a charm! 🥇
I don't like installing pip packages user-wise - you don't remember it a year down the line but your program picks up unrecognized packages (e.g. dependencies) in weird (obsolete) versions you can't track down. Been there done that ;) |
@mjbogusz Good points. Thanks for checking! I'd also like to see if there is a way for a catkin or colcon package to create its own virtualenv with the correct versions of everything. I did something of the sort here which is kind of a joke but really only a half-joke in the sense that I wish it were possible to say |
Just ran into this issue myself. A fix supporting Tornado 5.x would be highly appreciated since that's the version Ubuntu 20.04 ships hence the version that e.g. rosdep installs. |
This issue has just been fixed on main by #82. I'm leaving closing the issue to the maintainers in case anyone wants to add something here (: |
Running on Ubuntu 20.04, ROS2 Galactic (configured as a ROS2 package in a workspace).
At first I thought it was because of the
tornado
installed from apt (python3-tornado
), but the same error appeared after installing fresh tornado in a virtualenv.Logs:
The text was updated successfully, but these errors were encountered: