Import problem #299

Closed
opened 2026-01-29 20:41:37 +00:00 by claunia · 6 comments
Owner

Originally created by @ironthehorse77 on GitHub (Nov 28, 2019).

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?

Originally created by @ironthehorse77 on GitHub (Nov 28, 2019). 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?
Author
Owner

@anthrotype commented on GitHub (Nov 28, 2019):

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

@anthrotype commented on GitHub (Nov 28, 2019): what operating system are you on? What Python distribution are you using (ie. where did you get python from)? What version of Python?
Author
Owner

@ironthehorse77 commented on GitHub (Nov 28, 2019):

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

@ironthehorse77 commented on GitHub (Nov 28, 2019): Windows 10 Pro, python 3.7 64bit from python.org
Author
Owner

@anthrotype commented on GitHub (Nov 28, 2019):

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

@anthrotype commented on GitHub (Nov 28, 2019): 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
Author
Owner

@ironthehorse77 commented on GitHub (Nov 28, 2019):

Redis helped. Thousand thanks.

@ironthehorse77 commented on GitHub (Nov 28, 2019): Redis helped. Thousand thanks.
Author
Owner

@1trackprojects1 commented on GitHub (Nov 30, 2021):

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

@1trackprojects1 commented on GitHub (Nov 30, 2021): Hey im still having this problem not fixed for me even after i installed the visual c++ redistributable
Author
Owner

@dobin commented on GitHub (Jun 25, 2023):

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).

@dobin commented on GitHub (Jun 25, 2023): 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).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#299