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

crazyflie-interfaces build issue and Empy 4.0.0 incompatible #553

Open
knmcguire opened this issue Aug 9, 2024 · 4 comments
Open

crazyflie-interfaces build issue and Empy 4.0.0 incompatible #553

knmcguire opened this issue Aug 9, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@knmcguire
Copy link
Collaborator

knmcguire commented Aug 9, 2024

I've just did a fresh install of crazyswarm2 on my 24.04 so I'll make an issue of those that are still current.

When installing, usually empy needs to be installed as well with pip3 install empy lark catkin-pkg which is currently missing from our documentation. This is necessary for building the crazyflie_interfaces (rosidl).

However, there is currently an incompatibility with Empy 4.0.0 which causes these two errors:

...
    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/resource/__init__.py", line 51, in evaluate_template
      em.BUFFERED_OPT: True,
      ^^^^^^^^^^^^^^^

  AttributeError: module 'em' has no attribute 'BUFFERED_OPT'

...

    File "/opt/ros/jazzy/lib/python3.12/site-packages/rosidl_adapter/resource/__init__.py", line 69, in evaluate_template
      _interpreter.shutdown()
      ^^^^^^^^^^^^^^^^^^^^^

  AttributeError: 'NoneType' object has no attribute 'shutdown'

solution

This is due to this error: ros2/rosidl#779

Downgrade empy to:

pip3 install empy==3.3.4
@knmcguire knmcguire added the bug Something isn't working label Aug 9, 2024
@knmcguire knmcguire changed the title Empy 4.0.0 incompatible crazyflie-interfaces build issue and Empy 4.0.0 incompatible Aug 9, 2024
@suojinhui
Copy link

But I am using python 3.12, which is not compatible with empy==3.3.4

@knmcguire
Copy link
Collaborator Author

knmcguire commented Nov 18, 2024

aii... that's not awesome. And unfortunately no bug fix in sight at the original issue at rosidl.

But what do you mean with incompatible? I could install this pip package for 3.12. What kind of error messages are you getting?

@suojinhui
Copy link

I found that I made a mistake in the conda environment and the local environment. You are right. I have installed a lower version of empy and solved the problem.

@knmcguire
Copy link
Collaborator Author

Ah good to know! We should try it for different versions of python anyway in the CI but it's always good to double check.

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