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
python error in adafruit_clue.py module
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15655
- Joined: Tue Oct 20, 2015 3:22 pm
Re: python error in adafruit_clue.py module
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
Dave
- Noodle0Doodle
- Posts: 4
- Joined: Mon May 17, 2021 6:55 pm
Re: python error in adafruit_clue.py module
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.
- dastels
- Posts: 15655
- Joined: Tue Oct 20, 2015 3:22 pm
Re: python error in adafruit_clue.py module
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
Dave
- kevinjwalters
- Posts: 1025
- Joined: Sun Oct 01, 2017 3:15 pm
Re: python error in adafruit_clue.py module
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:
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?
Code: Select all
Adafruit CircuitPython 6.2.0 on 2021-04-05; Adafruit CLUE nRF52840 Express with nRF52840
>>> import sys
>>> sys.path
['', '/', '.frozen', '/lib']
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?
Please be positive and constructive with your questions and comments.