Page 1 of 1

[solved] build problem

Posted: Tue Sep 08, 2020 4:30 am
by park_lemon
Hi all,

I need help,

after build, i got this message:

12:25:25 **** Build of configuration Default for project HelloWorld ****
python C:/msys32/home/vinodh/esp/esp-idf/tools/windows/eclipse_make.py flash
Traceback (most recent call last):
File "C:/msys32/home/vinodh/esp/esp-idf/tools/windows/eclipse_make.py", line 43, in <module>
main()
File "C:/msys32/home/vinodh/esp/esp-idf/tools/windows/eclipse_make.py", line 34, in main
print("Running make in '%s'" % check_path(os.getcwd()))
File "C:/msys32/home/vinodh/esp/esp-idf/tools/windows/eclipse_make.py", line 28, in check_path
winpath = winpath.replace("\\", "/") # make consistent with forward-slashes used elsewhere
TypeError: a bytes-like object is required, not 'str'
"python C:/msys32/home/vinodh/esp/esp-idf/tools/windows/eclipse_make.py flash" terminated with exit code 1. Build might be incomplete.

12:25:26 Build Finished. 0 errors, 0 warnings. (took 576ms)

what doest it meant, i susseccful build or not?

Re: build problem

Posted: Tue Sep 08, 2020 9:09 am
by ESP_Roland
Hi park_lemon,

your build has probably been completed successfully but flashing has failed because of a Python compatibility issue.

Could you please try to modify line no. 23 of tools/windows/eclipse_make.py by changing

Code: Select all

winpath = subprocess.check_output(["cygpath", "-w", path]).strip()
to

Code: Select all

winpath = subprocess.check_output(["cygpath", "-w", path]).decode().strip()
i.e. adding ".decode()". Please let me know if this helps or not.

Re: build problem

Posted: Wed Sep 09, 2020 9:19 am
by park_lemon
Hi,

Thank you very much for your reply and help.
May god bless you.

your help really good...it helps me a lot.

For those who face same problems like me.

You may refer to these following link:
1. https://www.instructables.com/id/ESP32- ... lipse-IDE/
2. https://github.com/espressif/idf-eclips ... ingStarted

Just for sharing:
I takes almost 3 days just for installation and setting eclipse. Hope ESP32 can make their own IDE that are user friendly, easy to install, build, compile and debug. No need much setting. Make it simple for rapid development.

Re: build problem

Posted: Wed Sep 09, 2020 10:56 am
by ESP_Roland
Thank you park_lemon for your feedback. I will include the fix in the following releases.

We are sorry that the setup of Eclipse took you so long. If you think that some parts of the description was misleading or incomplete then please consider raising an issue about it at https://github.com/espressif/idf-eclipse-plugin/issues so we could improve it.

Re: build problem

Posted: Thu Sep 10, 2020 7:43 am
by ESP_Roland
For future reference, commit 3c7954ea497649a4cd6520842151deb632bc4723 will fix this issue and will available in the master branch on Github with the next update. The fix will be backported to release branches.