Closed mksafavi closed 3 months ago
Just chiming in to say I am having the same issue
I think I found the problem.
when you run esp_rfc2217_server.py
it starts /nix/store/h5kainwxnc8slhhmd9kp2h82srjy0hyr-python3-3.11.9-env/bin/esp_rfc2217_server.py
which is a wrapper around the python source that's here: /nix/store/h5kainwxnc8slhhmd9kp2h82srjy0hyr-python3-3.11.9-env/bin/.esp_rfc2217_server.py-wrapped
.
in line 40 of .esp_rfc2217_server.py-wrapped
it tries to import esptool.py
:
from esptool.config import load_config_file
from esptool.reset import ClassicReset, CustomReset, DEFAULT_RESET_DELAY, UnixTightReset
but esptool.py
is also a wrapper. the actual module is here .esptool.py-wrapped
I'm not sure if this is a byproduct of building esptool with buildPythonPackage
instead of buildPythonApplication
.
But I'll try patching the .esp_rfc2217_server.py-wrapped
imports to see if it works.
I noticed that
esp_rfc2217_server.py
doesn't work. I'm not sure if this is the only command that has this issue. Let me know if there's any other info that I should share.command to run:
error:
expected output:
/nix/store/wn78z9b8lijylzy8znzmdj021z54iz6f-python3.11-esptool-4.6.2/bin/esptool.py
is different from the esptool.py (/nix/store/95iahqmhrwm519324ibp703i7n21d3xp-python3-3.11.9-env/bin/esptool.py
) that's used for flashing,...inside the file that has syntax errors: