Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmacro4urdf ModuleNotFoundError #1

Closed
lukebeddow opened this issue Jan 18, 2022 · 3 comments
Closed

xmacro4urdf ModuleNotFoundError #1

lukebeddow opened this issue Jan 18, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@lukebeddow
Copy link

Hi, I just installed the latest version of xmacro (v1.2.0) using pip.

When I try to run xmacro I get the following error:

Traceback (most recent call last):
  File "/home/luke/.local/bin/xmacro", line 5, in <module>
    from xmacro import xmacro_main
  File "/home/luke/.local/lib/python3.6/site-packages/xmacro/__init__.py", line 3, in <module>
    from xmacro.xmacro4urdf import xmacro4urdf_main
  File "/home/luke/.local/lib/python3.6/site-packages/xmacro/xmacro4urdf.py", line 5, in <module>
    from ament_index_python.packages import get_package_share_directory
ModuleNotFoundError: No module named 'ament_index_python'

The issue appears to be with xmacro4urdf, which was added in the new version. I installed the old version (v1.1.2) and I had no issues. I am a ROS user but only with Python2, I suspect this may be the cause of the issue.

Thanks for creating such a great tool! I am fine with the old version now but I wanted to let you know about this issue.

@gezp
Copy link
Owner

gezp commented Jan 18, 2022

Thank you for the feedback, this is a BUG. ament_index_python is a ROS2 package which is used by xmacro4urdf, and i'm a ROS2 user so that i didn't find this issue, i will fix this issue as soon as possible.

@gezp gezp added the bug Something isn't working label Jan 18, 2022
@gezp
Copy link
Owner

gezp commented Jan 18, 2022

I have fixed this issue, you can try the latest version v1.2.1.

@lukebeddow
Copy link
Author

Thank you! No issues with the new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants