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

Installing error on windows #2

Open
averov90 opened this issue Jul 27, 2020 · 0 comments
Open

Installing error on windows #2

averov90 opened this issue Jul 27, 2020 · 0 comments

Comments

@averov90
Copy link

Hello, when trying to install via pip the following error occurs:

Output of the installation command PS C:\Users\user> pip install https://github.com/jfjlaros/demultiplex/archive/v1.1.0.tar.gz Defaulting to user installation because normal site-packages is not writeable Collecting https://github.com/jfjlaros/demultiplex/archive/v1.1.0.tar.gz Using cached https://github.com/jfjlaros/demultiplex/archive/v1.1.0.tar.gz Collecting biopython==1.72 Downloading biopython-1.72.tar.gz (16.4 MB) |████████████████████████████████| 16.4 MB 6.4 MB/s Collecting dict-trie==1.0.1 Downloading dict-trie-1.0.1.tar.gz (3.3 kB) Collecting jit-open==0.0.4 Downloading jit-open-0.0.4.tar.gz (3.3 kB) Collecting tssv==1.0.3 Downloading tssv-1.0.3.tar.gz (11 kB) Requirement already satisfied: numpy in c:\users\user\appdata\roaming\python\python38\site-packages (from biopython==1.7 2->demultiplex==1.1.0) (1.19.1) Collecting configparser==3.5.0 Downloading configparser-3.5.0.tar.gz (39 kB) Collecting fastools==1.0.1 Downloading fastools-1.0.1.tar.gz (9.8 kB) Collecting python-Levenshtein==0.12.0 Downloading python-Levenshtein-0.12.0.tar.gz (48 kB) |████████████████████████████████| 48 kB 3.2 MB/s Collecting requests==2.19.1 Downloading requests-2.19.1-py2.py3-none-any.whl (91 kB) |████████████████████████████████| 91 kB 1.9 MB/s Requirement already satisfied: setuptools in c:\program files\python38\lib\site-packages (from python-Levenshtein==0.12. 0->tssv==1.0.3->demultiplex==1.1.0) (47.1.0) Collecting idna<2.8,>=2.5 Downloading idna-2.7-py2.py3-none-any.whl (58 kB) |████████████████████████████████| 58 kB 3.8 MB/s Collecting certifi>=2017.4.17 Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB) |████████████████████████████████| 156 kB 3.3 MB/s Collecting urllib3<1.24,>=1.21.1 Downloading urllib3-1.23-py2.py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 2.2 MB/s Collecting chardet<3.1.0,>=3.0.2 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) |████████████████████████████████| 133 kB 3.3 MB/s Building wheels for collected packages: demultiplex, biopython, dict-trie, jit-open, tssv, configparser, fastools, pytho n-Levenshtein Building wheel for demultiplex (setup.py) ... done Created wheel for demultiplex: filename=demultiplex-1.1.0-py3-none-any.whl size=7188 sha256=7f424bc4326bfc593783ef309a f1f945d1af7b7ccc1520376ce616b8f5109a03 Stored in directory: C:\Users\user\AppData\Local\Temp\pip-ephem-wheel-cache-m7bg2xtc\wheels\65\95\dd\1e43d6a821c66a3f5 1a8d2056653b61f5a809899a7c007ee57 Building wheel for biopython (setup.py) ... done Created wheel for biopython: filename=biopython-1.72-cp38-cp38-win_amd64.whl size=2100692 sha256=c90d662afca4707dfc672 ce147676b435b8a45d6567994e7a4228aa73a0b8c98 Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\24\3e\e9\4ce9aa75b23cc70a6982341802adeee94df65995dc7 fb8b219 Building wheel for dict-trie (setup.py) ... done Created wheel for dict-trie: filename=dict_trie-1.0.1-py3-none-any.whl size=3712 sha256=c0c78421cf09f3d5db2400222be744 97caa47cd32647e2f43bcefd59e1372fdf Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\25\14\97\dfbc71cc4aa2535339270a15f3131ab98241ae4da45 1f66c4d Building wheel for jit-open (setup.py) ... done Created wheel for jit-open: filename=jit_open-0.0.4-py3-none-any.whl size=3116 sha256=19af8671df421a66ed35f702b6cf28c7 da6d11471f1e6cadebde9416bf8d6cb7 Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\52\d2\d2\2994c80aea870015f1a51ab79b41a131e874b86fc62 cbdcb5a Building wheel for tssv (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users \\user\\AppData\\Local\\Temp\\pip-install-6lq1pn_d\\tssv\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\ Temp\\pip-install-6lq1pn_d\\tssv\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replac e('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\user\A ppData\Local\Temp\pip-wheel-4ej8dmum' cwd: C:\Users\user\AppData\Local\Temp\pip-install-6lq1pn_d\tssv\ Complete output (39 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\tssv copying tssv\align_pair.py -> build\lib.win-amd64-3.8\tssv copying tssv\cli.py -> build\lib.win-amd64-3.8\tssv copying tssv\tssv.py -> build\lib.win-amd64-3.8\tssv copying tssv\__init__.py -> build\lib.win-amd64-3.8\tssv package init file 'extras\annotate\__init__.py' not found (or not a regular file) creating build\lib.win-amd64-3.8\tssv_extras copying extras\annotate\annotate.py -> build\lib.win-amd64-3.8\tssv_extras copying tssv\setup.cfg -> build\lib.win-amd64-3.8\tssv copying tssv\sgAlign.h -> build\lib.win-amd64-3.8\tssv copying tssv\sgAlignSSE.h -> build\lib.win-amd64-3.8\tssv running build_ext building 'tssv.sg_align' extension creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\tssv C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nol ogo /Ox /W3 /GL /DNDEBUG /MD "-Ic:\program files\python38\include" "-Ic:\program files\python38\include" "-IC:\Program F iles (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows K its\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program F iles (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt " "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tctssv/sgAlignWrapper.c /Fobuild\temp.win-am d64-3.8\Release\tssv/sgAlignWrapper.obj -O3 cl : Command line warning D9002 : ignoring unknown option '-O3' sgAlignWrapper.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nol ogo /Ox /W3 /GL /DNDEBUG /MD "-Ic:\program files\python38\include" "-Ic:\program files\python38\include" "-IC:\Program F iles (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows K its\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program F iles (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt " "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tctssv/sgAlign.c /Fobuild\temp.win-amd64-3.8 \Release\tssv/sgAlign.obj -O3 cl : Command line warning D9002 : ignoring unknown option '-O3' sgAlign.c tssv/sgAlign.c(34): error C2057: expected constant expression tssv/sgAlign.c(34): error C2466: cannot allocate an array of constant size 0 tssv/sgAlign.c(42): error C2036: 'int (*)[0]': unknown size tssv/sgAlign.c(58): error C2057: expected constant expression tssv/sgAlign.c(58): error C2466: cannot allocate an array of constant size 0 tssv/sgAlign.c(67): error C2036: 'int (*)[0]': unknown size tssv/sgAlign.c(81): error C2057: expected constant expression tssv/sgAlign.c(81): error C2466: cannot allocate an array of constant size 0 tssv/sgAlign.c(94): error C2036: 'int (*)[0]': unknown size tssv/sgAlign.c(108): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data tssv/sgAlign.c(109): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\bin\\ HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Failed building wheel for tssv Running setup.py clean for tssv Building wheel for configparser (setup.py) ... done Created wheel for configparser: filename=configparser-3.5.0-py3-none-any.whl size=20945 sha256=a987426c3f84ed569a14f08 5c84fcf05d1b5d8e6ea9c26eabe9fe2f4d620f61e Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\5d\e3\bb\8b1c37164107de95ec6b43136ffe01685b8d32dfb04 40760ef Building wheel for fastools (setup.py) ... done Created wheel for fastools: filename=fastools-1.0.1-py3-none-any.whl size=12495 sha256=09ef8c85685d61b5e0cf82c7f9b46be 8a346f50388f862513abf535c5c663cf0 Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\66\0a\c7\3994ef540043dca87090ffc2fa87fbb4d593eb87058 c5826ce Building wheel for python-Levenshtein (setup.py) ... done Created wheel for python-Levenshtein: filename=python_Levenshtein-0.12.0-cp38-cp38-win_amd64.whl size=82268 sha256=fb7 6f0068d2b0d55dbd99465fe56450a4554acd0093b1a333e566384626e8d23 Stored in directory: c:\users\user\appdata\local\pip\cache\wheels\a8\da\22\2970e270912ba623ccac7d516b7411a820c8f2b4252 463a605 Successfully built demultiplex biopython dict-trie jit-open configparser fastools python-Levenshtein Failed to build tssv Installing collected packages: biopython, dict-trie, jit-open, configparser, python-Levenshtein, fastools, idna, certifi , urllib3, chardet, requests, tssv, demultiplex WARNING: The scripts fastools.exe and split_fasta.exe are installed in 'C:\Users\user\AppData\Roaming\Python\Python38\ Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script chardetect.exe is installed in 'C:\Users\user\AppData\Roaming\Python\Python38\Scripts' which is no t on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Running setup.py install for tssv ... error ERROR: Command errored out with exit status 1: command: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Use rs\\user\\AppData\\Local\\Temp\\pip-install-6lq1pn_d\\tssv\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local \\Temp\\pip-install-6lq1pn_d\\tssv\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().repl ace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\us er\AppData\Local\Temp\pip-record-fye2wylk\install-record.txt' --single-version-externally-managed --user --prefix= --com pile --install-headers 'C:\Users\user\AppData\Roaming\Python\Python38\Include\tssv' cwd: C:\Users\user\AppData\Local\Temp\pip-install-6lq1pn_d\tssv\ Complete output (39 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\tssv copying tssv\align_pair.py -> build\lib.win-amd64-3.8\tssv copying tssv\cli.py -> build\lib.win-amd64-3.8\tssv copying tssv\tssv.py -> build\lib.win-amd64-3.8\tssv copying tssv\__init__.py -> build\lib.win-amd64-3.8\tssv package init file 'extras\annotate\__init__.py' not found (or not a regular file) creating build\lib.win-amd64-3.8\tssv_extras copying extras\annotate\annotate.py -> build\lib.win-amd64-3.8\tssv_extras copying tssv\setup.cfg -> build\lib.win-amd64-3.8\tssv copying tssv\sgAlign.h -> build\lib.win-amd64-3.8\tssv copying tssv\sgAlignSSE.h -> build\lib.win-amd64-3.8\tssv running build_ext building 'tssv.sg_align' extension creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\tssv C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /n ologo /Ox /W3 /GL /DNDEBUG /MD "-Ic:\program files\python38\include" "-Ic:\program files\python38\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\win rt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tctssv/sgAlignWrapper.c /Fobuild\temp.win- amd64-3.8\Release\tssv/sgAlignWrapper.obj -O3 cl : Command line warning D9002 : ignoring unknown option '-O3' sgAlignWrapper.c C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /n ologo /Ox /W3 /GL /DNDEBUG /MD "-Ic:\program files\python38\include" "-Ic:\program files\python38\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\win rt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /Tctssv/sgAlign.c /Fobuild\temp.win-amd64-3 .8\Release\tssv/sgAlign.obj -O3 cl : Command line warning D9002 : ignoring unknown option '-O3' sgAlign.c tssv/sgAlign.c(34): error C2057: expected constant expression tssv/sgAlign.c(34): error C2466: cannot allocate an array of constant size 0 tssv/sgAlign.c(42): error C2036: 'int (*)[0]': unknown size tssv/sgAlign.c(58): error C2057: expected constant expression tssv/sgAlign.c(58): error C2466: cannot allocate an array of constant size 0 tssv/sgAlign.c(67): error C2036: 'int (*)[0]': unknown size tssv/sgAlign.c(81): error C2057: expected constant expression tssv/sgAlign.c(81): error C2466: cannot allocate an array of constant size 0 tssv/sgAlign.c(94): error C2036: 'int (*)[0]': unknown size tssv/sgAlign.c(108): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data tssv/sgAlign.c(109): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.26.28801\\bin \\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tok enize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-6lq1pn_d\\tssv\\setup.py'"'"'; __file__='"' "'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-6lq1pn_d\\tssv\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', o pen)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"' ))' install --record 'C:\Users\user\AppData\Local\Temp\pip-record-fye2wylk\install-record.txt' --single-version-external ly-managed --user --prefix= --compile --install-headers 'C:\Users\user\AppData\Roaming\Python\Python38\Include\tssv' Che ck the logs for full command output.

If I try to install according to the instructions, I get the following:

Output of the installation command C:\Users\user\Downloads\pydemux-1.0>python setup.py install running install running build running build_py running build_ext building 'PyDemux._demux' extension C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.2 6.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Python38\include" "-IC:\Program Files\Python38\include" "-IC:\Program Fil es (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\includ e" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Pr ogram Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Fil es (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Wind ows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\1 0\include\10.0.17763.0\cppwinrt" /Tc_demux.c /Fobuild\temp.win-amd64-3.8\Release \_demux.obj _demux.c C:\Users\user\Downloads\pydemux-1.0\_demux.h(5): fatal error C1083: Cannot open include file: 'libavutil/imgutils.h': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Communit y\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit sta tus 2

Operating system - windows, visual studio build tools and windows sdk are installed. In General, everything is need for a successful dlib build is installed. By the way, ffmpeg-python was installed successfully by pip.

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

No branches or pull requests

1 participant