no USSL module in windows port

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jbammi@mac.com
Posts: 2
Joined: Tue Jan 26, 2021 11:36 pm

no USSL module in windows port

Post by jbammi@mac.com » Wed Jan 27, 2021 12:47 am

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

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: no USSL module in windows port

Post by stijn » Wed Jan 27, 2021 9:46 am

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).

jbammi@mac.com
Posts: 2
Joined: Tue Jan 26, 2021 11:36 pm

Re: no USSL module in windows port

Post by jbammi@mac.com » Thu Jan 28, 2021 5:01 pm

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

Post Reply