beetbox / pyacoustid

Python bindings for Chromaprint acoustic fingerprinting and the Acoustid Web service
MIT License
334 stars 66 forks source link

Fingerprinting: Too Many Open Files #84

Open DLu opened 4 months ago

DLu commented 4 months ago

Maybe this is not a standard use case, but if you run fingerprint_file for approximately 500 files in a row, you can end up with an OSError.

  File "/usr/local/lib/python3.10/dist-packages/audioread/__init__.py", line 127, in audio_open
    return BackendClass(path)
  File "/usr/local/lib/python3.10/dist-packages/audioread/rawread.py", line 59, in __init__
    self._fh = open(filename, 'rb')
OSError: [Errno 24] Too many open files: '/home/dlu/Music/PathOfAnMp3ThatMakesMeSeemHipAndCool.mp3'

Running on Ubuntu 22.04.