kivy-garden / zbarcam

Real time Barcode and QR Code scanner
MIT License
129 stars 33 forks source link

Not working on pydroid3 #52

Open ratherdullpoet opened 3 years ago

ratherdullpoet commented 3 years ago

Kivy camera works fine. kivy_garden.zbarcam installed still getting

AttributeError: module 'kivy_garden' has no attribute 'zbarcam'

Please help.

AndreMiras commented 3 years ago

Please provide more information such as platform and installation method so we can help out

ratherdullpoet commented 3 years ago

Sir, I am using it on android on pydroid 3 (the python on android thing). Kivy works fine there. Installed it using the pip installer on pydroid . Installed both kivy_garden and kivy_garden.zbarcam.

Please do look into it. Pydroid is awesome otherwise.

AndreMiras commented 3 years ago

If it's on Android you need to provide the buildozer.spec file you used

ratherdullpoet commented 3 years ago

My apologies for being so naive. I thought pydroid was well known. It is a different thing. We don't run apk there. We run .py codes. Could you please download it from the playstoer and check. I think that approach has a very decent possibility to catch on considering that they have pretty much all the libraries. Please do get zbarcam working there. Thanks.

https://www.makeuseof.com/install-pydroid-android/

AndreMiras commented 3 years ago

OK interesting, then first thing I'd say why installing kivy_garden, it's deprecated and would create conflicts. Instead simply pip instal zbcarcam. This is the new recommended methods as gardens are now standalone packages not depending on garden. So make sure kivy-garden is uninstalled

ratherdullpoet commented 3 years ago

Thanks. Let me do that and get back.

As an aside would you have any expertise in integrating kivy with open cv ?

AndreMiras commented 3 years ago

You should try the Discord chat for further help. Yes Kivy is already integrated with some OpenCV components, e.g. for camera. But it depends on what you wanna do. You should really try the chat as this is a bug tracker

ratherdullpoet commented 3 years ago

Thanks.

I tried removing everything and just installing zbarcam on pydroid but it still doesn't work. Same errors as before.

If you have a while could you kindly do a test run yourself or I can send you a screenshot of the error file. I now am able to use kivy with opencv there too. Such a shame that can't do zbarcam.

ratherdullpoet commented 3 years ago

not working on python 3.9 either. Windows 10.

FileNotFoundError: Could not find module 'C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\pyzbar\libzbar-64.dll' (or one of its dependencies). Try using the full path with constructor syntax.

ratherdullpoet commented 3 years ago

same error on python 3.8.6 in windows 10