Unable to install Brotli 1.0.9 package

847 views
Skip to first unread message

krishnak...@gmail.com

unread,
Nov 8, 2020, 12:25:43 AM11/8/20
to Brotli
Hi

I am unable to install Dash on python 2.7.16 as the installation process stops at the error received at Brotli installation stage.

Versions:
1. Windows 10
2. Python 2.7.16

The following steps were completed:

1. pip install dash --> This asked me to install Microsoft Visual C++ from http://aka.ms/vcpython27
2. Downloaded and Installed Microsoft Visual C++ from http://aka.ms/vcpython27
3. Again performed pip install dash and the execution ends with errors. Below is the complete log




PS H:\>
pip install dash


Collecting dash
  Using cached https://files.pythonhosted.org/packages/69/91/ae029886dda55b93b60ac04377bcb2ab9209dd73244e3b5e513124cc6778/dash-1.17.0.tar.gz
Requirement already satisfied: Flask>=1.0.2 in c:\python27\lib\site-packages (from dash) (1.1.2)
Collecting flask-compress (from dash)
  Using cached https://files.pythonhosted.org/packages/eb/33/7bcfc1d240bf4cf701cc742716a3af95b9df5b26d605559ea029b6ffa04f/Flask-Compress-1.8.0.tar.gz
Collecting plotly (from dash)
  Using cached https://files.pythonhosted.org/packages/a6/66/af86e9d9bf1a3e4f2dabebeabd02a32e8ddf671a5d072b3af2b011efea99/plotly-4.12.0-py2.py3-none-any.whl
Collecting dash_renderer==1.8.3 (from dash)
  Using cached https://files.pythonhosted.org/packages/72/fe/59a322edb128ad15205002c7b81e3f5e580f6791c4a100183289e05dbfcb/dash_renderer-1.8.3.tar.gz
Collecting dash-core-components==1.13.0 (from dash)
  Using cached https://files.pythonhosted.org/packages/52/48/3dd8c7bf93cff3a9dd9d360bc25c4ec0cb191acdce13375c3ff85f98e992/dash_core_components-1.13.0.tar.gz
Collecting dash-html-components==1.1.1 (from dash)
  Using cached https://files.pythonhosted.org/packages/02/ba/bb9427c62feb25bfbaf243894eeeb4e7c67a92b426ed0575a167100e436e/dash_html_components-1.1.1.tar.gz
Collecting dash-table==4.11.0 (from dash)
  Using cached https://files.pythonhosted.org/packages/bb/46/cc839f897cabea3f584cf59ce9d86a5ea3828e54eefe2537ba8b640a9707/dash_table-4.11.0.tar.gz
Collecting future (from dash)
  Using cached https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz
Requirement already satisfied: click>=5.1 in c:\python27\lib\site-packages (from Flask>=1.0.2->dash) (7.1.2)
Requirement already satisfied: Werkzeug>=0.15 in c:\python27\lib\site-packages (from Flask>=1.0.2->dash) (1.0.1)
Requirement already satisfied: itsdangerous>=0.24 in c:\python27\lib\site-packages (from Flask>=1.0.2->dash) (1.1.0)
Requirement already satisfied: Jinja2>=2.10.1 in c:\python27\lib\site-packages (from Flask>=1.0.2->dash) (2.11.2)
Collecting brotli (from flask-compress->dash)
  Using cached https://files.pythonhosted.org/packages/2a/18/70c32fe9357f3eea18598b23aa9ed29b1711c3001835f7cf99a9818985d0/Brotli-1.0.9.zip
Requirement already satisfied: six in c:\python27\lib\site-packages (from plotly->dash) (1.15.0)
Collecting retrying>=1.3.3 (from plotly->dash)
  Using cached https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz
