make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

liuq315
Posts: 2
Joined: Fri Jun 09, 2017 3:35 am

make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

Postby liuq315 » Fri Jun 09, 2017 3:44 am

i am a beginner for developing esp32 platform, when i proceed as list on https://esp-idf.readthedocs.io/en/lates ... -a-project ,

command make monitor does not work, give me a error "AttributeError: 'Serial' object has no attribute 'is_open'"

my environment:
ubuntu 14.04 LTS
pythone: 2.7.6

does anybody else get this error too, help me to fix it, thanks

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

Postby ESP_Angus » Fri Jun 09, 2017 7:49 am

Hi liuq,

Thanks for reporting this. Ubuntu 14.04 ships with pyserial 2.6, and it looks like idf_monitor uses some "new style" APIs that were only added after pyserial 3.0.

This is a bug and we'll fix it ASAP.

Angus

liuq315
Posts: 2
Joined: Fri Jun 09, 2017 3:35 am

Re: make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

Postby liuq315 » Fri Jun 09, 2017 9:03 am

:D great.

lmayamaya
Posts: 2
Joined: Fri Feb 02, 2018 8:05 pm

Re: make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

Postby lmayamaya » Fri Feb 02, 2018 8:10 pm

Was it possible to solve it?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

Postby ESP_Angus » Mon Feb 05, 2018 6:02 am

As Ubuntu 14.04 is End Of Life now, we decided to keep the newer API only in esp-idf.

EDIT: My mistake, 14.04 is not EOL until next year. So we will make the required change in ESP-IDF. Although please consider updating your installation to a newer Ubuntu.

If you have Ubuntu 14.04, you can make it work by running these three commands:

Code: Select all

sudo apt-get remove python-serial
sudo apt-get install python-pip
sudo pip install pyserial
(This removes Ubuntu's old copy of pyserial, and installs a version from the Python package manager 'pip'.)

lmayamaya
Posts: 2
Joined: Fri Feb 02, 2018 8:05 pm

Re: make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

Postby lmayamaya » Mon Feb 05, 2018 1:00 pm

Thanks Angus. What about serial trash like:
��n߂���b��b#����9O��Ă�#�n�l;|��
����H���� � � ���n߂���b��bc����9O��Ă�#�n�l{|��
� � ����� n���� ��� ��n߂���b��b#����9O��Ă�#�n�l;|��

When I do MAKE MONITOR it happends. I try to change the clock speed, but the problem continuos in every clock speed.

DO you have another solution for that problem.

Thanks

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: make monitor error "AttributeError: 'Serial' object has no attribute 'is_open'"

Postby ESP_Angus » Tue Feb 06, 2018 3:10 am

lmayamaya wrote:Thanks Angus. What about serial trash like:
��n߂���b��b#����9O��Ă�#�n�l;|��
����H���� � � ���n߂���b��bc����9O��Ă�#�n�l{|��
� � ����� n���� ��� ��n߂���b��b#����9O��Ă�#�n�l;|��

When I do MAKE MONITOR it happends. I try to change the clock speed, but the problem continuos in every clock speed.
If you have a 26MHz crystal, you will need to set this in menuconfig:
http://esp-idf.readthedocs.io/en/latest ... l-freq-sel

(The default is 40MHz and will result in a baud rate mismatch.)

Who is online

Users browsing this forum: Google Adsense [Bot] and 78 guests