NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
724 stars 175 forks source link

For people having issues importing DLLs when having pip == 20.0.0 or 20.0.1 #73

Closed studioj closed 4 years ago

studioj commented 4 years ago

Its not a pyzbar issue but this was the best location i could think of posting this debug information.

PIP version 20.0.1 and version 20.0.0 have this issue see this issue https://github.com/pypa/pip/issues/7636

pip is not installing the right wheels

to resolve do python -m pip install pip==19.3.1 edit: the issue now has been fixed in pip so you can also do

python -m pip install pip --upgrade

and then

python -m pip uninstall pyzbar python -m pip install pyzbar

Swoy commented 4 years ago

Hello,

I followed your instruction, but I still get FileNotFoundError: Could not find module 'libiconv.dll' (or one of its dependencies). Try using the full path with constructor syntax. and FileNotFoundError: Could not find module 'MY\PATH.venv\lib\site-packages\pyzbar\libzbar-64.dll' (or one of its dependencies). Try using the full path with constructor syntax.

I installed zbar before I did this.

Any ideas?

dabure commented 4 years ago

Hi @Swoy, I experienced the same issue as you and solved it by following the instructions at https://github.com/NaturalHistoryMuseum/pyzbar/issues/13#issuecomment-372104020.

studioj commented 4 years ago

Issue can be closed since it was actually a pip issue