No such file or directory

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
PM-TPI
Posts: 75
Joined: Fri Jun 28, 2019 3:09 pm

No such file or directory

Post by PM-TPI » Tue May 18, 2021 2:22 pm

Using esp-idf v4.1 lv_micropython dev with micropython v1.14

if I...
#include "esp_wpa2.h" into esp32/modnetwork.c
I get build error... No such file or directory

remove... no build issue

Need this file for enterprise network.

file is listed in....
build-GENERIC_SPIRAM/build.ninja:build lv_espidf.c.pp:
/home/rich/2021-Frimware/esp-idf/components/wpa_supplicant/include/esp_supplicant/esp_wpa2.h
and file is at that location.

MORE INFO....

Code: Select all

/home/rich/2021-Frimware/micropython/ports/esp32/machine_hw_spi.c 
/home/rich/2021-Frimware/micropython/ports/esp32/machine_wdt.c 
/home/rich/2021-Frimware/micropython/ports/esp32/mpthreadport.c 
/home/rich/2021-Frimware/micropython/ports/esp32/machine_rtc.c 
/home/rich/2021-Frimware/micropython/ports/esp32/machine_sdcard.c
/home/rich/2021-Frimware/micropython/ports/esp32/modnetwork.c:44:10: fatal error: esp_wpa2.h: No such file or directory
 #include "esp_wpa2.h"
          ^~~~~~~~~~~~
compilation terminated.
Traceback (most recent call last):
  File "/home/rich/2021-Frimware/micropython/py/makeqstrdefs.py", line 188, in <module>
    preprocess()
  File "/home/rich/2021-Frimware/micropython/py/makeqstrdefs.py", line 62, in preprocess
    for output in p.imap(pp(flags), chunks):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 868, in next
    raise value
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/rich/2021-Frimware/micropython/py/makeqstrdefs.py", line 46, in run
    return subprocess.check_output(args.pp + flags + files)
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: 
Command '['/home/rich/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc', '-E',
 '-I/home/rich/2021-Frimware/micropython/ports/esp32/build-GENERIC_SPIRAM/config',
 '-I/home/rich/2021-Frimware/micropython',
 '-I/home/rich/2021-Frimware/micropython/ports/esp32',
 '-I/home/rich/2021-Frimware/micropython/ports/esp32/boards/GENERIC_SPIRAM',
help please hints or anything !!!

MATTYGILO
Posts: 12
Joined: Tue Apr 05, 2022 3:03 pm

Re: No such file or directory

Post by MATTYGILO » Sat Jun 25, 2022 4:30 pm

Did you get a solution to this?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: No such file or directory

Post by jimmo » Mon Jun 27, 2022 2:33 am

MATTYGILO wrote:
Sat Jun 25, 2022 4:30 pm
Did you get a solution to this?
My guess would be that the wrong IDF version has been checked out. See the instructions at https://github.com/micropython/micropyt ... nvironment

MATTYGILO
Posts: 12
Joined: Tue Apr 05, 2022 3:03 pm

Re: No such file or directory

Post by MATTYGILO » Mon Aug 01, 2022 4:00 pm

I use v4.4 but why won't that work?

Post Reply