Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

ModuleNotFoundError: No module named 'zbar'

0 votes

While trying to use zbar instead of cv2.QRCodeDetector() to read qrcodes,

the following line in my python script

import zbar

triggers at runtime

ModuleNotFoundError: No module named 'zbar'

However, looking into the source of the modules/JeVois/DemoQRcode/DemoQRcode.C, I can see that it uses zbar in this cpp module.

It's just that the zbar python wrappers are missing. and i'm still unable to add such binding (again i'm stuck on the 'no pip install' on JeVois)

this readme https://github.com/jevois/jevoisbase/tree/master/Contrib

makes me suspect that just deleting '--without-python' in the ./configure may be enough.

Can zbar python module be bundled in the next JeVois release pls?

asked Mar 12, 2019 in User questions by fourchette (580 points)

1 Answer

0 votes
Yes, I think it's time for you to switch to C++, your life will be much easier since all the libs you want are written in C/C++ anyway.

We will look into it. Right now we just compile some of the zbar source files directly into libjevjoisbase. This is because the zbar distro that came on buildroot at the time did not work for as many types of barcodes. But maybe it works better now. If so, we will get zbar installed system-wide by buildroot (including python bindings) and then we will just link to it as opposed to compiling some of it into libjevjoisbase.
answered Mar 13, 2019 by JeVois (46,580 points)