Unable to find either executable 'empy' or Python module 'em'... try installing the package 'python-empy'
Closed this issue ยท 6 comments
ysl208 commented
When running catkin build
I get the following error
CMake Error at /opt/ros/melodic/share/catkin/cmake/empy.cmake:29 (message):
Unable to find either executable 'empy' or Python module 'em'... try
installing the package 'python-empy'
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/all.cmake:163 (include)
/opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:56 (find_package)
ysl208 commented
This can be solved by telling it to use python3
catkin build -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m
AnshShah3009 commented
Why doesn't it default to python3?
AbdelrahmanAbounida commented
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
liu-jun-chen commented
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
Thanks! Your solution works for me!
AwesomePeiweiPan commented
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
Yes, work for me too. Thanks a lot!
Jeremiah-HL commented
That works for me, too! Thanks!