question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fails to find python3 empy

See original GitHub issue

The 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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
dimaqqcommented, Jan 14, 2022

Kinda poke 🙏🏿 What’s the recommended for beginners? Maybe sudo ln -s /usr/bin/empy3 /usr/bin/empy ?

1reaction
Akumar201commented, Jul 12, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found