Fails to find python3 empy
See original GitHub issueThe empy executable is now named empy3
, and so catkin now fails to find it (observed on focal): https://github.com/ros/catkin/blob/a9672d78ec483c3a991a051c365da329fceaa9f2/cmake/empy.cmake#L25
The obvious fix would be to change the respective line to find_program(EMPY_EXECUTABLE NAMES empy empy3)
. I can prepare a PR for this, if desired.
The issue suddenly appeared in our CI last week, without any obvious change on the catkin side. No idea why it was working before…
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top Results From Across the Web
python module empy missing - Tutorials - ROS Answers
I'm walking through the tutorials and am on Introduction to msg and srv I'm using Ubuntu 16.04 and Kinetic. My python is /usr/bin/python...
Read more >ROS catkin_make can't find empy (suspect some sort of path ...
This looks to me like the issue is ROS wants python2, but I have empy for python3. I can't figure out how to...
Read more >E: Unable to locate package python-empy - Stack Overflow
Try to do: sudo apt-get install python-argparse git-core wget zip python-empy qtcreator cmake build-essential -y.
Read more >ubuntu20.04出现Unable to find either executable 'empy' or ...
Unable to find either executable 'empy' or Python module 'em'... try installing the package 'python3-empy'报错解决方案即可。 ROS编译(catkin_make) ...
Read more >inspect — Inspect live objects — Python 3.11.1 documentation
They also help you determine when you can expect to find the following ... This will fail with a TypeError if the object...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Kinda poke 🙏🏿 What’s the recommended for beginners? Maybe
sudo ln -s /usr/bin/empy3 /usr/bin/empy
?I had the same problem in ROS noetic. I use the following command to resolve this issue.
The problem is that catkin is either using the python2 executable or looking into the python2 directories. You either install python2 emp or tell catkin to use python3:
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.7m