Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EasyRiderr opened this issue Jan 7, 2023 · 0 comments

Comments

@EasyRiderr
Copy link

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...

EasyRiderr added a commit to EasyRiderr/bluepy that referenced this issue Jan 7, 2023
This commit is fixing issue IanHarvey#498 about the annoying log regarding the
RessourceWarning.

Signed-off-by: Yoan Dumas <yo_dumas@hotmail.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant