ESP32-S3 tensorflow-micropython flashing #16893
Unanswered
avadhana25
asked this question in
ESP32
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Port, board and/or hardware
esp32s3
MicroPython version
Micropython v1.20 , ESP32-S3-WROOM-1
Reproduction
Forked a branch of a branch of https://github.com/mocleiri/tensorflow-micropython-examples, https://github.com/TheImagineThat/tensorflow-micropython-examples. His most recent workflow on the build_esp32s3.yml worked 5 months ago but does not anymore.
Expected behaviour
I expected the artifact to be created for myself in my branch just as it did for his branch. The new error that occurs is that the build cannot install wheel during the esp-idf set up process. I believe this is because the micropython/tools/ci.sh script utilizes esp-idf v4.4, which I have observed conisistently has this issue.
Observed behaviour
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [319 lines of output]
Compiling src/gevent/resolver/cares.pyx because it changed.
[1/1] Cythonizing src/gevent/resolver/cares.pyx
performance hint: src/gevent/libev/corecext.pyx:1291:5: Exception check on '_syserr_cb' will always require the GIL to be acquired.
Possible solutions:
1. Declare '_syserr_cb' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
2. Use an 'int' return type on '_syserr_cb' to allow an error code to be returned.
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
warning: src/gevent/libev/corecext.pyx:1288:0: Global name __SYSERR_CALLBACK matched from within class scope in contradiction to to Python 'class private name' rules. This may change in a future release.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Creating a new Python environment in /home/runner/.espressif/python_env/idf4.4_py3.12_env
Installing virtualenv
Traceback (most recent call last):
File "/home/runner/work/tensorflow-micropython-examples/tensorflow-micropython-examples/esp-idf/tools/idf_tools.py", line 1828, in
Installing Python packages from /home/runner/work/tensorflow-micropython-examples/tensorflow-micropython-examples/esp-idf/requirements.txt
main(sys.argv[1:])
File "/home/runner/work/tensorflow-micropython-examples/tensorflow-micropython-examples/esp-idf/tools/idf_tools.py", line 1824, in main
action_func(args)
File "/home/runner/work/tensorflow-micropython-examples/tensorflow-micropython-examples/esp-idf/tools/idf_tools.py", line 1545, in action_install_python_env
subprocess.check_call(run_args, stdout=sys.stdout, stderr=sys.stderr, env=env_copy)
File "/usr/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/runner/.espressif/python_env/idf4.4_py3.12_env/bin/python', '-m', 'pip', 'install', '--no-warn-script-location', '-r', '/home/runner/work/tensorflow-micropython-examples/tensorflow-micropython-examples/esp-idf/requirements.txt', '--extra-index-url', 'https://dl.espressif.com/pypi']' returned non-zero exit status 1.
Additional Information
I'm trying to find/build a firmware for my ESP32-S3-WROOM-1 with PSRAM,BLE,and TensorFlow Lite capabilities. I am using micropython, but having struggles trying to run a tensorflow model on my board. If anyone else has done this before and has any tips I would greatly appreciate it!
Code of Conduct
Yes, I agree
Beta Was this translation helpful? Give feedback.
All reactions