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

Bad marshal data (string ref out of range) (Python error) [closed]

asked 2013-10-01 17:00:08 -0500

FuerteNewbie gravatar image

updated 2014-01-28 17:18:06 -0500

ngrennan gravatar image

Hi, Anyone know how to solve this? Somehow it happened when I was trying to roslaunch after i edit my launch file, I can't even roscore now. This is the output when I roscore.

Traceback (most recent call last):
  File "/opt/ros/fuerte/bin/roscore", line 62, in <module>
    import roslaunch
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslaunch/__init__.py", line 43, in <module>
    from . import param_dump as roslaunch_param_dump
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslaunch/param_dump.py", line 40, in <module>
    import roslaunch.config
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslaunch/config.py", line 51, in <module>
    import roslaunch.xmlloader
ValueError: bad marshal data (string ref out of range)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by FuerteNewbie
close date 2013-10-01 20:36:34

Comments

How did you edit your launch file?

Po-Jen Lai gravatar image Po-Jen Lai  ( 2013-10-01 17:30:40 -0500 )edit

Just trying to add a launch code to call my 'map.yaml' file when the launch file run.. I refer this code from others. <arg name="map" default="blank_map.yaml"/> <node name="map_server" pkg="map_server" type="map_server" args="$(%my-own-directory5)/maps/$(arg map)"/>

FuerteNewbie gravatar image FuerteNewbie  ( 2013-10-01 17:33:52 -0500 )edit

If you recover the launch file to the version before you edited, can it works?

Po-Jen Lai gravatar image Po-Jen Lai  ( 2013-10-01 19:33:09 -0500 )edit

No, recover doesn't work.

FuerteNewbie gravatar image FuerteNewbie  ( 2013-10-03 21:32:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-01 20:35:51 -0500

FuerteNewbie gravatar image

Problem solved. Reinstall python according to your current version will do.

http://askubuntu.com/questions/101591/how-do-i-install-python-2-7-2-on-ubuntu

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-10-01 17:00:08 -0500

Seen: 2,958 times

Last updated: Oct 01 '13