#Did you get the latest bundle for 8 1 0
1 messages · Page 1 of 1 (latest)
Yes. I've tried running my python code with and without the bundled adafruit_circuitplayground library (in the CPX lib folder)
Did you copy the latest version from the 8.x bundle of the adafruit_circuitplayground directory to the lib folder of CIRCUITPY?
Yes, exactly. FWIW, I get the same behavior with my boards (I tried 2 so far) in the MU editor install on my Windows machine.
Did you also update adafruit_lis3dh.mpy in lib?
All of these:
adafruit_bus_device/
adafruit_circuitplayground/
adafruit_lis3dh.mpy
adafruit_thermistor.mpy
neopixel.mpy
No. I haven't loaded the full bundle (adafruit-circuitpython-bundle-8.x-mpy-20230527) on the CPX. I seem to remember reading somewhere, that these simple programs should run on the CPX with just the in_built modules of the the CircuitPython runtime. Am I wrong about that?
Well, the adafruit_circuitplayground library depends on all of the libraries above. It should have shipped with all of them. But if you upgraded to 8.x, then you would need to update these as well.
Ok, but the first line of Installation says: For Circuit Playground Express, simply install CircuitPython to use this library - the library itself and all of its dependencies are built into CircuitPython for Circuit Playground Express.
in the REPL, can you do >>> help("modules")
all built-in libraries should show up there
the "recursion depth" exception on import is probably a bug needing an issue... temporary workaround (might not work) try: supervisor.runtime.next_stack_limit to see what it is currently, then supervisor.runtime.next_stack_limit = something_larger then reboot
@hushed narwhal Thanks for the follow up. Here's what I see:
help("modules")
future adafruit_hid/keycode collections pwmio
main adafruit_hid/mouse countio rainbowio
adafruit_bus_device adafruit_lis3dh digitalio random
adafruit_bus_device.i2c_device adafruit_pixelbuf errno rotaryio
adafruit_bus_device.spi_device adafruit_thermistor gc rtc
adafruit_circuitplayground/init analogio math storage
adafruit_circuitplayground/circuit_playground_base array microcontroller struct
adafruit_circuitplayground/express audiobusio micropython supervisor
adafruit_hid/init audiocore neopixel sys
adafruit_hid/consumer_control audioio neopixel_write time
adafruit_hid/consumer_control_code bitbangio nvm touchio
adafruit_hid/keyboard board onewireio usb_cdc
adafruit_hid/keyboard_layout_base builtins os usb_hid
adafruit_hid/keyboard_layout_us busio pulseio usb_midi
Plus any modules on the filesystem
looks like the libraries are there. I'm not sure of precedence with built-in libraries, but something on CIRCUITPY might override those if they have the same name
are any of those libraries on CIRCUITPY at either "/" or "/lib"?
(the ones with the adafruit_ prefix, particularly)?
You can use the CircUp command line tool to make it easier. https://learn.adafruit.com/keep-your-circuitpython-libraries-on-devices-up-to-date-with-circup/overview
these libraries are frozen into the flash, and should be consistent with the circuitpython version of the flash
Ah. I forgot the libraries were built into CircuitPlayground.
They are not on other boards.
So, it would probably be best to remove any libraries in /lib or /.
@hushed narwhal Right now the /lib directory is empty
Interestingly, I have no problems with running MakeCode programs 🤷♂️
MakeCode is not based in CircuitPython.
@normal minnow If the problem continues, I suggest opening a support issue in https://forums.adafruit.com/viewforum.php?f=58
I understand about makecode. I just was remarking that it doesn't seem to be a problem with the board, but something with the CircuitPython runtime. 🙂
Agreed