0

python error in adafruit_clue.py module
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

python error in adafruit_clue.py module

by Noodle0Doodle on Mon May 17, 2021 7:02 pm

I keep getting this error no matter that I do:
code.py output:
Traceback (most recent call last):
file "code.py", line 1, in <module>

file "adafruit_clue.py", line 956, in <module>
file "adafruit_clue.py", line 206, in __init__
TypeError: function missing required positional argument #3

Noodle0Doodle
 
Posts: 4
Joined: Mon May 17, 2021 6:55 pm

Re: python error in adafruit_clue.py module

by dastels on Mon May 17, 2021 7:05 pm

Make sure everything in the CIRCUITPY/lib directory is up to date. You might want to delete the contents of the directory, empty trash, and copy fresh files over. Sometimes there's something left from a previous library structure.

Dave

dastels
 
Posts: 7268
Joined: Tue Oct 20, 2015 3:22 pm

Re: python error in adafruit_clue.py module

by Noodle0Doodle on Mon May 17, 2021 9:19 pm

I have done this twice but no matter the program I write or how many tines I erase my drive the error keeps popping up.

Noodle0Doodle
 
Posts: 4
Joined: Mon May 17, 2021 6:55 pm

Re: python error in adafruit_clue.py module

by dastels on Mon May 17, 2021 9:55 pm

Hmmm. According to the very latest adafruit_clue.py, that's on creation of the NeoPixel object. Double Check that you have the latest version of the bundle from https://circuitpython.org/libraries

Dave

dastels
 
Posts: 7268
Joined: Tue Oct 20, 2015 3:22 pm

Re: python error in adafruit_clue.py module

by kevinjwalters on Tue May 18, 2021 6:28 am

An unlikely but possible source of confusion is having a copy of the library file elsewhere within the directories that CircuitPython searches. For 6.2.0 this is:

Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 6.2.0 on 2021-04-05; Adafruit CLUE nRF52840 Express with nRF52840
>>> import sys
>>> sys.path
['', '/', '.frozen', '/lib']


which means a neopixel.mpy library file in the top-level (root) directory will have precedence over one in /lib. I think it will also take a neopixel.py over a neopixel.mpy.

If you have truly erased your drive contents then this doesn't seem possible. I often have multiple boards plugged in and end up with many CIRCUITPY drives. To make sure I get the correct one I leave an empty file with the name I've given to the board which I also physically scrawl onto the board.

Are you using 6.2.0 with the matching 6.x library bundle?

kevinjwalters
 
Posts: 975
Joined: Sun Oct 01, 2017 3:15 pm

Please be positive and constructive with your questions and comments.