ROS Group 产品服务
Product Service 开源代码库
Github 官网
Official website 技术交流
Technological exchanges 激光雷达
LIDAR ROS教程
ROS Tourials 深度学习
Deep Learning 机器视觉
Computer Vision
AttributeError: 'module' object has no attribute 'packages'
-
回复: 在小强中使用语音识别和语音合成您好,运行roslaunch asr_xunfei.launch 出现这个错误该如何解决,感谢您
File “/home/zhk2/catkin_ws/src/xiaoqiang_tts/src/xiaoqiang_asr_node.py”, line 30, in
from engines.baidu_tts import BaiduTTS as bd_client
File “/home/zhk2/catkin_ws/src/xiaoqiang_tts/src/engines/baidu_tts.py”, line 29, in
from aip import AipSpeech
File “/usr/local/lib/python2.7/dist-packages/aip/init.py”, line 6, in
from .ocr import AipOcr
File “/usr/local/lib/python2.7/dist-packages/aip/ocr.py”, line 12, in
from .base import AipBase
File “/usr/local/lib/python2.7/dist-packages/aip/base.py”, line 14, in
requests.packages.urllib3.disable_warnings()
AttributeError: ‘module’ object has no attribute ‘packages’
[xiaoqiang_asr-2] process has died [pid 6074, exit code 1, cmd /home/zhk2/catkin_ws/src/xiaoqiang_tts/src/xiaoqiang_asr_node.py ~audio:=/audio/audio ~text:=/xiaoqiang_tts/text ~audio_status:=/xiaoqiang_audio/audio_status __name:=xiaoqiang_asr __log:=/home/zhk2/.ros/log/dc555cb2-79dc-11e9-a2e6-f4ec3802170a/xiaoqiang_asr-2.log].
log file: /home/zhk2/.ros/log/dc555cb2-79dc-11e9-a2e6-f4ec3802170a/xiaoqiang_asr-2*.log -
@zhk15951 在 AttributeError: 'module' object has no attribute 'packages' 中说:
requests.packages.urllib3.disable_warnings()
你的requests库好像有问题,试试更新requests库