fg1 / BLEHeartRateLogger

Bluetooth Low-Energy Heart Rate Monitor data logging in Python
Other
127 stars 48 forks source link

Errors on install and when running... #2

Closed rsilvers129 closed 7 years ago

rsilvers129 commented 7 years ago

I put this on an Intel Edison running Jubilinux.

On install I get this:

Errors were encountered while processing: bluez bluetooth E: Sub-process /usr/bin/dpkg returned an error code (1)

On run, I can find and connect to a Polar H7.

But then I get this:

BLEHeartRateLogger# ./BLEHeartRateLogger.py -m 00:22:D0:7F:88:DB -v 2017-05-19 22:40:29,519 Establishing connection to 00:22:D0:7F:88:DB 2017-05-19 22:40:31,366 Connected to 00:22:D0:7F:88:DB 2017-05-19 22:40:52,767 Connection lost with 00:22:D0:7F:88:DB. Reconnecting. Traceback (most recent call last): File "./BLEHeartRateLogger.py", line 350, in cli() File "./BLEHeartRateLogger.py", line 346, in cli main(args.m, args.o, args.g, args.b, args.H, args.d) File "./BLEHeartRateLogger.py", line 279, in main sq.commit() UnboundLocalError: local variable 'sq' referenced before assignment