我按照晕哥的 https://whycan.cn/t_1098.html 这个帖子
板子是 LyraT 乐鑫官方ESP32开发板,
make monitor 出现这个错误,
串口设备权限没有问题.
cityf@ubuntu:/opt/esp-adf/examples/get-started/play_mp3$ sudo chmod 777 /dev/ttyUSB0
cityf@ubuntu:/opt/esp-adf/examples/get-started/play_mp3$ make monitor
WARNING: Toolchain version is not supported: 1.22.0-61-gab8375a
Expected to see version: 1.22.0-80-g6c4433a
Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk.
MONITOR
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 120, in _run_outer
self.run()
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 155, in run
c = self.console.getkey()
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 235, in getkey_patched
c = self.enc_stdin.read(1)
AttributeError: 'Console' object has no attribute 'enc_stdin'Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 120, in _run_outer
self.run()
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 193, in run
if not self.serial.is_open:
AttributeError: 'Serial' object has no attribute 'is_open'
最近编辑记录 cityf (2018-04-29 11:31:16)
离线
终于解决:
sudo pip install pyserial --upgrade
离线
贴图留念一下:
离线
$ make monitor
MONITOR
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 120, in _run_outer
self.run()
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 193, in run
if not self.serial.is_open:
AttributeError: 'Serial' object has no attribute 'is_open'Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 120, in _run_outer
self.run()
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 155, in run
c = self.console.getkey()
File "/opt/esp-adf/esp-idf/tools/idf_monitor.py", line 235, in getkey_patched
c = self.enc_stdin.read(1)
AttributeError: 'Console' object has no attribute 'enc_stdin'
顺着google进来的,感谢楼主, 感谢万能的论坛!
我来补充一下:
sudo apt-get install python-pip
sudo pip install pyserial --upgrade
两行搞定.
离线