Robotics StackExchange | Archived questions

Cannot find em module though it exists

I have no experience with ROS.

I followed this to install ros2 on Windows 10. Eventually, I was able to run the examples from this link.

Now, I'm trying to build another source but I get ModuleNotFoundError: No module named 'em' as shown here.

How did I start:

  1. Open Visual Studio 2019 Developer Command Prompt
  2. Navigate to C:\dev\myproj_ws
  3. Run colcon build

What I tried:

  1. I tried to run pip install em. But, when I run colcon build again, I get conflict between empy and em: colcon.colcon_core.entry_point ERROR Exception loading extension 'colcon_core.shell.bat': cannot import name 'Interpreter' from 'em' (c:\python38\lib\site-packages\em\__init__.py) The Python package 'empy' must be installed and 'em' must not be installed since both packages share the same namespace

What I noticed:

I tried to import em to check if python recognizes it. When I ran python and then import em it succeeded. But, when I ran python3 and then ran import em it couldn't find the module em.


Asked by arisigor on 2022-12-06 13:02:20 UTC

Comments

Answers