adafruit / Adafruit_CircuitPython_DS3231

Adafruit CircuitPython drivers for the DS3231 realtime clock.
MIT License
21 stars 19 forks source link

Error when importing: line 97 _calibration unexpected keyword 'signed' #28

Closed stlentz closed 4 years ago

stlentz commented 4 years ago

Module is not working on beagle board black. Since the line reporting the error is a recent addition to the code, can you check that it is correct?

debian@beaglebone:/var/lib/cloud9$ python3 Python 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import busio import adafruit_ds3231 Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/dist-packages/adafruit_ds3231.py", line 67, in class DS3231: File "/usr/local/lib/python3.7/dist-packages/adafruit_ds3231.py", line 97, in DS3231 _calibration = i2c_bits.RWBits(8, 0x10, 0, 8, signed=True) TypeError: init() got an unexpected keyword argument 'signed'

ladyada commented 4 years ago

make sure you have upgraded all pip packages

stlentz commented 4 years ago

OK, fixed. Adafruit_ds3231.py was installed, but not Adafruit_ds3231.mpy. Real PITA to move that file into the right place (/usr/local/bin/python3.7/dist-packages), the online guides are not really adequate, I used scp from my Mac. Would be nice if PIP3 installed the files.

I do appreciate the support but I’m sort of worried how much longer people will bother with beagle board or will everyone just move to RPi.

Anyway, thanks for the help.

-Steve

On Aug 16, 2020, at 5:02 PM, ladyada notifications@github.com wrote:

make sure you have upgraded all pip packages

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_CircuitPython_DS3231/issues/28#issuecomment-674577462, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMPO7CLJ7WNF4V6FH2VBBLLSBBCO5ANCNFSM4QBAKJRQ.

ladyada commented 4 years ago

you dont need or use the .mpy files on linux they are used for circuitpython boards only, something else was likely amiss with the install.