0

circuitpython 4.0.0 on trinket M0 frozenset ?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

circuitpython 4.0.0 on trinket M0 frozenset ?

by terryr on Mon May 20, 2019 10:46 pm

I have a working connection to a Trinket M0 reading a bmp280 sensor just like the example .py code.
Tried to upgrade circuitpython to the 4.0.0 version, now running the bmp280 example, I get an error:

Code: Select all | TOGGLE FULL SIZE
code.py output:
Traceback (most recent call last):
  File "code.py", line 12, in <module>
  File "adafruit_bmp280.py", line 65, in <module>
NameError: name 'frozenset' is not defined


Yes, this is with the 4.0 lib bundle.
Any clues?
terryr
 
Posts: 3
Joined: Thu Nov 29, 2012 6:19 pm

Re: circuitpython 4.0.0 on trinket M0 frozenset ?

by franklin97355 on Tue May 21, 2019 12:58 am

Not sure why it was working before but it is disabled for non-express boards. https://circuitpython.readthedocs.io/en/latest/docs/library/builtins.html?highlight=frozenset#frozenset

franklin97355
 
Posts: 20753
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: circuitpython 4.0.0 on trinket M0 frozenset ?

by terryr on Tue May 21, 2019 1:17 pm

From the outside that seems to be a cryptic deviation but I should have read the docs more carefully
Thanks for the quick response, I can stop tearing out my hair.
terryr
 
Posts: 3
Joined: Thu Nov 29, 2012 6:19 pm

Re: circuitpython 4.0.0 on trinket M0 frozenset ?

by MakerMelissa on Tue May 21, 2019 10:12 pm

Hi, I have published a fix for this. The update should be available as part of the bundle when it is released tomorrow. If you would like to use the changes immediately, you can download the mpy version from https://github.com/adafruit/Adafruit_Ci ... 0/releases.

MakerMelissa
 
Posts: 48
Joined: Wed Jun 05, 2013 2:10 am

Re: circuitpython 4.0.0 on trinket M0 frozenset ?

by terryr on Fri May 24, 2019 5:32 pm

Works like a dream. Thanks for the update.
terryr
 
Posts: 3
Joined: Thu Nov 29, 2012 6:19 pm

Please be positive and constructive with your questions and comments.