IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.61k stars 490 forks source link

ResourceWarning: unclosed file <_io.TextIOWrapper name=6 encoding='UTF-8'> #498

Open EasyRiderr opened 1 year ago

EasyRiderr commented 1 year ago

Hey,

Each time I use the bluepy API I got the following error messages:

~/.local/lib/python3.10/site-packages/bluepy/btle.py:296: ResourceWarning: unclosed file <_io.TextIOWrapper name=5 encoding='UTF-8'>
  self._helper = None
ResourceWarning: Enable tracemalloc to get the object allocation traceback
~/.local/lib/python3.10/site-packages/bluepy/btle.py:296: ResourceWarning: unclosed file <_io.TextIOWrapper name=6 encoding='UTF-8'>
  self._helper = None
ResourceWarning: Enable tracemalloc to get the object allocation traceback

Code is working but I get those annoying logs...