No such file or directory

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
PM-TPI
Posts: 37
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 !!!

Post Reply