carla-ros-bridge ERRO:raise AttributeError(“module {!r} has no attribute “ [bridge-1] AttributeError

$ cd carla-ros-bridge
$ colcon build 
$ source install/setup.bash
$ ros2 launch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch.py

raise AttributeError("module {!r} has no attribute "
[bridge-1] AttributeError: module ‘numpy’ has no attribute ‘bool’

$ python3
>>> import numpy
>>> print(numpy.__version__)
#1.24.1
$ pip3 uninstall numpy

*******
Found existing installation: numpy 1.24.1
Uninstalling numpy-1.24.1:
  Would remove:
    /home/s/.local/bin/f2py
    /home/s/.local/bin/f2py3
    /home/s/.local/bin/f2py3.8
    /home/s/.local/lib/python3.8/site-packages/numpy-1.24.1.dist-info/*
    /home/s/.local/lib/python3.8/site-packages/numpy.libs/libgfortran-040039e1.so.5.0.0
    /home/s/.local/lib/python3.8/site-packages/numpy.libs/libopenblas64_p-r0-15028c96.3.21.so
    /home/s/.local/lib/python3.8/site-packages/numpy.libs/libquadmath-96973f99.so.0.0.0
    /home/s/.local/lib/python3.8/site-packages/numpy/*
Proceed (Y/n)? y
  Successfully uninstalled numpy-1.24.1
*********
$ python3
>>> import numpy
>>> print(numpy.bool)
<class 'bool'>
>>> print(numpy.__version__)
1.17.4
>>> pip3 install numpy
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.17.4)


猜你喜欢

转载自blog.csdn.net/weixin_44119391/article/details/128619983