Page 1 of 1

python 3.8 build error

Posted: Sun Nov 24, 2019 7:07 am
by pacoandres
Hello.

I'm using the idf on an arch linux computer, and I've installed the python 3.8 update yesterday.

Now the idf can't build projects, it throws an error where generating esp32.project.ld.
The error is:

Code: Select all

error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
make[2]: *** [esp-idf/esp32/CMakeFiles/__ldgen_output_esp32.project.ld.dir/build.make:140: esp-idf/esp32/ld/esp32.project.ld] Error 127
make[1]: *** [CMakeFiles/Makefile2:1997: esp-idf/esp32/CMakeFiles/__ldgen_output_esp32.project.ld.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
make failed with exit code 2
Does anyone have the same error?
Does anyone know how to solve it?

My IDF version is v4.1-dev-281-g96b96ae24-dirty

Thanks

Re: python 3.8 build error

Posted: Mon Nov 25, 2019 8:01 am
by pacoandres
I've solved it with the following steps:
  1. Execute the install.sh script in esp home directory
  2. Delete (or rename) the old python env directory
  3. fullclean the project and rebuild it