-
Notifications
You must be signed in to change notification settings - Fork 39
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
File "/opt/ros/humble/local/lib/python3.10/dist-packages/rosidl_adapter/resource/__init__.py", line 48, in evaluate_template _interpreter = em.Interpreter( AttributeError: module 'em' has no attribute 'Interpreter' #181
Comments
Yeah, this is an annoying one... it works if you first activate the venv and THEN do The convenience script attempts to do this in being able to call Let me better document that in the local setup... |
Actually, I'm now noticing that is not enough. It has to do specifically with the Can you try installing |
No, got the same behavior. Pip installed EmPy==3.3.4. But the behavior is the same |
I see... let's try something else. Could you:
Let me know... |
Sorry I am running out of time. But this did not work:
|
Why do you need this venv? It makes it all a bit complicated to handle. ;) |
Yeah, I was running out of time myself. Will revisit this a bit later and make those scripts a little friendlier... but I think I understand the issue. Sadly, it being first a standalone package and secondly a ROS wrapper creates these sorts of problems. |
venvs are not needed, but they provide isolation. And in Ubuntu 24.04 you can't install directly into system Python, so we all have to move towards virtual envs or similar. |
for python packages, yes. But they really don't play nicely with ros |
They indeed do not... There is a related issue here to try address it by separating packages out. The idea would be to add pyrobosim to rosdep and have the ROS wrapper package simply depend on it as a binary install. Would be nice to do, but I definitely will need help to figure that out. |
@ct2034 I just took a more thorough pass at this problem and improved the setup scripts in #183 I agree with you that the "right" thing for a ROS package is to make this work without virtual environments, but this is going to a big sweeping change that I am not able to do in the short term... nor do I want to necessarily make the ROS experience the primary goal of this package. |
When following the setup instructions, https://pyrobosim.readthedocs.io/en/latest/setup.html and first setup the venv, then run
colcon build
I end up with this error:console output
I was able to get around this by first building the workspace without venv. Recurrent build are okay with the venv.
Tested under humble / python 3.10
The text was updated successfully, but these errors were encountered: