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

Error Invalid <param> tag on running roscore

asked 2018-10-18 15:40:45 -0500

bxl gravatar image

updated 2018-10-19 13:05:36 -0500

I'm getting the following output when I run roscore:

WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/usr/bin/rosversion", line 9, in <module>
    load_entry_point('rospkg==1.1.7', 'console_scripts', 'rosversion')()
  File "/usr/lib/python2.7/dist-packages/rospkg/rosversion.py", line 106, in main
    version = rosstack.get_stack_version(args.package)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 422, in get_stack_version
    return get_stack_version_by_dir(self.get_path(stack))
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 201, in get_path
    self._update_location_cache()
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 184, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 67, in list_by_path
    root = ElementTree(None, os.path.join(d, PACKAGE_FILE))
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 611, in __init__
    self.parse(file)
  File "<string>", line 38, in parse
cElementTree.ParseError: XML or text declaration not at start of entity: line 1, column 1
Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1]. 

Param xml is <param command="rosversion roslaunch" name="rosversion"/>
The traceback for the exception was written to the log file

I've seen my issue is related to.
There they point out that I might have both pip and a debianpython installed and the shouls keep the debian only. Once Ubuntu relays on python I'm afraid of delete wrong files and mess up my system. My question is: is that correct? Can I delete pip python?

EDIT #1: add rosversion roslaunch log

     Traceback (most recent call last):
  File "/usr/bin/rosversion", line 9, in <module>
    load_entry_point('rospkg==1.1.7', 'console_scripts', 'rosversion')()
  File "/usr/lib/python2.7/dist-packages/rospkg/rosversion.py", line 106, in main
    version = rosstack.get_stack_version(args.package)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 422, in get_stack_version
    return get_stack_version_by_dir(self.get_path(stack))
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 201, in get_path
    self._update_location_cache()
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 184, in _update_location_cache
    list_by_path(self._manifest_name, path, cache)
  File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 67, in list_by_path
    root = ElementTree(None, os.path.join(d, PACKAGE_FILE))
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 611, in __init__
    self.parse(file)
  File "<string>", line 38, in parse
cElementTree.ParseError: XML or text declaration not at start of entity: line 1, column 1
edit retag flag offensive close merge delete

Comments

Can I delete pip python?

you would never be deleting "pip python", as that doesn't exist. You would only delete a module.

But in any case: let's take a step back: can you execute rosversion roslaunch on the command line?

gvdhoorn gravatar image gvdhoorn  ( 2018-10-19 01:41:28 -0500 )edit

No. It also gives an error. I updated my question with rosversion roslaunch log

bxl gravatar image bxl  ( 2018-10-19 13:06:22 -0500 )edit

Related: #q306290?

gvdhoorn gravatar image gvdhoorn  ( 2018-10-20 04:55:04 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-20 13:03:15 -0500

bxl gravatar image

I found the solution to this problem.
It happens there was a parser error in package.xml in one of my packages.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-18 15:40:45 -0500

Seen: 668 times

Last updated: Oct 20 '18