Error while using espefuse.py

stefano664
Posts: 9
Joined: Tue Feb 02, 2021 8:06 am

Error while using espefuse.py

Postby stefano664 » Thu Oct 19, 2023 1:23 pm

Good morning,
I encountered an issue when I try to launch espefuse.py tool on my IDF 5.1.1 installation.

When I launch the tool (that is contained in C:\esp\esp5_1_1\.espressif\python_env\idf5.1_py3.11_env\Scripts folder) I get this error:

C:\esp\esp5_1_1\.espressif\python_env\idf5.1_py3.11_env\Scripts\espefuse.pyc
Traceback (most recent call last):
File "C:\esp\esp5_1_1\.espressif\python_env\idf5.1_py3.11_env\Scripts\espefuse.py", line 37, in <module>
espefuse._main()
AttributeError: 'module' object has no attribute '_main'


Someone has the same problem or can help me?

Best regards,
Stefano

User avatar
ESP_Roland
Posts: 257
Joined: Tue Oct 09, 2018 10:28 am

Re: Error while using espefuse.py

Postby ESP_Roland » Thu Oct 19, 2023 2:10 pm

How do you try to run it? Are you in an ESP-IDF terminal environment? What is the working directory and the full command you are running?

"espefuse.pyc" - The pyc part doesn't seem right.

stefano664
Posts: 9
Joined: Tue Feb 02, 2021 8:06 am

Re: Error while using espefuse.py

Postby stefano664 » Fri Oct 20, 2023 8:06 am

Hi,
I am running from the IDF command line (the cmd link created by the installer), I launch only espefuse.py without parameters (but with parameters is the same) and the working directory is the one where I have the esp project.

Thanks,
Stefano

User avatar
ESP_Roland
Posts: 257
Joined: Tue Oct 09, 2018 10:28 am

Re: Error while using espefuse.py

Postby ESP_Roland » Fri Oct 20, 2023 10:12 am

In ESP-IDF v5.1.1 "espefuse.py" is aliased to run

Code: Select all

python.exe "%IDF_PATH%\components\esptool_py\esptool\espefuse.py"
Are you able to run that instead?

Or the following?

Code: Select all

python -m espefuse

Who is online

Users browsing this forum: Google [Bot] and 97 guests