您尚未登录。

楼主 #1 2018-04-29 10:59:23

cityf
会员
注册时间: 2017-11-03
已发帖子: 195
积分: 195

LyraT ESP32开发板, make monitor出现错误应该如何解决?

我按照晕哥的 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'

QQ20180429113028.png

最近编辑记录 cityf (2018-04-29 11:31:16)

离线

楼主 #2 2018-04-29 11:25:44

cityf
会员
注册时间: 2017-11-03
已发帖子: 195
积分: 195

Re: LyraT ESP32开发板, make monitor出现错误应该如何解决?

终于解决:

sudo pip install pyserial --upgrade

离线

楼主 #3 2018-04-29 11:28:42

cityf
会员
注册时间: 2017-11-03
已发帖子: 195
积分: 195

Re: LyraT ESP32开发板, make monitor出现错误应该如何解决?

贴图留念一下:

QQ20180429112800.png

离线

#4 2018-06-16 22:52:42

超级萌新
会员
注册时间: 2018-05-04
已发帖子: 408
积分: 407

Re: LyraT ESP32开发板, make monitor出现错误应该如何解决?

$ 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

两行搞定.

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn