getting error "em: error: unrecognized arguments: --raw-errors -F -o" after removing "devel" and "build"
In my catkin_workspace a python module was not able to use another python module. Advice on the internet was to delete the "devel" and "build" folder in the workspace and try to build again.
After i did thati get the following error (additionally i also get this error when i create a new workspace):
em: error: unrecognized arguments: --raw-errors -F -o /home/tim-htk/robotik/catkin_ws_new/build/catkin_generated/order_packages.cmake /opt/ros/noetic/share/catkin/cmake/em/order_packages.cmake.em
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/home/tim-htk/robotik/catkin_ws_new/build/catkin_generated/env_cached.sh
"/home/tim-htk/anaconda3/bin/python"
"/home/tim-htk/anaconda3/lib/python3.9/site-packages/em" "--raw-errors"
"-F"
"/home/tim-htk/robotik/catkin_ws_new/build/catkin_generated/order_packages.py"
"-o"
"/home/tim-htk/robotik/catkin_ws_new/build/catkin_generated/order_packages.cmake"
"/opt/ros/noetic/share/catkin/cmake/em/order_packages.cmake.em") returned
error code 2
Call Stack (most recent call first):
/opt/ros/noetic/share/catkin/cmake/em_expand.cmake:25 (safe_execute_process)
/opt/ros/noetic/share/catkin/cmake/catkin_workspace.cmake:35 (em_expand)
CMakeLists.txt:69 (catkin_workspace)
with the following python-Version being used:
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /home/tim-htk/anaconda3/lib/python3.9/site-packages/em
thanks for any help in advance
Asked by Tim-HTK on 2023-05-26 07:19:23 UTC
Answers
I solved the problem by not only removing "build" and "devel" but also ".catkin_workspace" and the "CMakeLists.txt" in the src directory. After that i reinitialized the catkin-Workspace using "catkin_init_workspace" inside the "src"-folder. After that i was able to "catkin_make" again without any problems.
Asked by Tim-HTK on 2023-05-26 08:01:33 UTC
Comments