I built windows port from the github repo using visual studio 2019, full success during the build, can execute micropython, interact with REPL passes tests all per READMEs there. Went through and tools/bootstrap_upip.sh successfully using cygwin on windows. If i try to run upip now, i always get
/cygdrive/D/bammi/src/micropython/ports/windows/micropython.exe -m upip.py -help
Traceback (most recent call last):
File "upip.py", line 109, in
ImportError: no module named 'ussl'
I cant see anything resembling ussl in the library either. Without ussl afraid it renders it it pretty useless because upip is not available to install any packages.
Will go try my luck on a linux in a VM next.
cheers,
bammi
no USSL module in windows port
Re: no USSL module in windows port
There's a CPython version of upip (imo this should be in the main repository): https://github.com/peterhinch/micropyth ... icropip.py
If you have Windows 10, WSL is easier and more convenient than a VM.
Or you might be able to build the unix port under Cygwin (not using mingw-gcc but 'plain' gcc for Cygwin), not sure if that still works.
But yes sockets/ssl for the Windows port would be nice. If there's sufficient interest or sponsoring I (or someone else) could do that, but I think you're the first one asking fort it (not 100% sure).
If you have Windows 10, WSL is easier and more convenient than a VM.
Or you might be able to build the unix port under Cygwin (not using mingw-gcc but 'plain' gcc for Cygwin), not sure if that still works.
But yes sockets/ssl for the Windows port would be nice. If there's sufficient interest or sponsoring I (or someone else) could do that, but I think you're the first one asking fort it (not 100% sure).
-
- Posts: 2
- Joined: Tue Jan 26, 2021 11:36 pm
Re: no USSL module in windows port
Appreciate your response stijn. I'll take a look at the cpython upip, but as you correctly point out sockets/ssl difficult to do without, upip is just one application, of course lots of other use cases for them (i am developing MQTT client software). I decided it would be just easier to go the Linux route, so now have a Laptop with Ubuntu going, setting up my development environment as we speak.
cheers,
bammi
cheers,
bammi