Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ValueError: bad marshal data (string ref out of range)

Hi, Anyone know how to solve this? Somehow it happened and I can't roscore and roslaunch. Here's the output.

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)
user@ubuntu:~/fuerte_workspace/sandbox$ 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)

ValueError: bad marshal data (string ref out of range)

Hi, Anyone know how to solve this? Somehow it happened and I can't roscore and roslaunch. Here's the output.

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)
user@ubuntu:~/fuerte_workspace/sandbox$ 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)

Fixed 'ValueError' Error 2 (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

ValueError: bad marshal data (string ref out of range)Import Error:No module named rospkg

Hi, Anyone know how to solve this? Somehow it happened and I can't roscore and roslaunch. Here's the output.

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)
user@ubuntu:~/fuerte_workspace/sandbox$ 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)

Fixed 'ValueError' Error 2 (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Import Error:No module named rospkg

Hi, Anyone know how to solve this? Somehow it happened and I can't roscore and roslaunch. Here's the output.

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)
user@ubuntu:~/fuerte_workspace/sandbox$ 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)

Fixed 'ValueError'

Error 2 (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Import Error:No module named rospkg

Hi, Anyone know how to solve this? Somehow it happened and I can't roscore and roslaunch. Here's the output.

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)
user@ubuntu:~/fuerte_workspace/sandbox$ 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)

Fixed 'ValueError'Hi,

Error 2 (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Solution executed: (Make no difference) $sudo apt-get install python-rospkg $sudo apt-get install --reinstall ros-fuerte-ros-comm reinstall python 2.7

Please help I can't continue with my work, very much appreciated.

Import Error:No module named rospkg

Hi,

Error (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Solution executed: (Make no difference) $sudo apt-get install python-rospkg $sudo apt-get install --reinstall ros-fuerte-ros-comm reinstall python 2.7

user@ubuntu:~$ env | grep ROS
ROS_ROOT=/opt/ros/fuerte/share/ros
ROSLISP_PACKAGE_DIRECTORY=/opt/ros/fuerte/share/common-lisp/ros
ROS_PACKAGE_PATH=/opt/ros/fuerte/share:/opt/ros/fuerte/stacks
ROS_MASTER_URI=http://localhost:11311
ROS_DISTRO=fuerte
ROS_ETC_DIR=/opt/ros/fuerte/etc/ros

PYTHONPATH=/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:

Please help I can't continue with my work, very much appreciated.

Import Error:No module named rospkg

Hi,

Error (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Solution executed: (Make no difference) $sudo apt-get install python-rospkg $sudo apt-get install --reinstall ros-fuerte-ros-comm reinstall python 2.7

user@ubuntu:~$ env | grep ROS
ROS_ROOT=/opt/ros/fuerte/share/ros
ROSLISP_PACKAGE_DIRECTORY=/opt/ros/fuerte/share/common-lisp/ros
ROS_PACKAGE_PATH=/opt/ros/fuerte/share:/opt/ros/fuerte/stacks
ROS_MASTER_URI=http://localhost:11311
ROS_DISTRO=fuerte
ROS_ETC_DIR=/opt/ros/fuerte/etc/ros

PYTHONPATH=/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:

Please help I can't continue with my work, very much appreciated.

Import Error:No module named rospkg

Hi,

Error (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Solution executed: (Make no difference) $sudo apt-get install python-rospkg $sudo apt-get install --reinstall ros-fuerte-ros-comm reinstall python 2.7

user@ubuntu:~$ env | grep ROS
ROS_ROOT=/opt/ros/fuerte/share/ros
ROSLISP_PACKAGE_DIRECTORY=/opt/ros/fuerte/share/common-lisp/ros
ROS_PACKAGE_PATH=/opt/ros/fuerte/share:/opt/ros/fuerte/stacks
ROS_MASTER_URI=http://localhost:11311
ROS_DISTRO=fuerte
ROS_ETC_DIR=/opt/ros/fuerte/etc/ros

PYTHONPATH=/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:

Please help I can't continue with my work, very much appreciated.

Import Error:No module named rospkg

Hi,

Error (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Solution executed: (Make no difference) $sudo apt-get install python-rospkg $sudo apt-get install --reinstall ros-fuerte-ros-comm reinstall python 2.7

user@ubuntu:~$ env | grep ROS
ROS_ROOT=/opt/ros/fuerte/share/ros
ROSLISP_PACKAGE_DIRECTORY=/opt/ros/fuerte/share/common-lisp/ros
ROS_PACKAGE_PATH=/opt/ros/fuerte/share:/opt/ros/fuerte/stacks
ROS_MASTER_URI=http://localhost:11311
ROS_DISTRO=fuerte
ROS_ETC_DIR=/opt/ros/fuerte/etc/ros

PYTHONPATH=/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:

Please help I can't continue with my work, very much appreciated.

Import Error:No module named rospkg

Hi,

Error (Happened after I fixed the error above and I tried to rosrun tf view_frames)

user@ubuntu:~$ rosrun tf view_frames 
Traceback (most recent call last):
  File "/opt/ros/fuerte/stacks/geometry/tf/scripts/view_frames", line 43, in <module>
    import roslib; roslib.load_manifest(PKG) 
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

Solution executed: (Make no difference) $sudo apt-get install python-rospkg $sudo apt-get install --reinstall ros-fuerte-ros-comm reinstall python 2.7

user@ubuntu:~$ env | grep ROS
ROS_ROOT=/opt/ros/fuerte/share/ros
ROSLISP_PACKAGE_DIRECTORY=/opt/ros/fuerte/share/common-lisp/ros
ROS_PACKAGE_PATH=/opt/ros/fuerte/share:/opt/ros/fuerte/stacks
ROS_MASTER_URI=http://localhost:11311
ROS_DISTRO=fuerte
ROS_ETC_DIR=/opt/ros/fuerte/etc/ros

PYTHONPATH=/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:

Please help I can't continue with my work, very much appreciated.