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

Installing gazebo_ros_pkgs ROS 1 em.py errrors, --raw-errors

asked 2020-09-09 11:56:43 -0500

RobbieTheK gravatar image

updated 2020-09-09 11:59:02 -0500

Using this tutorial, running catkin_make fails with the following. Fedora 32, Python 3.8, and I made sure Anaconda Python is not in $PATH

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/em.py", line 3303, in <module>
    if __name__ == '__main__': main()
  File "/usr/lib/python3.8/site-packages/em.py", line 3301, in main
    invoke(sys.argv[1:])
  File "/usr/lib/python3.8/site-packages/em.py", line 3284, in invoke
    interpreter.wrap(interpreter.file, (file, name))
  File "/usr/lib/python3.8/site-packages/em.py", line 2295, in wrap
    self.fail(e)
  File "/usr/lib/python3.8/site-packages/em.py", line 2284, in wrap
    callable(*args)
  File "/usr/lib/python3.8/site-packages/em.py", line 2359, in file
    self.safe(scanner, done, locals)
  File "/usr/lib/python3.8/site-packages/em.py", line 2401, in safe
    self.parse(scanner, locals)
  File "/usr/lib/python3.8/site-packages/em.py", line 2421, in parse
    token.run(self, locals)
  File "/usr/lib/python3.8/site-packages/em.py", line 1425, in run
    interpreter.execute(self.code, locals)
  File "/usr/lib/python3.8/site-packages/em.py", line 2596, in execute
    _exec(statements, self.globals, locals)
  File "<string>", line 17, in <module>
  File "/usr/lib/python3.8/site-packages/catkin_pkg/topological_order.py", line 147, in topological_order
    for path, package in find_packages(space).items():
  File "/usr/lib/python3.8/site-packages/catkin_pkg/packages.py", line 96, in find_packages
    raise RuntimeError('\n'.join(duplicates))

And ends with:

CMake Error at /usr/local/bin/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):

  execute_process(/usr/local/bin/catkin_ws/build/catkin_generated/env_cached.sh
  "/usr/bin/python3.8" "/usr/lib/python3.8/site-packages/em.py"
  "--raw-errors" "-F"
  "/usr/local/bin/catkin_ws/build/catkin_generated/order_packages.py" "-o"
  "/usr/local/bin/catkin_ws/build/catkin_generated/order_packages.cmake"
  "/usr/local/bin/noetic/share/catkin/cmake/em/order_packages.cmake.em")
  returned error code 1
Call Stack (most recent call first):
  /usr/local/bin/noetic/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
  /usr/local/bin/noetic/share/catkin/cmake/catkin_workspace.cmake:35 (em_expand)
  CMakeLists.txt:69 (catkin_workspace)

Similar errors here.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-18 15:16:06 -0500

The problem originates here: https://github.com/ros-infrastructure...

It appears that there are duplicate packages in your source directories, which isn't supported. All packages should have unique source directories.

It's difficult to get errors like this to bubble out of EMpy, but this might be grounds for an issue against the catkin package. At the very least, it should be possible to attempt to crawl the packages priory to template expansion to discover errors like this and report more actionable error messages.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-09-09 11:56:43 -0500

Seen: 128 times

Last updated: Dec 18 '20