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

cannot install brotli bindings on Python 2.7 anymore #848

Open
jjnurminen opened this issue Sep 25, 2020 · 7 comments
Open

cannot install brotli bindings on Python 2.7 anymore #848

jjnurminen opened this issue Sep 25, 2020 · 7 comments

Comments

@jjnurminen
Copy link

Hi,

I cannot install brotli from PyPi any more, though seemingly it should still support Python 2.7. I can reproduce by creating a conda environment:

conda create -n py27 python=2.7

Saying pip install brotli first tells me to install Visual C++ from http://aka.ms/vcpython27. However, after installing that and trying again, I get the following during compilation:

 _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

I'm on Windows 10, 64-bit Python. Any hints are appreciated.

@jjnurminen
Copy link
Author

jjnurminen commented Sep 25, 2020

Seems to be related to the fact that the Windows Python 2.7/AMD64 binary wheel is not on PyPi any more, so pip tries to build it from source (and fails).

@eustas
Copy link
Collaborator

eustas commented Sep 27, 2020

The problem has been recently fixed. Soon I will make 1.0.10 release to fix this problem in PyPi

@jjnurminen
Copy link
Author

@eustas sounds good, thanks.

@Antoine-Sc
Copy link

Hi,

I have the same problem by setting up esp-idf.
How did you fix the problem ? Which version of brotli ?

@jjnurminen
Copy link
Author

@Antoine-Sc if you install brotli 1.0.7, you will still get the binary wheel.

@Antoine-Sc
Copy link

Ok. It did not work for me. I'm trying to find out why

@GitMensch
Copy link

brotli 1.1 is out so this may be closed-fixed; if this issue is unexpectedly not fixed by this I'd suggest to close-not-planned as Python2 is much less relevant in 2024 than it was in 2020 and it would possibly useful to drop anything that is explicit done to support Python2.

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

4 participants