Burning efuses on an ESP32-S3 using `pio pkg exec -- espefuse.py`

This might not be the correct subforum (feel free to move). I’m trying to burn an efuse using espefuse.py, however it looks like it’s not installing the pip dependencies. I’m running:

$ pio pkg exec -- espefuse.py
Using tool-esptoolpy@1.40501.0 package
Traceback (most recent call last):
  File "/home/kevin/.platformio/packages/tool-esptoolpy/espefuse.py", line 31, in <module>
    import espefuse
  File "/home/kevin/.platformio/packages/tool-esptoolpy/espefuse/__init__.py", line 11, in <module>
    import espefuse.efuse.esp32 as esp32_efuse
  File "/home/kevin/.platformio/packages/tool-esptoolpy/espefuse/efuse/esp32/__init__.py", line 1, in <module>
    from . import operations
  File "/home/kevin/.platformio/packages/tool-esptoolpy/espefuse/efuse/esp32/operations.py", line 11, in <module>
    import espsecure
  File "/home/kevin/.platformio/packages/tool-esptoolpy/espsecure/__init__.py", line 15, in <module>
    from cryptography import exceptions
ModuleNotFoundError: No module named 'cryptography'

I’ve tried pip installing the cryptography module, but it leads to other dependency issues (and it may not be installing the correct versions, etc), so I’m hesitant on going this route.

How do I correctly handle these missing dependencies? Is this a bug and should I open an issue on Github?

I ended up just pip installing the esptool.py module and just manually calling python3 -m espefuse ..., which feels like the wrong thing to do here. I’m still interested in hearing how to “correctly” do this.