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

Convert pathlib objects to str when used as argument to librosa.load() #371

Merged
1 commit merged into from Jun 23, 2020
Merged

Convert pathlib objects to str when used as argument to librosa.load() #371

1 commit merged into from Jun 23, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jun 22, 2020

Newer versions of librosa>=0.7.0 do not accept a pathlib object for librosa.load()

This will break demo_cli.py among other things. There was a fix for this in #331 but was not implemented because since it went too far in removing existing usage of pathlib.

@ghost
Copy link
Author

ghost commented Jun 22, 2020

There is also another instance of librosa.load in the collab that could be fixed. Are we maintaining that one too?

Also, I verified that librosa.output.write_wav does not have this issue.

@ghost ghost requested a review from CorentinJ June 22, 2020 21:53
@ghost ghost self-assigned this Jun 22, 2020
@CorentinJ
Copy link
Owner

Are we maintaining that one too?
Not really, unsure how to proceed with that code

@ghost ghost merged commit 32a59f3 into CorentinJ:master Jun 23, 2020
@ghost ghost deleted the 371_librosa_load_pathlib_fix branch June 24, 2020 11:33
trojblue added a commit to trojblue/zhrtvc that referenced this pull request Jul 30, 2020
修改的部分和这个一样, CorentinJ/Real-Time-Voice-Cloning#371, 在eav_fpath前面加上str防止出错
trojblue added a commit to trojblue/zhrtvc that referenced this pull request Jul 30, 2020
修改的部分和这个一样, CorentinJ/Real-Time-Voice-Cloning#371, 在wav_fpath前面加上str防止在打开文件的时候出现"File contains data in an unknown format"
This pull request was closed.
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

Successfully merging this pull request may close these issues.

1 participant