Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Trinket M0: Python standard library
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trinket M0: Python standard library

by JohnWickham on Tue May 26, 2020 4:05 pm

I'm using a Trinket M0 with the latest version of CircuitPython (5.3.0). It seems that some modules in the standard library aren’t present, namely threading and abc.

Trying to import either gives the obvious "no modules named…" error.

Is this intended?
Attachments
Screen Shot 2020-05-26 at 4.00.22 PM.png
Screen Shot 2020-05-26 at 4.00.22 PM.png (411.47 KiB) Viewed 51 times

JohnWickham
 
Posts: 2
Joined: Tue May 26, 2020 4:02 pm

Re: Trinket M0: Python standard library

by adafruit_support_carter on Tue May 26, 2020 7:02 pm

CircuitPython does not implement everything that "normal" Python does:
https://learn.adafruit.com/circuitpytho ... -2990233-8

And when it comes to threading, there is a whole discussion about that here:
https://github.com/adafruit/circuitpython/issues/1380

adafruit_support_carter
 
Posts: 16305
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trinket M0: Python standard library

by JohnWickham on Tue May 26, 2020 10:39 pm

Thanks Carter, this is exactly the explanation I was looking for.

It seems (as of writing), CircuitPython doesn’t have a suitable threading/asynchronous programming modal for my project (but the discussion you linked is very active, so this may not be forever). I may need to turn to another development board for my needs.

JohnWickham
 
Posts: 2
Joined: Tue May 26, 2020 4:02 pm

Please be positive and constructive with your questions and comments.