espressif / esptool

Espressif SoC serial bootloader utility
https://docs.espressif.com/projects/esptool
GNU General Public License v2.0
5.6k stars 1.39k forks source link

Error "failed to create process." when trying to start esptool.py (ESPTOOL-773) #935

Closed ndinev closed 11 months ago

ndinev commented 12 months ago

Operating System

Windows 10

Esptool Version

4.6.2

Python Version

3.10.10

Full Esptool Command Line that Was Run

esptool.py

Esptool Output

failed to create process.

What is the Expected Behaviour?

I expect tool to start(maybe print help)

More Information

No response

Other Steps to Reproduce

steps to reproduce: pip uninstall esptool # make sure no esptool is installed pip install esptool # install latest -> no errors esptool.py # run the tool - Error

dobairoland commented 12 months ago

Hi @ndinev.

We need more information to help you. For example, the output of pip install, where pip, where esptool.py, echo %PATH%.

It is possible that some directory in your PATH is pointing to a location where an old esptool.py is located (e.g. ESP-IDF's components/esptool_py or other framework's directory).

By the way, this should be a bulletproof way to invoke the right esptool version:

python -m pip install esptool
python -m esptool  # followed by the usual esptool arguments
dobairoland commented 11 months ago

I'm closing this for inactivity.