Page 1 of 1

Module not found while compiling a fresh install

Posted: Wed Jul 12, 2023 5:38 pm
by julienD
Hello,

I'm giving a try with esp-adf.
As I was not able to compile an example, I decided, based on the compliance matrix with adf, to switch back to idf 4.4
in order to rely on releases and not on master branch.

I'm using vscode with W10.
I installed idf 4.4 and esp-idf tools with the esp-idf setup feature.

When I compile a basic project, I get "moduleNotFoundError : no module named "kconfiglib"
I went in my idf python dir and run "python -m pip install kconfiglib".
Installation is ok.
Then I compile again. It goes one step further and I get "moduleNotFoundError : no module named "future"
I went in my idf python dir and run "python -m pip install future".

This installation failed with this errror : "ModuleNotFoundError: No module named '_socket'" I tried the same trick
but this time "_socket" I'm unable to install : "ERROR: Invalid requirement: '_socket'"

What should I do? Maybe I had to provide minimum or maximum version to "pip install" but I don't have this information.

Thanks
Julien

Re: Module not found while compiling a fresh install

Posted: Wed Jul 12, 2023 8:07 pm
by MicroController
Try building from the IDF command line, i.e. open a command line (e.g. run cmd.exe), on the command line run <your IDF folder>\idf_cmd_init.bat, and then, inside your project directory, run idf.py build. Does the build succeed this way?

To build from inside VS Code install the ESP-IDF extension and set it up to use your IDF installation.