ros-drivers / nmea_navsat_driver

ROS package containing drivers for NMEA devices that can output satellite navigation data (e.g. GPS or GLONASS).
BSD 3-Clause "New" or "Revised" License
228 stars 270 forks source link

Problem with Numpy #182

Open Cavalletta98 opened 2 weeks ago

Cavalletta98 commented 2 weeks ago

Hi, i'm getting this error while launching the navsat driver: Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/home/administrator/ros2_ws/install/nmea_navsat_driver/lib/nmea_navsat_driver/nmea_topic_driver", line 33, in Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] sys.exit(load_entry_point('nmea-navsat-driver', 'console_scripts', 'nmea_topic_driver')()) Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/home/administrator/ros2_ws/install/nmea_navsat_driver/lib/nmea_navsat_driver/nmea_topic_driver", line 25, in importlib_load_entry_point Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] return next(matches).load() Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/usr/lib/python3.10/importlib/metadata/init.py", line 171, in load Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] module = import_module(match.group('module')) Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] return _bootstrap._gcd_import(name[level:], package, level) Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "", line 1050, in _gcd_import Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "", line 1027, in _find_and_load Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "", line 1006, in _find_and_load_unlocked Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "", line 688, in _load_unlocked Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "", line 883, in exec_module Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "", line 241, in _call_with_frames_removed Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/home/administrator/ros2_ws/build/nmea_navsat_driver/src/libnmea_navsat_driver/nodes/nmea_topic_driver.py", line 39, in Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] from libnmea_navsat_driver.driver import Ros2NMEADriver Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/home/administrator/ros2_ws/build/nmea_navsat_driver/src/libnmea_navsat_driver/driver.py", line 40, in Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] from tf_transformations import quaternion_from_euler Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/opt/ros/humble/lib/python3.10/site-packages/tf_transformations/init.py", line 46, in Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] import transforms3d Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/usr/lib/python3/dist-packages/transforms3d/init.py", line 10, in Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] from . import quaternions Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/usr/lib/python3/dist-packages/transforms3d/quaternions.py", line 26, in Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] _MAX_FLOAT = np.maximum_sctype(np.float) Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] File "/home/administrator/.local/lib/python3.10/site-packages/numpy/init.py", line 400, in getattr Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] raise AttributeError( Nov 04 13:57:57 cpr-j100-0538 bash[1444]: [nmea_topic_driver-17] AttributeError: np.maximum_sctype was removed in the NumPy 2.0 release. Use a specific dtype instead. You should avoid relying on any implicit mechanism and select the largest dtype of a kind explicitly in the code.

evenator commented 1 week ago

Can you provide the following info?

Cavalletta98 commented 1 week ago

Ubuntu 22.04 ROS Humble Source code

Cavalletta98 commented 4 days ago

i just update the transforms3d to the latest version and fix the problem. Previously i had the 0.3.1 version not compatible with Numpy 2.0