cu2qu error "Running setup.py install for appdirs ... error"
依存していそうなモジュール Installing collected packages: appdirs, fs, fonttools, cu2qu
(Dev) C:\>cd users (Dev) C:\Users>cd m_fuj (Dev) C:\Users\m_fuj>cd Doc (Dev) C:\Users\m_fuj\Doc>cd github (Dev) C:\Users\m_fuj\Doc\GitHub>cd cu2qu
(Dev) C:\Users\m_fuj\Documents\GitHub\cu2qu >python setup.py --with-cython build_ext --inplace running build_ext Compiling Lib/cu2qu/cu2qu.py because it changed. [1/1] Cythonizing Lib/cu2qu/cu2qu.py building 'cu2qu.cu2qu' extension creating build creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\Lib creating build\temp.win-amd64-3.7\Release\Lib\cu2qu C:\PF(x86)\MsVS\2019\Pro\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_TRACE_NOGIL=1 -IC:\Users\m_fuj\.conda\envs\Dev\include -IC:\Users\m_fuj\.conda\envs\Dev\include "-IC:\PF(x86)\MsVS\2019\Pro\VC\Tools\MSVC\14.23.28105\ATLMFC\include" "-IC:\PF(x86)\MsVS\2019\Pro\VC\Tools\MSVC\14.23.28105\include" "-IC:\PF(x86)\WinKits\NETFXSDK\4.8\include\um" "-IC:\PF(x86)\WinKits\10\include\10.0.18362.0\ucrt" "-IC:\PF(x86)\WinKits\10\include\10.0.18362.0\shared" "-IC:\PF(x86)\WinKits\10\include\10.0.18362.0\um" "-IC:\PF(x86)\WinKits\10\include\10.0.18362.0\winrt" "-IC:\PF(x86)\WinKits\10\include\10.0.18362.0\cppwinrt" /TcLib/cu2qu/cu2qu.c /Fobuild\temp.win-amd64-3.7\Release\Lib/cu2qu/cu2qu.obj cu2qu.c Lib/cu2qu/cu2qu.c(6166): warning C4244: '=': 'Py_ssize_t' から 'int' への変換です。 データが失われる可能性があります。
creating C:\Users\m_fuj\Doc\GitHub\cu2qu\build\lib.win-amd64-3.7 creating C:\Users\m_fuj\Doc\GitHub\cu2qu\build\lib.win-amd64-3.7\cu2qu C:\PF(x86)\MsVS\2019\Pro\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\m_fuj\.conda\envs\Dev\libs /LIBPATH:C:\Users\m_fuj\.conda\envs\Dev\PCbuild\amd64 "/LIBPATH:C:\PF(x86)\MsVS\2019\Pro\VC\Tools\MSVC\14.23.28105\ATLMFC\lib\x64" "/LIBPATH:C:\PF(x86)\MsVS\2019\Pro\VC\Tools\MSVC\14.23.28105\lib\x64" "/LIBPATH:C:\PF(x86)\WinKits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\PF(x86)\WinKits\10\lib\10.0.18362.0\ucrt\x64" "/LIBPATH:C:\PF(x86)\WinKits\10\lib\10.0.18362.0\um\x64" /EXPORT:PyInit_cu2qu build\temp.win-amd64-3.7\Release\Lib/cu2qu/cu2qu.obj /OUT:build\lib.win-amd64-3.7\cu2qu\cu2qu.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\Lib/cu2qu\cu2qu.cp37-win_amd64.lib ライブラリ build\temp.win-amd64-3.7\Release\Lib/cu2qu\cu2qu.cp37-win_amd64.lib とオブジェクト build\temp.win-amd64-3.7\Release\Lib/cu2qu\cu2qu.cp37-win_amd64.exp を作成中 コード生成しています。 コード生成が終了しました。 copying build\lib.win-amd64-3.7\cu2qu\cu2qu.cp37-win_amd64.pyd -> Lib\cu2qu
(Dev) C:\Users\m_fuj\Doc\GitHub\cu2qu >pip install --global-option="--with-cython" -e Usage: pip install [options] <requirement specifier> [package-index-options] ... pip install [options] -r <requirements file> [package-index-options] ... pip install [options] [-e] <vcs project url> ... pip install [options] [-e] <local project path> ... pip install [options] <archive url/path> ... -e option requires 1 argument (Dev) C:\Users\m_fuj\Doc\GitHub\cu2qu >pip install --global-option="--with-cython" -e . C:\Users\m_fuj\.conda\envs\Dev\lib\site-packages\pip\_internal\commands\install.py:283: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options. cmdoptions.check_install_build_global(options) Obtaining file:///C:/Users/m_fuj/Doc/GitHub/cu2qu Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting fonttools[ufo]>=3.32.0 Downloading https://files.pythonhosted.org/packages/c3/5e//fonttools-4.2.1.zip (3.7MB) |████████████████████████████████| 3.7MB 3.3MB/s Collecting fs<3,>=2.2.0 Downloading https://files.pythonhosted.org/packages/1d/a1//fs-2.4.11.tar.gz (128kB) |████████████████████████████████| 133kB 6.4MB/s Collecting appdirs~=1.4.3 Downloading
https://files.pythonhosted.org/packages/48/69//appdirs-1.4.3.tar.gz Requirement already satisfied: pytz in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs<3,>=2.2.0->fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (2019.3) Requirement already satisfied: setuptools in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs<3,>=2.2.0->fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (42.0.2.post20191203) Requirement already satisfied: six~=1.10 in c:\users\m_fuj\.conda\envs\fontdev\lib\site-packages (from fs<3,>=2.2.0->fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (1.13.0)
Skipping wheel build for fonttools, due to binaries being disabled for it. Skipping wheel build for fs, due to binaries being disabled for it. Skipping wheel build for appdirs, due to binaries being disabled for it. Installing collected packages: appdirs, fs, fonttools, cu2qu Running setup.py install for appdirs ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\m_fuj\.conda\envs\Dev\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\m_fuj\\AppData\\Local\\Temp\\pip-install-4kmdd0g5\\appdirs\\setup.py'"'"'; __file__='"'"'C:\\Users\\m_fuj\\AppData\\Local\\Temp\\pip-install-4kmdd0g5\\appdirs\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close(); exec(compile(code, __file__, '"'"'exec'"'"'))' --with-cython install --record 'C:\Users\m_fuj\AppData\Local\Temp\pip-record-0n07haek\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\m_fuj\AppData\Local\Temp\pip-install-4kmdd0g5\appdirs\ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: option --with-cython not recognized ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\m_fuj\.conda\envs\FontDev\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\m_fuj\\AppData\\Local\\Temp\\pip-install-4kmdd0g5\\appdirs\\setup.py'"'"'; __file__= '"'"'C:\\Users\\m_fuj\\AppData\\Local\\Temp\\pip-install-4kmdd0g5\\appdirs\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' --with-cython install --record 'C:\Users\m_fuj\AppData\Local\Temp\pip-record-0n07haek\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
先に、依存しているモジュールをpipでinstallしてから、再度実行したら、成功した。
>pip install appdirs Collecting appdirs Downloading https://files.pythonhosted.org/packages/56/eb//appdirs-1.4.3-py2.py3-none-any.whl Installing collected packages: appdirs Successfully installed appdirs-1.4.3
>pip install fs Collecting fs Downloading https://files.pythonhosted.org/packages/44/b6//fs-2.4.11-py2.py3-none-any.whl (127kB) Requirement already satisfied: setuptools in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs) (42.0.2.post20191203) Requirement already satisfied: six~=1.10 in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs) (1.13.0) Requirement already satisfied: pytz in c:\users\m_fuj\.conda\envs\fontdev\lib\site-packages (from fs) (2019.3) Requirement already satisfied: appdirs~=1.4.3 in c:\users\m_fuj\.conda\envs\fontdev\lib\site-packages (from fs) (1.4.3) Installing collected packages: fs Successfully installed fs-2.4.11
>pip install fonttools Collecting fonttools Downloading https://files.pythonhosted.org/packages/50/6a//fonttools-4.2.1-py3-none-any.whl (725kB) Installing collected packages: fonttools Successfully installed fonttools-4.2.1
(Dev) C:\Users\m_fuj\Doc\GitHub\cu2qu >pip install --global-option="--with-cython" -e . C:\Users\m_fuj\.conda\envs\Dev\lib\site-packages\pip\_internal\commands\install.py:283: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options. cmdoptions.check_install_build_global(options) Obtaining file:///C:/Users/m_fuj/Doc/GitHub/cu2qu Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Requirement already satisfied: fonttools[ufo]>=3.32.0 in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from cu2qu==1.6.7.dev3+g3bd978b) (4.2.1) Requirement already satisfied: fs<3,>=2.2.0; extra == "ufo" in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (2.4.11) Requirement already satisfied: appdirs~=1.4.3 in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs<3,>=2.2.0; extra == "ufo"->fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (1.4.3) Requirement already satisfied: six~=1.10 in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs<3,>=2.2.0; extra == "ufo"->fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (1.13.0) Requirement already satisfied: pytz in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs<3,>=2.2.0; extra == "ufo"->fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (2019.3) Requirement already satisfied: setuptools in c:\users\m_fuj\.conda\envs\dev\lib\site-packages (from fs<3,>=2.2.0; extra == "ufo"->fonttools[ufo]>=3.32.0->cu2qu==1.6.7.dev3+g3bd978b) (42.0.2.post20191203) Installing collected packages: cu2qu Running setup.py develop for cu2qu Successfully installed cu2qu