Requirement already satisfied: MarkupSafe>=0.23 in c:\python27\lib\site-packages (from Jinja2>=2.10.1->Flask>=1.0.2->dash) (1.1.1)
Installing collected packages: brotli, flask-compress, retrying, plotly, dash-renderer, dash-core-components, dash-html-components, dash-table, future, dash
  Running setup.py install for brotli ... error
    Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\karthik\\appdata\\local\\temp\\pip-install-jydxbv\\brotli\\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\karthik\appdata\local\temp\pip-record-wmmxh_\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating bin
    creating bin\lib.win-amd64-2.7
    copying python\brotli.py -> bin\lib.win-amd64-2.7
    running build_ext
    building '_brotli' extension
    creating bin\temp.win-amd64-2.7
    creating bin\temp.win-amd64-2.7\Release
    creating bin\temp.win-amd64-2.7\Release\c
    creating bin\temp.win-amd64-2.7\Release\c\common
    creating bin\temp.win-amd64-2.7\Release\c\dec
    creating bin\temp.win-amd64-2.7\Release\c\enc
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/common/constants.c /Fobin\temp.win-amd64-2.7\Release\c/common/constants.obj
    constants.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/common/context.c /Fobin\temp.win-amd64-2.7\Release\c/common/context.obj
    context.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/common/dictionary.c /Fobin\temp.win-amd64-2.7\Release\c/common/dictionary.obj
    dictionary.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/common/platform.c /Fobin\temp.win-amd64-2.7\Release\c/common/platform.obj
    platform.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/common/transform.c /Fobin\temp.win-amd64-2.7\Release\c/common/transform.obj
    transform.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/dec/bit_reader.c /Fobin\temp.win-amd64-2.7\Release\c/dec/bit_reader.obj
    bit_reader.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/dec/decode.c /Fobin\temp.win-amd64-2.7\Release\c/dec/decode.obj
    decode.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/dec/huffman.c /Fobin\temp.win-amd64-2.7\Release\c/dec/huffman.obj
    huffman.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/dec/state.c /Fobin\temp.win-amd64-2.7\Release\c/dec/state.obj
    state.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/backward_references.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj
    backward_references.c
    c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/backward_references_hq.c /Fobin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj
    backward_references_hq.c
    c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/bit_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj
    bit_cost.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/block_splitter.c /Fobin\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj
    block_splitter.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/brotli_bit_stream.c /Fobin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj
    brotli_bit_stream.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/cluster.c /Fobin\temp.win-amd64-2.7\Release\c/enc/cluster.obj
    cluster.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/command.c /Fobin\temp.win-amd64-2.7\Release\c/enc/command.obj
    command.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/compress_fragment.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj
    compress_fragment.c
    c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/compress_fragment_two_pass.c /Fobin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj
    compress_fragment_two_pass.c
    c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/dictionary_hash.c /Fobin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj
    dictionary_hash.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encode.obj
    encode.c
    c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/encoder_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj
    encoder_dict.c
    c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/entropy_encode.c /Fobin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj
    entropy_encode.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/fast_log.c /Fobin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj
    fast_log.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/histogram.c /Fobin\temp.win-amd64-2.7\Release\c/enc/histogram.obj
    histogram.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/literal_cost.c /Fobin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj
    literal_cost.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/memory.c /Fobin\temp.win-amd64-2.7\Release\c/enc/memory.obj
    memory.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/metablock.c /Fobin\temp.win-amd64-2.7\Release\c/enc/metablock.obj
    metablock.c
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tcc/enc/static_dict.c /Fobin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj
    static_dict.c
    c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\c\enc\./find_match_length.h(34) : warning C4013: '_tzcnt_u64' undefined; assuming extern returning int
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -
Ic:\python27\PC /Tcc/enc/utf8_util.c /Fobin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj
    utf8_util.c
    creating bin\temp.win-amd64-2.7\Release\python
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ic/include -Ic:\python27\include -Ic:\python27\PC /Tppython/_brotli.cc /Fobin\temp.win-amd64-2.7\Release\python/_brotli.obj /EHsc
    _brotli.cc
    C:\Users\karthik\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\python27\libs /LIBPATH:c:\python27\PCbuild\amd64 /LIBPATH:c:\python27\PC\VS9.0\amd64 /EXPORT:init_brotli bin\temp.win-amd64-2.7\Release\c/common/constants.obj bin\temp.win-amd64-2.7\Release\c/common/context.o
