Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

ImportError: dynamic module does not define module export function (PyInit__tf2) #82

Open
theplaystar opened this issue Jan 18, 2018 · 3 comments

Comments

@theplaystar
Copy link

Hello,
I'm trying to launch hover_vicon.launch in a laptop with ubuntu 16.04 and an error occurs.
It could be launched in a raspberry Pi3 with Ubuntu Mate.
I'd like to know what could be the problem and how can I fix it.
I'm a beginner in ros.
Thanks.

@whoenig
Copy link
Owner

whoenig commented Jan 18, 2018

What is the full error you are getting?

@theplaystar
Copy link
Author

theplaystar commented Jan 19, 2018

Here is the error message

Traceback (most recent call last):
File "/home/splinter/catkin_ws/src/crazyflie_ros/crazyflie_demo/scripts/publish_pose.py", line 4, in
import tf
File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf/init.py", line 28, in
from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_ros/init.py", line 38, in
from tf2_py import *
File "/opt/ros/kinetic/lib/python2.7/dist-packages/tf2_py/init.py", line 38, in
from ._tf2 import *
ImportError: dynamic module does not define module export function (PyInit__tf2)
[crazyflie/crazyflie_add-3] process has finished cleanly
log file: /home/splinter/.ros/log/372e02ba-fcf2-11e7-93db-3ca9f4038250/crazyflie-crazyflie_add-3*.log
[crazyflie/pose-7] process has died [pid 3286, exit code 1, cmd /home/splinter/catkin_ws/src/crazyflie_ros/crazyflie_demo/scripts/publish_pose.py __name:=pose __log:=/home/splinter/.ros/log/372e02ba-fcf2-11e7-93db-3ca9f4038250/crazyflie-pose-7.log].
log file: /home/splinter/.ros/log/372e02ba-fcf2-11e7-93db-3ca9f4038250/crazyflie-pose-7*.log

@whoenig
Copy link
Owner

whoenig commented Jan 19, 2018

This sounds like a generic ROS problem. Perhaps you somehow switched the default python interpreter to be python3 rather than python2 (check using python --version). ROS Kinetic requires python2 (see e.g., ros/geometry2#259).

jpreiss pushed a commit to jpreiss/crazyflie_ros that referenced this issue Jun 23, 2021
Add warning about running ubuntu in WSL. Related to issue whoenig#69
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants