andabi / deep-voice-conversion

Deep neural networks for voice conversion (voice style transfer) in Tensorflow
MIT License
3.92k stars 843 forks source link

problem when I try to run train1.py #49

Closed mindmapper15 closed 6 years ago

mindmapper15 commented 6 years ago

I'm trying to run train1.py then I got this error

Traceback (most recent call last): File "train1.py", line 17, in from data_load import Net1DataFlow File "/home/deep-voice-conversion/data_load.py", line 7, in import librosa File "/home/.local/lib/python2.7/site-packages/librosa/init.py", line 12, in from . import core File "/home/.local/lib/python2.7/site-packages/librosa/core/init.py", line 108, in from .time_frequency import # pylint: disable=wildcard-import File "/home/.local/lib/python2.7/site-packages/librosa/core/time_frequency.py", line 10, in from ..util.exceptions import ParameterError File "/home/.local/lib/python2.7/site-packages/librosa/util/init.py", line 67, in from .utils import # pylint: disable=wildcard-import File "/home/.local/lib/python2.7/site-packages/librosa/util/utils.py", line 103, in def valid_audio(y, mono=True): File "/home/.local/lib/python2.7/site-packages/librosa/cache.py", line 49, in wrapper if self.cachedir is not None and self.level >= level: File "/home/.local/lib/python2.7/site-packages/joblib/memory.py", line 847, in cachedir DeprecationWarning, stacklevel=2) TypeError: expected string or buffer

If I remove "import librosa" from every py files in your project, this message disappears but still can't run train1.py because python can't use functions in librosa package.

I'm currently using python2 with version 2.7.12 and tensorflow-gpu with version 1.4.0

mindmapper15 commented 6 years ago

Okay.... so I found the solution.

https://github.com/librosa/librosa/issues/729

It said, you have to downgrade the "joblib" package to 0.11.0 (probably its version is 0.12.0 when you installed librosa 0.5.1 version)

I tried this solution and it works!