Problem with two versions of Python ?

asked 2016-05-20 07:26:01 -0500

ptipois59 gravatar image

Hello guys,

I'm currently struggling on a problem, I'm about to throw my bot from the window.

So, I've installed ROS indigo, and set everything, it worked nice, until today, when I wanted to install rosbridge to use roslibjs. When I open rosbridge using

 roslaunch rosbridge_server rosbridge_websocket.launch

I've got some issues :

started roslaunch server http://syub:54335/
PARAMETERS
 * /rosbridge_websocket/address: 
 * /rosbridge_websocket/authenticate: False
 * /rosbridge_websocket/delay_between_messages: 0
 * /rosbridge_websocket/fragment_timeout: 600
 * /rosbridge_websocket/max_message_size: None
 * /rosbridge_websocket/port: 9090
 * /rosbridge_websocket/retry_startup_delay: 5
 * /rosdistro: indigo
 * /rosversion: 1.11.19

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

auto-starting new master
process[master]: started with pid [29480]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to ccd90e44-1e83-11e6-ade2-685d439e35e5
process[rosout-1]: started with pid [29493]
started core service [/rosout]
process[rosbridge_websocket-2]: started with pid [29501]
process[rosapi-3]: started with pid [29509]
Traceback (most recent call last):
  File "/opt/ros/indigo/lib/rosapi/rosapi_node", line 36, in <module>
    from rosapi import proxy, objectutils, params
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosapi/proxy.py", line 41, in <module>
    from ros import rosnode, rosgraph
  File "/opt/ros/indigo/lib/python2.7/dist-packages/ros/__init__.py", line 54, in __getattr__
    roslib.load_manifest(name.split('.')[0])
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest
    sys.path = _generate_python_path(package_name, _rospack) + sys.path
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path
    m = rospack.get_manifest(pkg)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in get_manifest
    return self._load_manifest(name)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest
    retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self)
  File "/usr/lib/python2.7/dist-packages/rospkg/manifest.py", line 393, in parse_manifest_file
    _static_rosdep_view = init_rospack_interface()
  File "/usr/lib/python2.7/dist-packages/rosdep2/rospack.py", line 58, in init_rospack_interface
    lookup = _get_default_RosdepLookup(Options())
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 127, in _get_default_RosdepLookup
    verbose=options.verbose)
  File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 607, in create_default
    sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose)
  File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 508, in load_cached_sources_list
    return parse_sources_data(cache_data, origin=cache_index, model=model)
  File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 366, in parse_sources_data
    raise InvalidData("line:\n\t%s\n%s"%(line, e), origin=origin)
rosdep2.core.InvalidData: line:
    yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
unsupported pickle protocol: 4
registered capabilities (classes):
 - rosbridge_library.capabilities.call_service.CallService
 - rosbridge_library.capabilities.advertise.Advertise
 - rosbridge_library.capabilities.publish.Publish
 - rosbridge_library.capabilities.subscribe.Subscribe
 - <class 'rosbridge_library.capabilities.defragmentation.Defragment'>
 - rosbridge_library.capabilities.advertise_service.AdvertiseService
 - rosbridge_library.capabilities.service_response.ServiceResponse
 - rosbridge_library.capabilities.unadvertise_service.UnadvertiseService
[rosapi-3] process has died [pid 29509, exit code 1, cmd /opt/ros/indigo/lib/rosapi/rosapi_node __name:=rosapi __log:=/home/sylvain/.ros/log/ccd90e44-1e83-11e6-ade2-685d439e35e5/rosapi-3.log].
log file: /home/sylvain/.ros/log/ccd90e44-1e83-11e6-ade2-685d439e35e5/rosapi-3*.log
[INFO] [WallTime: 1463746211.592799] Rosbridge WebSocket server started on port 9090

The server seems to work, but each ... (more)

edit retag flag offensive close merge delete

Comments

Regarding "Unable to load the manifest for package rospy_tutorials", can you provide the output when you do rospack find rospy_tutorials? This is to check whether rospy_tutorials is installed or not?

abhishek47kashyap gravatar image abhishek47kashyap  ( 2020-09-02 01:45:33 -0500 )edit