質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

機械学習

機械学習は、データからパターンを自動的に発見し、そこから知能的な判断を下すためのコンピューターアルゴリズムを指します。人工知能における課題のひとつです。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

解決済

2回答

6241閲覧

WIN+pythonで機械学習の声質変換システムを作っています。pyworldというライブラリがインストールできません。

BURI55

総合スコア25

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

機械学習

機械学習は、データからパターンを自動的に発見し、そこから知能的な判断を下すためのコンピューターアルゴリズムを指します。人工知能における課題のひとつです。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

1グッド

0クリップ

投稿2018/03/30 08:37

編集2018/03/30 13:32

ディープラーニングの力で結月ゆかりの声になるリポジトリリンク内容に従って、環境構築を行い、実行しようとしています。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のの代わりにコマンドプロンプトは管理者権限で実行しています。

tachikoma👍を押しています

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

tachikoma

2018/03/30 09:41

pyworldに関する情報、何か分かりませんか?
BURI55

2018/03/30 09:50

WORLDという音声関係のライブラリのpythonラッパーのようです。
tachikoma

2018/03/30 10:51

なるほどなるほど。
guest

回答2

0

Permission deniedゆえ

sudo pip install pyworld

pip install pyworld --user

を試してみてください。

管理者権限を与えるか、ユーザーディレクトリにインストールするか。

投稿2018/03/30 13:23

mkgrei

総合スコア8560

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

mkgrei

2018/03/30 13:24

windowsか。 それならsudoの代わりにコマンドを管理者権限で実行してください。
guest

0

自己解決

Hi, could you try installing pyworld from wheel with this command for now?
pip install https://ci.appveyor.com/api/buildjobs/be1frv5byl28xvv3/artifacts/dist/pyworld-0.2.4-cp36-cp36m-win_amd64.whl

投稿2018/03/30 18:50

BURI55

総合スコア25

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問