Open giacomomarchioro opened 3 years ago
I had the same issue, till I read all the README and then I found:
Windows error message If you see an ugly ImportError when importing pyzbar on Windows you will most likely need the Visual C++ Redistributable Packages for Visual Studio 2013. Install vcredist_x64.exe if using 64-bit Python, vcredist_x86.exe if using 32-bit Python.
Installing vcredist_x64.exe solved the issue for me.
For others finding this the link (for me at the moment) for the redistributables is https://www.microsoft.com/en-gb/download/details.aspx?id=40784
For others finding this the link (for me at the moment) for the redistributables is https://www.microsoft.com/en-gb/download/details.aspx?id=40784
It was already installed on my system. I was getting the same error when installing from conda (conda install -c conda-forge pyzbar
). What solved for me was to uninstall the conda package (conda remove -c conda-forge pyzbar
) and install pyzbar through pip (pip install pyzbar
).
Since using pip inside a conda env is not recommended, I grabbed the DLL files (libiconv.dll
and libzbar-64.dll
) from the pip installation, uninstalled the pip package (pip uninstall pyzbar
), installed pyzbar again from conda-forge, and pasted the DLL files into the folder shown in the error message.
That said, how can those DLL files be included in the conda-forge installation?
I had the same issue, till I read all the README and then I found:
Windows error message If you see an ugly ImportError when importing pyzbar on Windows you will most likely need the Visual C++ Redistributable Packages for Visual Studio 2013. Install vcredist_x64.exe if using 64-bit Python, vcredist_x86.exe if using 32-bit Python.
Installing vcredist_x64.exe solved the issue for me.
Thanks mate, it solved me.
This doesn't seem to be the case always.
I installed the package from pypi and then it worked... I have vcredist installed and it still gave the error.
Conda allows one to resolve such dependencies (as opposed to pypi) so maybe this could use some investigation?
What I mean it is kind of bizzare to see pypi version work and the conda one not (usually it is the other way around).
vcredist_x64.exe if using 64-bit Python
This help me a lot
For others finding this the link (for me at the moment) for the redistributables is https://www.microsoft.com/en-gb/download/details.aspx?id=40784
thats work
For others finding this the link (for me at the moment) for the redistributables is https://www.microsoft.com/en-gb/download/details.aspx?id=40784
It was already installed on my system. I was getting the same error when installing from conda (
conda install -c conda-forge pyzbar
). What solved for me was to uninstall the conda package (conda remove -c conda-forge pyzbar
) and install pyzbar through pip (pip install pyzbar
).Since using pip inside a conda env is not recommended, I grabbed the DLL files (
libiconv.dll
andlibzbar-64.dll
) from the pip installation, uninstalled the pip package (pip uninstall pyzbar
), installed pyzbar again from conda-forge, and pasted the DLL files into the folder shown in the error message.That said, how can those DLL files be included in the conda-forge installation?
I spent hours to solving the problem and this worked. Thanks a lot. However, the interesting thing is why these files were not downloaded when installation with conda
vcredist_x64.exe method worked for me
if you've already installed the pyzbr library, first uninstall (pip uninstall pyzbar) & then download the vcredist_x64.exe and install it
метод установки файла vcredist_x64.exe сработал у меня. Спасибо
i get this error and fix it with https://www.microsoft.com/en-gb/download/details.aspx?id=40784 but uninstall pyzbar before!! if not do uninstall, its not work
yes its works man, thanks buddy "If you have this error download and install ms visual C++ 2013 "
I had the same issue, till I read all the README and then I found:
Windows error message If you see an ugly ImportError when importing pyzbar on Windows you will most likely need the Visual C++ Redistributable Packages for Visual Studio 2013. Install vcredist_x64.exe if using 64-bit Python, vcredist_x86.exe if using 32-bit Python.
Installing vcredist_x64.exe solved the issue for me.
完美解决了
thankkkk
downloading this solved my issue. https://www.microsoft.com/en-US/download/details.aspx?id=40784
For others finding this the link (for me at the moment) for the redistributables is https://www.microsoft.com/en-gb/download/details.aspx?id=40784
Thanks bro! ♥
My issue is also solved by installing vcredist_x64.exe this, Thank you :)
x64 12.0.40664 Microsoft.VCRedist.2013.x64 try to install this specific version https://gist.github.com/ChuckMichael/7366c38f27e524add3c54f710678c98b
Thank you kind sir
Thanks for this wonderful tool.
I am using Python 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)] on Windows 10.
After pip installing pyzbar I have got the following dll import errors:
anaconda3\lib\site-packages\pyzbar\
conatins both .dll (libiconv and libzbar-64). I have tried`os.add_dll_directory(r"C:\Users\xxxxx\anaconda3\lib\site-packages\pyzbar")
` But it does not solve the issue.
Can you help me please?
Best regards, giacomo