Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

CLUE Missing Positional Argument #3
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

CLUE Missing Positional Argument #3

by wdougmiller on Fri Jul 31, 2020 9:35 pm

I received my first CLUE and I am attempting to load the bonsai buckaroo project. I have downloaded the latest uf2 file, the latest library, and loaded the library files according to the project guide.

I am getting an error for the adafruit_clue.py file for the Clue Class in the __init__ function. "function missing required positional argument #3"

I am at a loss.

Thoughts? any assistance is appreciated!

wdougmiller
 
Posts: 4
Joined: Wed Jan 29, 2020 1:30 am

Re: CLUE Missing Positional Argument #3

by dastels on Fri Jul 31, 2020 10:58 pm

It sounds like a library version mismatch.

Can you post the entire REPL output here, please? With the whole error trace.

Dave

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

Re: CLUE Missing Positional Argument #3

by wdougmiller on Fri Jul 31, 2020 11:00 pm

**Update - Resolved**
I was just about to post an update. I found that I was importing bme280.mpy instead of bmp280.mpy. I only found that by luck, I am not sure where I would have found that in the error I was receiving.

I haven't figured out how to view/edit mpy files.

wdougmiller
 
Posts: 4
Joined: Wed Jan 29, 2020 1:30 am

Re: CLUE Missing Positional Argument #3

by kevinjwalters on Sat Aug 01, 2020 7:52 am

I've mistaken those two files too.

The mpy files are byte compiled by mpy-cross from the source code. The VERSIONS file in the library bundle lists all the github repositories with the matching tag. The library name tends to be very similar to its repository name, for these two libraries from 20200718 (about 2 weeks old) I see:


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

Re: CLUE Missing Positional Argument #3

by dastels on Sat Aug 01, 2020 8:50 am

Good stuff! I've done the same.

MPY files are precompiled binary files as mentioned. The bundle is precompiled so that they don't need to be compiled when imported, saving time and memory usage. Source for everything in the bundle is at https://github.com/adafruit/Adafruit_CircuitPython_Bundle/tree/master/libraries.

Have fun.

Dave

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

Re: CLUE Missing Positional Argument #3

by wdougmiller on Sat Aug 01, 2020 11:23 am

Thank you both, that is very helpful!! My daughter enjoyed the bonsai buckaroo experiment! When the pump started sending water she wasn’t expecting it and jumped. Lol

wdougmiller
 
Posts: 4
Joined: Wed Jan 29, 2020 1:30 am

Please be positive and constructive with your questions and comments.