You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Potentially this would work too (I havent tested it, but I made the necessary package.json available as a Gist):
# on the ESP32# make sure network is connectedimportmipmip.install("https://gist.githubusercontent.com/wnienhaus/5a30dd2ac7000764b065b44c5341f1e9/raw/54e1d43dbb0761b10134a34ca70d272064b66987/package.json")
Potentially this would work too (I havent tested it, but I made the necessary package.json available as a Gist):
# on the ESP32# make sure network is connectedimportmipmip.install("https://gist.githubusercontent.com/wnienhaus/5a30dd2ac7000764b065b44c5341f1e9/raw/54e1d43dbb0761b10134a34ca70d272064b66987/package.json")
Potentially this would work too (I havent tested it, but I made the necessary package.json available as a Gist):
# on the ESP32# make sure network is connectedimportmipmip.install("https://gist.githubusercontent.com/wnienhaus/5a30dd2ac7000764b065b44c5341f1e9/raw/54e1d43dbb0761b10134a34ca70d272064b66987/package.json")
Wow thanks for the fast reply!
Your command almost worked:
this will be the same thing as util.py - the file did not get installed correctly.
Basically the mip install crashed while downloading preprocess.py so it and all files thereafter are corrupt/missing. You can see the full list of files that should have downloaded in the gist: (one more file that should have come after the mip crash during preprocess.py).
Make sure to manually copy all the missing files to the esp32_ulp directory on your ESP32.
this will be the same thing as util.py - the file did not get installed correctly.
Basically the mip install crashed while downloading preprocess.py so it and all files thereafter are corrupt/missing. You can see the full list of files that should have downloaded in the gist: (one more file that should have come after the mip crash during preprocess.py).
Make sure to manually copy all the missing files to the esp32_ulp directory on your ESP32.
I'll reopen this, because one still cannot install using mip, and the latest MicroPython no longer has upip. (The above is just a workaround).
I'll add the necessary support next, by adding a valid package.json file and by updating the documentation.
Activity
wnienhaus commentedon Aug 8, 2023
Thanks for the report. It's definitely something that needs to be fixed.
I'm working on that one (should have it soon), but currently focusing on finishing S2/S3 support.
For now you could use
mpremote
on a PC to copy the necessary files to your ESP32.First clone this repo, then from within the repo root, run:
Then it will work.
wnienhaus commentedon Aug 8, 2023
Potentially this would work too (I havent tested it, but I made the necessary package.json available as a Gist):
mjaspers2mtu commentedon Aug 8, 2023
Wow thanks for the fast reply!
Your command almost worked:
mjaspers2mtu commentedon Aug 8, 2023
Further after ignoring the oserror, and copying the example file counter.py, I got this:
I had to copy over util.py, which then results in:
wnienhaus commentedon Aug 8, 2023
this will be the same thing as
util.py
- the file did not get installed correctly.Basically the mip install crashed while downloading
preprocess.py
so it and all files thereafter are corrupt/missing. You can see the full list of files that should have downloaded in the gist: (one more file that should have come after the mip crash duringpreprocess.py
).Make sure to manually copy all the missing files to the
esp32_ulp
directory on your ESP32.mjaspers2mtu commentedon Aug 8, 2023
This was exactly the problem thanks a bunch!
wnienhaus commentedon Sep 2, 2023
I'll reopen this, because one still cannot install using mip, and the latest MicroPython no longer has upip. (The above is just a workaround).
I'll add the necessary support next, by adding a valid
package.json
file and by updating the documentation.