ImportError: dynamic module does not define module export function (PyInit__tf2)
When I tried to do tutorial of tf, I got an error as follw. And same error is occurred when I tried to do the tutorial of tf2.
How can I fix the problem? Thanks
Traceback (most recent call last):
File "/home/bjh/catkin_ws/src/learning_tf2/nodes/static_turtle_tf2_broadcaster.py", line 8, in <module>
import tf
File "/home/bjh/catkin_ws/devel/lib/python2.7/dist-packages/tf/__init__.py", line 35, in <module>
exec(__fh.read())
File "<string>", line 30, in <module>
File "/home/bjh/catkin_ws/devel/lib/python2.7/dist-packages/tf2_ros/__init__.py", line 35, in <module>
exec(__fh.read())
File "<string>", line 38, in <module>
File "/home/bjh/catkin_ws/devel/lib/python2.7/dist-packages/tf2_py/__init__.py", line 35, in <module>
exec(__fh.read())
File "<string>", line 38, in <module>
ImportError: dynamic module does not define module export function (PyInit__tf2)