当前位置:   article > 正文

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

raise attributeerror("module {!r} has no attribute " attributeerror: module
$ cd carla-ros-bridge
$ colcon build 
$ source install/setup.bash
$ ros2 launch carla_ros_bridge carla_ros_bridge_with_example_ego_vehicle.launch.py
  • 1
  • 2
  • 3
  • 4

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)


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/225010
推荐阅读
相关标签
  

闽ICP备14008679号