wzpan / dingdang-robot

🤖 叮当是一款可以工作在 Raspberry Pi 上的中文语音对话机器人/智能音箱项目。
http://dingdang.hahack.com
Other
1.86k stars 535 forks source link

启动报错,找不到dingdang.log #132

Closed JasonIonke closed 6 years ago

JasonIonke commented 6 years ago

运行python dingdang.py显示如下,麻烦wzpan帮忙看下,谢谢!

/usr/local/lib/python2.7/dist-packages/requests/init.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.3.0) doesn't match a supported version! RequestsDependencyWarning)

***"

如需查看log,可以执行 tail -f 叮当所在目录/temp/dingdang.log

Traceback (most recent call last): File "dingdang.py", line 154, in level=logging.INFO) File "/usr/lib/python2.7/logging/init.py", line 1540, in basicConfig hdlr = FileHandler(filename, mode) File "/usr/lib/python2.7/logging/init.py", line 911, in init StreamHandler.init(self, self._open()) File "/usr/lib/python2.7/logging/init.py", line 936, in _open stream = open(self.baseFilename, self.mode) IOError: [Errno 2] No such file or directory: '/home/pi/Desktop/dingdang/temp/dingdang.log'

licshire commented 6 years ago

手动创建temp目录: 1、切换到pi用户 sudo su - pi 2、新建temp目录 mkdir -p /home/pi/Desktop/dingdang/temp/

JasonIonke commented 6 years ago

谢谢licshire! 问题解决了