atomic14 / platformio-tensorflow-lite

Easily extract the tfmicro framework for use in platform.io
Creative Commons Zero v1.0 Universal
32 stars 4 forks source link

Error on build #6

Open expeon07 opened 2 years ago

expeon07 commented 2 years ago

Hi, I've been trying to use this to extract the TFLite Micro as a library for my PlatformIO. However I'm encountering an error with the esp-idf. Is there any prior preparation that needs to be done for this?

Below is the log of my build

[+] Building 299.5s (15/15) FINISHED                                                                                                                                     
 => [internal] load build definition from Dockerfile                                                                                                                0.1s
 => => transferring dockerfile: 120B                                                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                                   0.1s
 => => transferring context: 2B                                                                                                                                     0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                                                     1.9s
 => [ 1/12] FROM docker.io/library/ubuntu:20.04@sha256:bea6d19168bbfd6af8d77c2cc3c572114eb5d113e6f422573c93cb605a0e2ffb                                             0.0s
 => CACHED [ 2/12] RUN apt-get update -y                                                                                                                            0.0s
 => CACHED [ 3/12] RUN apt-get install -y bash git wget flex bison gperf    python-setuptools cmake ninja-build ccache    libffi-dev libssl-dev dfu-util curl unzi  0.0s
 => CACHED [ 4/12] RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10                                                                     0.0s
 => CACHED [ 5/12] RUN mkdir /src                                                                                                                                   0.0s
 => CACHED [ 6/12] WORKDIR /src                                                                                                                                     0.0s
 => CACHED [ 7/12] RUN mkdir esp && cd esp && git clone --recursive https://github.com/espressif/esp-idf.git                                                        0.0s
 => CACHED [ 8/12] RUN cd esp/esp-idf && git checkout release/v4.3                                                                                                  0.0s
 => CACHED [ 9/12] RUN cd esp/esp-idf && git submodule update --init --recursive                                                                                    0.0s
 => CACHED [10/12] RUN git clone --depth 1 https://github.com/tensorflow/tensorflow.git -b master                                                                   0.0s
 => [11/12] RUN cd esp/esp-idf && ./install.sh                                                                                                                    293.7s
 => ERROR [12/12] RUN IDF_PATH="/src/esp/esp-idf" . esp/esp-idf/export.sh &&     pip3 install six &&     cd tensorflow &&     IDF_PATH="/src/esp/esp-idf" make -f   3.6s 
------                                                                                                                                                                   
 > [12/12] RUN IDF_PATH="/src/esp/esp-idf" . esp/esp-idf/export.sh &&     pip3 install six &&     cd tensorflow &&     IDF_PATH="/src/esp/esp-idf" make -f tensorflow/lite/micro/tools/make/Makefile TARGET=esp generate_hello_world_esp_project:                                                                                                 
#15 0.701 Detecting the Python interpreter                                                                                                                               
#15 0.701 Checking "python" ...                                                                                                                                          
#15 0.736 Python 3.8.10                                                                                                                                                  
#15 0.758 "python" has been detected
#15 0.758 Adding ESP-IDF tools to PATH...
#15 1.332 Using Python interpreter in /root/.espressif/python_env/idf4.3_py3.8_env/bin/python
#15 1.332 Checking if Python packages are up to date...
#15 1.982 Python requirements from /src/esp/esp-idf/requirements.txt are satisfied.
#15 2.030 Updated PATH variable:
#15 2.030   /src/esp/esp-idf/components/esptool_py/esptool:/src/esp/esp-idf/components/espcoredump:/src/esp/esp-idf/components/partition_table:/src/esp/esp-idf/components/app_update:/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin:/root/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin:/root/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin:/root/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin:/root/.espressif/tools/esp32ulp-elf/2.28.51-esp-20191205/esp32ulp-elf-binutils/bin:/root/.espressif/tools/esp32s2ulp-elf/2.28.51-esp-20191205/esp32s2ulp-elf-binutils/bin:/root/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/bin:/root/.espressif/python_env/idf4.3_py3.8_env/bin:/src/esp/esp-idf/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#15 2.030 Done! You can now compile ESP-IDF projects.
#15 2.030 Go to the project directory and run:
#15 2.030 
#15 2.030   idf.py build
#15 2.030 
#15 2.128 /bin/sh: 145: esp/esp-idf/export.sh: [[: not found
#15 3.025 Requirement already satisfied: six in /root/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages (1.16.0)
#15 3.536 make: tensorflow/lite/micro/tools/make/Makefile: No such file or directory
#15 3.537 make: *** No rule to make target 'tensorflow/lite/micro/tools/make/Makefile'.  Stop.
------
executor failed running [/bin/sh -c IDF_PATH="/src/esp/esp-idf" . esp/esp-idf/export.sh &&     pip3 install six &&     cd tensorflow &&     IDF_PATH="/src/esp/esp-idf" make -f tensorflow/lite/micro/tools/make/Makefile TARGET=esp generate_hello_world_esp_project]: exit code: 2