bj bin\temp.win-amd64-2.7\Release\c/common/dictionary.obj bin\temp.win-amd64-2.7\Release\c/common/platform.obj bin\temp.win-amd64-2.7\Release\c/common/transform.obj bin\temp.win-a
md64-2.7\Release\c/dec/bit_reader.obj bin\temp.win-amd64-2.7\Release\c/dec/decode.obj bin\temp.win-amd64-2.7\Release\c/dec/huffman.obj bin\temp.win-amd64-2.7\Release\c/dec/state.o
bj bin\temp.win-amd64-2.7\Release\c/enc/backward_references.obj bin\temp.win-amd64-2.7\Release\c/enc/backward_references_hq.obj bin\temp.win-amd64-2.7\Release\c/enc/bit_cost.obj b
in\temp.win-amd64-2.7\Release\c/enc/block_splitter.obj bin\temp.win-amd64-2.7\Release\c/enc/brotli_bit_stream.obj bin\temp.win-amd64-2.7\Release\c/enc/cluster.obj bin\temp.win-amd
64-2.7\Release\c/enc/command.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment.obj bin\temp.win-amd64-2.7\Release\c/enc/compress_fragment_two_pass.obj bin\temp.win-amd64-2.7\Release\c/enc/dictionary_hash.obj bin\temp.win-amd64-2.7\Release\c/enc/encode.obj bin\temp.win-amd64-2.7\Release\c/enc/encoder_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/entropy_encode.obj bin\temp.win-amd64-2.7\Release\c/enc/fast_log.obj bin\temp.win-amd64-2.7\Release\c/enc/histogram.obj bin\temp.win-amd64-2.7\Release\c/enc/literal_cost.obj bin\temp.win-amd64-2.7\Release\c/enc/memory.obj bin\temp.win-amd64-2.7\Release\c/enc/metablock.obj bin\temp.win-amd64-2.7\Release\c/enc/static_dict.obj bin\temp.win-amd64-2.7\Release\c/enc/utf8_util.obj bin\temp.win-amd64-2.7\Release\python/_brotli.obj /OUT:bin\lib.win-amd64-2.7\_brotli.pyd /IMPLIB:bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib /MANIFESTFILE:bin\temp.win-amd64-2.7\Release\c/common\_brotli.pyd.manifest
    _brotli.obj : warning LNK4197: export 'init_brotli' specified multiple times; using first specification
       Creating library bin\temp.win-amd64-2.7\Release\c/common\_brotli.lib and object bin\temp.win-amd64-2.7\Release\c/common\_brotli.exp
    encode.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    static_dict.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    backward_references.obj : error LNK2019: unresolved external symbol _tzcnt_u64 referenced in function FindMatchLengthWithLimit
    backward_references_hq.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    compress_fragment.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    compress_fragment_two_pass.obj : error LNK2001: unresolved external symbol _tzcnt_u64
    bin\lib.win-amd64-2.7\_brotli.pyd : fatal error LNK1120: 1 unresolved externals
    error: command 'C:\\Users\\karthik\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\link.exe' failed with exit status 1120


    ----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\karthik\\appdata\\local\\temp\\pip-install-jydxbv\\brotli\\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\karthik\appdata\local\temp\pip-record-wmmxh_\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\karthik\appdata\local\temp\pip-install-jydxbv\brotli\

PS H:\>


Requesting some guidance from you.

Thanks and Regards
Karthik

eus...@google.com

unread,
Dec 21, 2020, 10:58:04 AM12/21/20
to Brotli
The problem is fixed in master. Going release 1.0.10 soon...
Reply all
Reply to author
Forward
0 new messages