ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Getting error when i launch rosbridge server

asked 2020-03-31 23:45:51 -0500

Kavya K S gravatar image

updated 2020-04-01 03:42:32 -0500

gvdhoorn gravatar image


I am trying to launch the rosbrige_server but getting some error. here is my error.

$ roslaunch rosbridge_server rosbridge_websocket.launch
... logging to /home/ros/.ros/log/db49208c-73ce-11ea-8385-d46d6d3818ff/roslaunch-ROS-KV-29074.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ROS-KV:35123/


 * /rosapi/params_glob: [*]
 * /rosapi/services_glob: [*]
 * /rosapi/topics_glob: [*]
 * /rosbridge_websocket/address:
 * /rosbridge_websocket/authenticate: False
 * /rosbridge_websocket/bson_only_mode: False
 * /rosbridge_websocket/delay_between_messages: 0
 * /rosbridge_websocket/fragment_timeout: 600
 * /rosbridge_websocket/max_message_size: None
 * /rosbridge_websocket/params_glob: [*]
 * /rosbridge_websocket/port: 9090
 * /rosbridge_websocket/retry_startup_delay: 5
 * /rosbridge_websocket/services_glob: [*]
 * /rosbridge_websocket/topics_glob: [*]
 * /rosbridge_websocket/unregister_timeout: 10
 * /rosbridge_websocket/use_compression: False
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

    rosapi (rosapi/rosapi_node)
    rosbridge_websocket (rosbridge_server/rosbridge_websocket)


process[rosbridge_websocket-1]: started with pid [29091]
process[rosapi-2]: started with pid [29092]
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/rosbridge_server/rosbridge_websocket", line 39, in <module>
    from twisted.internet import reactor, ssl
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/internet/", line 38, in <module>
    from twisted.internet import default
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/internet/", line 56, in <module>
    install = _getInstallFunction(platform)
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/internet/", line 44, in _getInstallFunction
    from twisted.internet.epollreactor import install
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/internet/", line 24, in <module>
    from twisted.internet import posixbase
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/internet/", line 18, in <module>
    from twisted.internet import error, udp, tcp
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/internet/", line 31, in <module>
    from twisted.internet._newtls import (
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/internet/", line 21, in <module>
    from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
  File "/home/ros/.local/lib/python2.7/site-packages/twisted/protocols/", line 41, in <module>
    from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
  File "/usr/lib/python2.7/dist-packages/OpenSSL/", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/", line 118, in <module>
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
[rosbridge_websocket-1] process has died [pid 29091, exit code 1, cmd /opt/ros/kinetic/lib/rosbridge_server/rosbridge_websocket __name:=rosbridge_websocket __log:=/home/ros/.ros/log/db49208c-73ce-11ea-8385-d46d6d3818ff/rosbridge_websocket-1.log].
log file: /home/ros/.ros/log/db49208c-73ce-11ea-8385-d46d6d3818ff/rosbridge_websocket-1*.log

i install the rosbridge according to ros wiki instruction. can anyone help me to solve this? thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-01 00:04:10 -0500

Kavya K S gravatar image

Thanks, i can manage to do it. the way i did it like below.

sudo rm -rf /usr/lib/python2.7/dist-packages/OpenSSL

sudo rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-0.15.1.egg-info

sudo pip install pyopenssl

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-03-31 23:45:51 -0500

Seen: 1,297 times

Last updated: Apr 01 '20