beetbox / beetbox/audioread

ResourceWarning: unclosed file

Open
#97 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
538
Forks
112
PR merge metrics
No merged PRs in 30d

Description

```
~/anaconda3/lib/python3.6/site-packages/audioread/__init__.py:86: ResourceWarning: unclosed file <_io.BufferedReader name=8>
if ffdec.available():
```
After upgrading my pip packages(i don't know which cause it), running programs previously having no warnings pop up this message frequently. How to fix it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the warning with the reported audioread installation and inspect ~/anaconda3/lib/python3.6/site-packages/audioread/__init__.py at line 86, especially the ffdec.available() check. Trace which file descriptor remains open after that path runs, then verify that the warning no longer appears while audio decoding still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.