-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows setup for nrf52 fails #144
Comments
🤦 that's what I get for not having a Windows test environment.
- const unxz = createUnxz()
const response = await axios.get(TOOLCHAIN_DOWNLOAD, {
responseType: 'stream',
})
- const stream = isWindows ? response.data : response.data.pipe(unxz)
+ const stream = isWindows ? response.data : response.data.pipe(createUnxz()) |
This error is resolved for me after updating xs-dev. Thank you! The build runs almost to completion. At the very end it fails with a Python (surprise!) error.
When the nRF52 setup ran, it appears to install Python without error. Here's a re-run of the command:
This may be another symptom of #145. Do you think it is worth opening this as a separate issue or just wait for some progress on #145 first? |
Brief update. I manually installed Python 3.11 from the Microsoft Store. That allows the nRF52 build to complete. The binary installs and debugging works on Moddable Four. Success! It also eliminates the warning about Python being missing when launching the Moddable Console. I tried an ESP32 build. That got further but failed here:
I've seen that failure on "click" before on macOS. I think it has something to do with a Python version mismatch? |
Not exactly the same error but a similar effect related to newer versions of Python not working with the ESP-IDF 😞 #125 |
Ah, right. the ESP-IDF docs suggest 3.8 or later should work. But... I don't think IDF should be using the system Python anyway, so the problem is likely more about why it isn't using the ESP-IDF Python. |
@phoddie I was reading through your update on the nrf52 build again and noticed you mentioned using Python 3.11 to successfully compile for the Moddable Four on Windows. Does that mean Python 2.7 is not actually required as documented in the Moddable repo and codified in xs-dev? https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/devices/nrf52.md#installing-1 |
I believe that is correct. The dependency on Python 2.7 may only be for ESP8266 builds. On macOS, I'm using Python 3.10.10 for nRF52 builds. |
I'm setting up a new Windows machine and using xs-dev to get the Moddable SDK installed. The initial setup worked smoothly and the examples run as expected. Very nice.
Setting for nrf52 fails as shown below. My guess is that this is related to the xz lib issue mentioned in trouble shooting but I didn't see instructions for how to resolve that on Windows.
The text was updated successfully, but these errors were encountered: