Resolved: No module named 'ussl' in MicroPython v1.23 or 1.24 preview #15229
-
|
I have been using the ussl module in RPi Pico script, with MicroPython v1.22. However, after starting to use 1.23 version, I get error message no module named 'ussl'. Non-working versions:
Works OK here:
How to get ussl working again? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Please see this announcement. |
Beta Was this translation helpful? Give feedback.
-
|
Oh, that's it. Simply replacing the import ussl commands with import ssl helped and now the code is running successfully in 1.23. Thank you for quick answers! |
Beta Was this translation helpful? Give feedback.
-
|
Noting in v1.27.0 that there may be an issue with importing both |
Beta Was this translation helpful? Give feedback.
-
|
FWIW, MicroPython v1.21.0 was the release that renamed all u-prefix modules to their CPython name and deprecated the u-prefix. It's safe to replace Backwards compatibility was added for the old names, for example I can do something like It looks like I don't know if that's something we should restore or not, or whether we actually should consider removing all of the backwards compatible code for u-names now. |
Beta Was this translation helpful? Give feedback.
Try
import ssl.