furushchev / respeaker_ros

A ROS Package for Respeaker Mic Array
Apache License 2.0
71 stars 60 forks source link

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

Open Gaurav37 opened 2 years ago

Gaurav37 commented 2 years ago

When I launch respeaker.launch, it gives me error:

NODES / respeaker_node (respeaker_ros/respeaker_node.py) speech_to_text (respeaker_ros/speech_to_text.py) static_transformer (tf/static_transform_publisher)

ROS_MASTER_URI=http://localhost:11311

process[respeaker_node-1]: started with pid [68053] process[static_transformer-2]: started with pid [68054] process[speech_to_text-3]: started with pid [68055] Traceback (most recent call last): File "/home/gaurav/catkin_ws2/src/respeaker_ros/scripts/respeaker_node.py", line 12, in import tf.transformations as T 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) [respeaker_node-1] process has died [pid 68053, exit code 1, cmd /home/gaurav/catkin_ws2/devel/lib/respeaker_ros/respeaker_node.py name:=respeaker_node log:=/home/gaurav/.ros/log/a317667e-c4b7-11ec-bb11-8df75aa53f77/respeaker_node-1.log]. log file: /home/gaurav/.ros/log/a317667e-c4b7-11ec-bb11-8df75aa53f77/respeaker_node-1*.log Traceback (most recent call last): File "/home/gaurav/catkin_ws2/src/respeaker_ros/scripts/speech_to_text.py", line 5, in import actionlib File "/opt/ros/noetic/lib/python3/dist-packages/actionlib/init.py", line 28, in from actionlib.action_client import * File "/opt/ros/noetic/lib/python3/dist-packages/actionlib/action_client.py", line 56, in import rospy File "/opt/ros/noetic/lib/python3/dist-packages/rospy/init__.py", line 49, in from .client import spin, myargv, init_node, \ File "/opt/ros/noetic/lib/python3/dist-packages/rospy/client.py", line 60, in import rospy.impl.init File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/init.py", line 54, in from .tcpros import init_tcpros File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros.py", line 45, in import rospy.impl.tcpros_service File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_service.py", line 54, in from rospy.impl.tcpros_base import TCPROSTransport, TCPROSTransportProtocol, \ File "/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros_base.py", line 167 (eerrno, msg, *) = e.args ^ SyntaxError: invalid syntax [speech_to_text-3] process has died [pid 68055, exit code 1, cmd /home/gaurav/catkin_ws2/devel/lib/respeaker_ros/speech_to_text.py audio:=speech_audio name:=speech_to_text __log:=/home/gaurav/.ros/log/a317667e-c4b7-11ec-bb11-8df75aa53f77/speech_to_text-3.log]. log file: /home/gaurav/.ros/log/a317667e-c4b7-11ec-bb11-8df75aa53f77/speech_to_text-3*.log ^C[static_transformer-2] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done

JohannaPrinz commented 2 years ago

I have the exact same Problem/Error - what can I do to solve it? @furushchev