google / brotli

Brotli compression format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import problem

ironthehorse77 opened this issue · comments

I installed Brotli 1.0.7 with pip, but can't use it because python drop this import error.

import _brotli
builtins.ImportError: DLL load failed: The specified module could not be found.

What need to install to work this under windows?

what operating system are you on? What Python distribution are you using (ie. where did you get python from)? What version of Python?

Windows 10 Pro, python 3.7 64bit from python.org

strange, it should just work. Is your python directory in the %PATH%?

try to drop the _brotli.pyd module in http://www.dependencywalker.com/ and verify that all its DLL dependencies are satisfied.

Maybe you're system is missing the visual c++ redistributable DLLs (though I think python itself should come with one).
You said 64-bit, try to install the current "vc_redist.x64.exe" from this link
https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

Redis helped. Thousand thanks.

Hey im still having this problem not fixed for me even after i installed the visual c++ redistributable

Installing vc_redist.x64.exe solved the problem for me. Nevertheless this is a bit cumbersome in a python project to tell everyone using windows that the brotli dependency requires them to install that thing (new installed windows 10 doesnt have it).