Buongiorno a tutti,
di recente mi è arrivata una scheda ESP32 con un telecamera montata.
Caricando i programmi di esempio ho notato che i messaggi di errore si riferivano al fatto che il bootloader esptool non è in grado di leggere la dimensione della ROM della scheda.
Spulciando su internet ho scoperto che è necessario installare python (consigliano la versione 3.4) e attraverso i comandi "pip" installare l'esptool.
Tentanto di installare l'esptool (con il comando pip install esptool) riporto questo messaggio di errore:
C:\Users\ottov>pip install esptool
Defaulting to user installation because normal site-packages is not writeable
Collecting esptool
Using cached esptool-4.7.0.tar.gz (285 kB)
Preparing metadata (setup.py) ... done
Collecting bitstring>=3.1.6 (from esptool)
Using cached bitstring-4.2.3-py3-none-any.whl.metadata (5.0 kB)
Collecting cryptography>=2.1.4 (from esptool)
Using cached cryptography-43.0.0.tar.gz (686 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [75 lines of output]
Collecting maturin<2,>=1
Using cached maturin-1.7.0.tar.gz (188 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting cffi>=1.12
Using cached cffi-1.16.0.tar.gz (512 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
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
[44 lines of output]
Traceback (most recent call last):
File "C:\Users\ottov\.local\lib\python3.11-mingw_x86_64_ucrt\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Users\ottov\.local\lib\python3.11-mingw_x86_64_ucrt\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ottov\.local\lib\python3.11-mingw_x86_64_ucrt\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\build_meta.py", line 327, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\build_meta.py", line 297, in _get_build_requires
self.run_setup()
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\build_meta.py", line 313, in run_setup
exec(code, locals())
File "<string>", line 126, in <module>
File "<string>", line 105, in uses_msvc
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\_distutils\command\config.py", line 218, in try_compile
self._check_compiler()
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\_distutils\command\config.py", line 96, in _check_compiler
self.compiler = new_compiler(
^^^^^^^^^^^^^
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\_distutils\ccompiler.py", line 1178, in new_compiler
return klass(None, dry_run, force)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\_distutils\cygwinccompiler.py", line 273, in __init__
if is_cygwincc(self.cc):
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ottov\AppData\Local\Temp\pip-build-env-r9awbntx\overlay\lib\python3.11\site-packages\setuptools\_distutils\cygwinccompiler.py", line 347, in is_cygwincc
out_string = check_output(shlex.split(cc) + ['-dumpmachine'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Inkscape\lib\python3.11\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Inkscape\lib\python3.11\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Inkscape\lib\python3.11\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Inkscape\lib\python3.11\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Impossibile trovare il file specificato
[end of output]
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.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies 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.`
E' da giorni che sto cercando di risolvere ma non so dove parare.
Sarei grato se qualcuno che conosce bene python ed esp32 riuscisse a darmi una mano
![]()