hannob / vacdec

Python script to decode the EU Covid-19 vaccine certificate
The Unlicense
243 stars 88 forks source link

Add explanation to install zbar shared libs #5

Closed guerda closed 3 years ago

guerda commented 3 years ago

On Linux and Mac OS X, you need to install zbar not only via pip, but also via brew or apt, to use pyzbar. I added a small sentence to the README.

jugmac00 commented 3 years ago

Looks like zbar brings along a ton of dependencies, which are not needed for vacdec. https://packages.ubuntu.com/source/bionic/zbar

On my Ubuntu 18.04 I only have libzbar0 installed, and vacdec works like a charm (though I do not remember when I installed it).

guerda commented 3 years ago

Ah, good point, I only read in the documentation of pyzbar that it needs zbar. I guess you installed it with apt install libzbar0 ? if so, I will update the readme Not sure if libzbar0 is also applicable for Mac OS.

guerda commented 3 years ago

The Linux version can be smaller, but for Mac OS it seems that there is no way to obtain the library itself without compiling it yourself.

See https://pypi.org/project/pyzbar/

jugmac00 commented 3 years ago

Ah, good point, I only read in the documentation of pyzbar that it needs zbar. I guess you installed it with apt install libzbar0 ? if so, I will update the readme

As I wrote above, I cannot recall - this was already on my machine when I started using vacdec - so I did not have to install any os package, just the Python packages.

Looks like it came with gstreamer :-)

❯ apt-cache rdepends --installed libzbar0
libzbar0
Reverse Depends:
  gstreamer1.0-plugins-bad
  gstreamer1.0-plugins-bad
guerda commented 3 years ago

I added the smaller package for Linux and pushed it to this branch. Thanks for the feedback!

guerda commented 3 years ago

Thanks!