joergmlpts / blood-pressure-monitor

Python application for Microlife's blood pressure monitors to download data and set the clock and ID via USB and Bluetooth.
MIT License
31 stars 3 forks source link

Future <Future pending> attached to a different loop #2

Closed DailyLollipops closed 1 year ago

DailyLollipops commented 1 year ago

Hello, I've running this on my Windows 10 machine and it works fine, however when I tried running it on my Raspberry Pi 4B machine. It got an error that says

Exception: Task <Task pending name='Task-5' coro=<Event.wait() running at /usr/lib/python3.9/asyncio/locks.py:226> cb=[_release_waiter(<Future pendi...f80b8d0d0>()]>)() at /usr/lib/python3.9/asyncio/tasks.py:416]> got Future <Future pending> attached to a different loop

Any idea why this is happening?

joergmlpts commented 1 year ago

Maybe revert this change for Python 3.10; it was about event loops: fix for 'DeprecationWarning: There is no current event loop' in Python 3.10. Then try again with Python 3.9 on Raspberry.

DailyLollipops commented 1 year ago

It now works thanks for you help

I may need to mention this but I found out its possible to pair again in case you've lost the encryption key but will lose all data in the blood pressure monitor because it needs to be reset To reset, just press then start button until the bluetooth icon flash and press the time logo part at the upper part

Anyways, it has been a great help thank you