zplab / zbar-py

Simple python 2 and 3 compatible interface to the zbar barcode-reading library
MIT License
82 stars 30 forks source link

ImportError: No module named zbar #13

Closed ilker-bekmezci closed 5 years ago

ilker-bekmezci commented 5 years ago

I installed iconv and then zbar-py (pip install zbar-py). And then I write import zbar into y code. However, python cannot recognize the library.

The error is simple: Traceback (most recent call last): File "C:\Python27\GDrive\LAB\QRCODE_Read.py", line 16, in import zbar ImportError: No module named zbar

What can be the source of the error?

zpincus commented 5 years ago

This is not giving me a lot to go on. Please provide more information. Did the pip install command complete successfully? Could you include the output of that command?

How did you invoke the above script (QRCODE_Read.py) that led to the error?

Is it possible that you have multiple versions of python installed and that you used pip to install zbar into a different python version than was used in the script?