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)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值