Skip to content

Install issue with missing libzbar-dev #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
drtrigon opened this issue Jul 20, 2016 · 2 comments
Open

Install issue with missing libzbar-dev #59

drtrigon opened this issue Jul 20, 2016 · 2 comments

Comments

@drtrigon
Copy link
Collaborator

[...]
Building wheels for collected packages: zbar, tornado, backports.ssl-match-hostname
  Running setup.py bdist_wheel for zbar ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qlydkl/zbar/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpDqUfpXpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_ext
  building 'zbar' extension
  creating build
  creating build/temp.linux-x86_64-2.7
  x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c zbarmodule.c -o build/temp.linux-x86_64-2.7/zbarmodule.o
  In file included from zbarmodule.c:24:0:
  zbarmodule.h:26:18: fatal error: zbar.h: No such file or directory
   #include <zbar.h>
                    ^
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for zbar
  Running setup.py clean for zbar
  Running setup.py bdist_wheel for tornado ... done
  Stored in directory: /home/osboxes/.cache/pip/wheels/a3/da/2d/c360f46d129479fb3b9f714bb13cdee0fe9b764afdb4a6ff79
  Running setup.py bdist_wheel for backports.ssl-match-hostname ... done
  Stored in directory: /home/osboxes/.cache/pip/wheels/5d/72/36/b2a31507b613967b728edc33378a5ff2ada0f62855b93c5ae1
Successfully built tornado backports.ssl-match-hostname
Failed to build zbar
Installing collected packages: zbar, file-metadata, backports.ssl-match-hostname, singledispatch, certifi, backports-abc, tornado
  Running setup.py install for zbar ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qlydkl/zbar/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ZDqEzi-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'zbar' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c zbarmodule.c -o build/temp.linux-x86_64-2.7/zbarmodule.o
    In file included from zbarmodule.c:24:0:
    zbarmodule.h:26:18: fatal error: zbar.h: No such file or directory
     #include <zbar.h>
                      ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qlydkl/zbar/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ZDqEzi-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-qlydkl/zbar/

This was the message when I had to install libzbar-dev (ubuntu-14.04). It seems strange to me as it is listed at https://github.com/pywikibot-catfiles/file-metadata/blob/master/setupdeps.py#L466.

@AbdealiLoKo
Copy link
Collaborator

Hm, I think the test for checking if zbar exists is bad.
Seems like after finding the library, we should also try loading it and running some simple function to verify it works fine ?

@drtrigon
Copy link
Collaborator Author

drtrigon commented Sep 4, 2016

Agree sound like a good idea. E.g. load and get version info is may be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants