Skip to content

Failing in a pipx environment (ESPTOOL-966) #1036

Closed as not planned
Closed as not planned
@wilmer-suarez-simplisafe

Description

Operating System

Windows 11 VM

Esptool Version

4.8.1

Python Version

3.12.7

Full Esptool Command Line that Was Run

subprocess.check_output("esptool -p COM3 -b 115200 --after no_reset erase_region 0x10000 0x2000", shell=True).decode()

Esptool Output

Exception Output:

CalledProcessError:
esptool -p COM3 -b 115200 --after no_reset erase_region 0x10000 0x2000' returned non-zero exit status 1.

stdout: b''
stderr: None

What is the Expected Behaviour?

I'm running a Python application that is installed using a pyproject wheel with pipx. I'm calling a series of subprocess check_output calls to erase and write to and ESP device. I keep getting the above error.

If I run the application manually/locally in my own virtual environment, it is successful. I've ensured the dependencies are identical.

More Information

Edition - Windows 11 Pro (Virtual Machine)
Version - 23H2
OS build - 22631.4460
Experience - Windows Feature Experience Pack 1000.22700.1047.0

Other Steps to Reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions