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

Consider using Python 3 #154

Closed
wants to merge 3 commits into from
Closed

Consider using Python 3 #154

wants to merge 3 commits into from

Conversation

okalachev
Copy link
Member

@okalachev okalachev commented Aug 5, 2019

@okalachev
Copy link
Member Author

Traceback (most recent call last):
  File "./tests3.py", line 18, in <module>
    import tf2_ros
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_ros/__init__.py", line 38, in <module>
    from tf2_py import *
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_py/__init__.py", line 38, in <module>
    from ._tf2 import *
ImportError: dynamic module does not define module export function (PyInit__tf2)

@sfalexrog
Copy link
Member

@okalachev, you're seeing these errors because tf2_py was not built against Python 3. As it stands (if I understood ros-infrastructure/rep#149 correctly, even though it is a draft), you need to build all of your packages against Python 3 to have Python 3 support. Even then, you'd have to be at least on Melodic (and see #135 and our internal discussion on that).

We could (and should, really) build the required packages against Python 3 and package them in a separate repository. Whether we should create a public image with Python 3 and ROS Melodic is up for debate, though.

@sfalexrog sfalexrog mentioned this pull request Feb 14, 2020
6 tasks
@okalachev okalachev closed this May 6, 2020
@okalachev
Copy link
Member Author

#215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants