/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)
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'
运行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'