Python UnicodeDecodeError using Eclipse plugin 2019-12-R

kyrpav
Posts: 37
Joined: Wed Jan 29, 2020 8:27 am

Python UnicodeDecodeError using Eclipse plugin 2019-12-R

Postby kyrpav » Mon Mar 02, 2020 1:06 am

After removing everything and onWin10 system

getting eclipse-2019-12-R,
downloading again the esp-idf tools setup,
installing idf with download v4.0 (first choice not the release/4.0 which is the third choice)
installing again idf plugin from latest
installing idf tools inside eclipse
and creatin program from examples blink

i get the next error of fail running confgen.py
Building in: D:\WorkSpaces\esp32Eclipse\blink\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\esp32\esp-idf\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIDF_TARGET=esp32 D:\WorkSpaces\esp32Eclipse\blink
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.24.0.windows.2")
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/esp32/tools/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/esp32/tools/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/esp32/tools/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/esp32/tools/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/esp32/tools/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
Python requirements from C:\esp32\esp-idf\requirements.txt are satisfied.
Traceback (most recent call last):
File "C:/esp32/esp-idf/tools/kconfig_new/confgen.py", line 571, in <module>
main()
File "C:/esp32/esp-idf/tools/kconfig_new/confgen.py", line 230, in main
config = kconfiglib.Kconfig(args.kconfig)
File "C:\esp32\esp-idf\tools\kconfig_new\kconfiglib.py", line 653, in __init__
self._parse_block(None, # end_token
File "C:\esp32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1632, in _parse_block
self._parse_block(_T_ENDMENU,
File "C:\esp32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1584, in _parse_block
prev_node = self._parse_block(None, # end_token
File "C:\esp32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1584, in _parse_block
prev_node = self._parse_block(None, # end_token
File "C:\esp32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1551, in _parse_block
while self._has_tokens or self._next_line():
File "C:\esp32\esp-idf\tools\kconfig_new\kconfiglib.py", line 1186, in _next_line
self._line = self._file.readline()
File "C:\esp32\tools\.espressif\python_env\idf4.0_py3.8_env\lib\encodings\cp1253.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8c in position 3728: character maps to <undefined>
CMake Error at C:/esp32/esp-idf/tools/cmake/kconfig.cmake:208 (message):
Failed to run confgen.py
(python;C:/esp32/esp-idf/tools/kconfig_new/confgen.py;--kconfig;C:/esp32/esp-idf/Kconfig;--sdkconfig-rename;C:/esp32/esp-idf/sdkconfig.rename;--config;D:/WorkSpaces/esp32Eclipse/blink/sdkconfig;--defaults;D:/WorkSpaces/esp32Eclipse/blink/sdkconfig.defaults;--env-file;D:/WorkSpaces/esp32Eclipse/blink/build/config.env).
Error 1
Call Stack (most recent call first):
C:/esp32/esp-idf/tools/cmake/build.cmake:441 (__kconfig_generate_config)
C:/esp32/esp-idf/tools/cmake/project.cmake:337 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "D:/WorkSpaces/esp32Eclipse/blink/build/CMakeFiles/CMakeOutput.log".
cmake --build . -- -v
ninja: error: loading 'build.ninja': The system cannot find the file specified.


Build complete (0 errors, 0 warnings): D:\WorkSpaces\esp32Eclipse\blink\build

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Espressif IDF Eclipse Plugins problems with Eclipse 2019-12 R

Postby ESP_kondalkolipaka » Mon Mar 02, 2020 6:52 am

Could you post the IDF Tools install console output? Would like to check what is the python version which is installed

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

Re: Espressif IDF Eclipse Plugins problems with Eclipse 2019-12 R

Postby ESP_Angus » Mon Mar 02, 2020 6:54 am

Hi Kyrpav,

It seems like a conflict between your system's native encoding and UTF-8.

In your project's Environment Variable settings, could try adding name "PYTHONIOENCODING" value "utf-8" and re-run? This will confirm if the problem is due to encoding mismatch.

Moderator's note: split to a new topic, as different error to previous discussion.

kyrpav
Posts: 37
Joined: Wed Jan 29, 2020 8:27 am

Re: Python UnicodeDecodeError using Eclipse plugin 2019-12-R

Postby kyrpav » Mon Mar 02, 2020 11:59 am

I have reinstalled esp tools using the release/4.0 which was the third selection and python 3.8-32 instead of v4. 0(release) which was the first selection and python. 8-64bit and it worked properly

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

Re: Python UnicodeDecodeError using Eclipse plugin 2019-12-R

Postby ESP_Angus » Tue Mar 03, 2020 2:17 am

Hi kyrpav,

Glad to hear it's working now. Please let us know if you run into the problem again.

Angus

Who is online

Users browsing this forum: Baidu [Spider] and 73 guests