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

Unable to import ulab on a circuitplayground express
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Unable to import ulab on a circuitplayground express

by willsherm98 on Wed Apr 29, 2020 2:51 pm

I am trying to write a circuit python script using the ulab fft function for audio analysis on a circuitplayground express running circuit python v5.2.0, but when I say import ulab it says no module named ulab. Can anyone help with this?

willsherm98
 
Posts: 2
Joined: Wed Apr 29, 2020 2:47 pm

Re: Unable to import ulab on a circuitplayground express

by mikeysklar on Wed Apr 29, 2020 5:06 pm

Hello willsherm98,

Have you downloaded the latest library bundle for CircuitPython-5.x?

You will need to download the .zip file and copy the ulab library to the lib folder on your CPX device.

https://github.com/adafruit/Adafruit_Ci ... g/20200429

You will want this one with the *mpy* files.

adafruit-circuitpython-bundle-5.x-mpy-20200429.zip

mikeysklar
 
Posts: 1259
Joined: Mon Aug 01, 2016 8:10 pm

Re: Unable to import ulab on a circuitplayground express

by tannewt on Wed Apr 29, 2020 5:42 pm

`ulab` isn't included in the CircuitPlayground Express build because it doesn't have the room to fit it. You'll need a larger MCU for `ulab`.

See the support matrix here for what builds include it: https://circuitpython.readthedocs.io/en ... atrix.html

tannewt
 
Posts: 1691
Joined: Thu Oct 06, 2016 8:48 pm

Re: Unable to import ulab on a circuitplayground express

by willsherm98 on Wed Apr 29, 2020 9:39 pm

oh lol. Thank you very much for the help.

willsherm98
 
Posts: 2
Joined: Wed Apr 29, 2020 2:47 pm

Please be positive and constructive with your questions and comments.