faroit / stempeg

Python I/O for STEM audio files
https://faroit.github.io/stempeg
MIT License
96 stars 13 forks source link

i think temporaryfile needs to closed before they are removed. I am running into permission error. #3

Closed karthiek closed 6 years ago

karthiek commented 6 years ago

Hi

I am getting permission error at os.remove(tmps[tmp_id].name) because this temporary file is used by a different application.

Added this line tmps[tmp_id].close() just before os.remove(tmps[tmp_id].name) #line 124 in read.py to resolve the issue.

faroit commented 6 years ago

Hi, yes you are right. Thanks for spotting this. Feel free to create a pull request for this to fix it.

faroit commented 6 years ago

fixed in db56cb6. Also I made a new release. Thanks again.