ディープラーニングの力で結月ゆかりの声になるリポジトリリンク内容に従って、環境構築を行い、実行しようとしています。extract_acoustic_feature.pyによる音響特徴量の切り出し作業からしていますが、エラーが出ます。
試してみたこと
Path指定をextract_acoustic_feature.pyにprint文追加してデバッグ。
numpyのバージョンを戻してみる。
問題の起きている環境
Cython (0.27.3)
h5py (2.7.1)
librosa (0.6.0)
numpy (1.14.0)
world4py (0.1)
発生している問題・エラーメッセージ
cmd
1C:\become-yukarin\become-yukarin>python scripts/extract_acoustic_feature.py -i1 My_ATR503 -i2 Sasara_ATR503 -o1 out_MyATR503 -o2 out_SasaraATR503 2C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 3(中略) 4[WindowsPath('My_ATR503/A01.wav'), WindowsPath('My_ATR503/A02.wav'), WindowsPath('My_ATR503/A03.wav'), WindowsPath('My_ATR503/A04.wav'), WindowsPath('My_ATR503/A05.wav'), WindowsPath('My_ATR503/A06.wav'), WindowsPath('My_ATR503/A07.wav'), WindowsPath('My_ATR503/A08.wav'), WindowsPath('My_ATR503/A09.wav'), WindowsPath('My_ATR503/A10.wav'), WindowsPath('My_ATR503/A11.wav'), WindowsPath('My_ATR503/A12.wav'), WindowsPath('My_ATR503/A13.wav')] 5C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 6from ._conv import register_converters as register_converters 7C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 8from ._conv import register_converters as register_converters 9C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 10from ._conv import register_converters as register_converters 11C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 12from ._conv import register_converters as register_converters 13C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 14from ._conv import register_converters as register_converters 15C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 16from ._conv import register_converters as register_converters 17C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. 18from ._conv import register_converters as register_converters 19C:\Users\KHB15\Anaconda3\lib\site-packages\h5py_init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecaC:\become-yukarin\become-yukarin>pip install pyworld 20Collecting pyworld 21 Using cached pyworld-0.2.4.tar.gz 22Requirement already satisfied: numpy in c:\users\khb15\anaconda3\lib\site-packages (from pyworld) 23Requirement already satisfied: cython>=0.24.0 in c:\users\khb15\anaconda3\lib\site-packages (from pyworld) 24Building wheels for collected packages: pyworld 25 Running setup.py bdist_wheel for pyworld ... error 26 Failed building wheel for pyworld 27 Running setup.py clean for pyworld 28 Failed cleaning build dir for pyworld 29Failed to build pyworld 30Installing collected packages: pyworld 31 Running setup.py install for pyworld ... error 32 Complete output from command c:\users\khb15\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\KHB15\AppData\Local\Temp\pip-build-oavpv46g\pyworld\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KHB15\AppData\Local\Temp\pip-745q2uuc-record\install-record.txt --single-version-externally-managed --compile: 33 running install 34 running build 35 running build_py 36 copying pyworld\__init__.py -> build\lib.win-amd64-3.6\pyworld 37 running build_ext 38 skipping 'pyworld\pyworld.cpp' Cython extension (up-to-date) 39 running install_lib 40 copying build\lib.win-amd64-3.6\pyworld\pyworld.cp36-win_amd64.pyd -> c:\users\khb15\anaconda3\Lib\site-packages\pyworld 41 error: could not open 'build\lib.win-amd64-3.6\pyworld\pyworld.cp36-win_amd64.pyd': Permission denied 42 43 ---------------------------------------- 44Command "c:\users\khb15\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\KHB15\AppData\Local\Temp\pip-build-oavpv46g\pyworld\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KHB15\AppData\Local\Temp\pip-745q2uuc-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\KHB15\AppData\Local\Temp\pip-build-oavpv46g\pyworld\ted. In future, it will be treated as np.float64 == np.dtype(float).type. 45from ._conv import register_converters as _register_converters 46 47multiprocessing.pool.RemoteTraceback: 48""" 49Traceback (most recent call last): 50File "C:\Users\KHB15\Anaconda3\lib\multiprocessing\pool.py", line 119, in worker 51result = (True, func(*args, **kwds)) 52File "C:\Users\KHB15\Anaconda3\lib\multiprocessing\pool.py", line 47, in starmapstar 53return list(itertools.starmap(args[0], args[1])) 54File "C:\become-yukarin\become-yukarin\scripts\extract_acoustic_feature.py", line 91, in generate_feature 55f1 = acoustic_feature_process1(wave1, test=True).astype_only_float(numpy.float32) 56File "C:\become-yukarin\become-yukarin\become_yukarin\dataset\dataset.py", line 130, in call 57f0 = pyworld.stonemask(x, _f0, t, fs) 58AttributeError: module 'pyworld' has no attribute 'stonemask' 59""" 60(中略) 61The above exception was the direct cause of the following exception: 62 63Traceback (most recent call last): 64File "scripts/extract_acoustic_feature.py", line 209, in 65main() 66File "scripts/extract_acoustic_feature.py", line 202, in main 67pool.starmap(generate_feature, zip(paths1, paths2), chunksize=16) 68File "C:\Users\KHB15\Anaconda3\lib\multiprocessing\pool.py", line 274, in starmap 69return self._map_async(func, iterable, starmapstar, chunksize).get() 70File "C:\Users\KHB15\Anaconda3\lib\multiprocessing\pool.py", line 644, in get 71raise self._value 72AttributeError: module 'pyworld' has no attribute 'stonemask'
pyworldがうまくインストールできないようです。
cmd
1C:\become-yukarin\become-yukarin>pip install pyworld 2Collecting pyworld 3 Using cached pyworld-0.2.4.tar.gz 4Requirement already satisfied: numpy in c:\users\khb15\anaconda3\lib\site-packages (from pyworld) 5Requirement already satisfied: cython>=0.24.0 in c:\users\khb15\anaconda3\lib\site-packages (from pyworld) 6Building wheels for collected packages: pyworld 7 Running setup.py bdist_wheel for pyworld ... error 8 Failed building wheel for pyworld 9 Running setup.py clean for pyworld 10 Failed cleaning build dir for pyworld 11Failed to build pyworld 12Installing collected packages: pyworld 13 Running setup.py install for pyworld ... error 14 Complete output from command c:\users\khb15\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\KHB15\AppData\Local\Temp\pip-build-oavpv46g\pyworld\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KHB15\AppData\Local\Temp\pip-745q2uuc-record\install-record.txt --single-version-externally-managed --compile: 15 running install 16 running build 17 running build_py 18 copying pyworld\__init__.py -> build\lib.win-amd64-3.6\pyworld 19 running build_ext 20 skipping 'pyworld\pyworld.cpp' Cython extension (up-to-date) 21 running install_lib 22 copying build\lib.win-amd64-3.6\pyworld\pyworld.cp36-win_amd64.pyd -> c:\users\khb15\anaconda3\Lib\site-packages\pyworld 23 error: could not open 'build\lib.win-amd64-3.6\pyworld\pyworld.cp36-win_amd64.pyd': Permission denied 24 25Command "c:\users\khb15\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\KHB15\AppData\Local\Temp\pip-build-oavpv46g\pyworld\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\KHB15\AppData\Local\Temp\pip-745q2uuc-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\KHB15\AppData\Local\Temp\pip-build-oavpv46g\pyworld\
Permission deniedゆえ
sudo pip install pyworld
か
pip install pyworld --user
を試してみてください。
してみましたが、やはりPermission deniedが出ますね。ちなみにwindows10です。
sudoのの代わりにコマンドプロンプトは管理者権限で実行しています。

回答2件
あなたの回答
tips
プレビュー