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

ImportError: dynamic module does not define init function (init_tf2) #17

Open
Yukuncn opened this issue Dec 20, 2022 · 1 comment
Open

Comments

@Yukuncn
Copy link

Yukuncn commented Dec 20, 2022

When I run robot_controller.py in docker ,I got this error
Traceback (most recent call last):
File "/root/catkin_ws/src/monocular_person_following/scripts/robot_controller.py", line 2, in
import tf
File "/opt/ros/noetic/lib/python3/dist-packages/tf/init.py", line 30, in
from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
File "/opt/ros/noetic/lib/python3/dist-packages/tf2_ros/init.py", line 38, in
from tf2_py import *
File "/opt/ros/noetic/lib/python3/dist-packages/tf2_py/init.py", line 38, in
from ._tf2 import *
ImportError: dynamic module does not define init function (init_tf2)
could you help me to solve it?Thank you very much!

@jambalaya666
Copy link

Have you solved it? How did you solve it? I also encountered the following error:
Traceback (most recent call last):
File '/home/zjt/catkin_ws_mpf/src/monlingual_person_following/scripts/visualization.py', line 6, in
importtf
File "/opt/ros/melodic/lib/python2.7/dist-packages/tf/init.py", line 30, in
from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
File "/home/zjt/catkin_ws_mpf/devel/lib/python2.7/dist-packages/tf2_ros/init.py", line 34 in
execute(__fh.read())
File "", line 38, in
File "/home/zjt/catkin_ws_mpf/devel/lib/python2.7/dist-packages/tf2_py/init.py", line 34 in
execute(__fh.read())
File "", line 38, in
ImportError: dynamic module does not define module exported function (PyInit__tf2)

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

No branches or pull requests

2 participants