dayjaby / zebra-scanner

Read barcodes in python with zebra barcode scanner
MIT License
23 stars 18 forks source link

Issue Installing, CsIEventListenerXml.h? #33

Open Mariner10 opened 4 months ago

Mariner10 commented 4 months ago

An issue with compiling I'm guessing:

(.venv) pi@BigManPie:~/Scanner $ sudo pip3 install zebra-scanner
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting zebra-scanner
  Downloading zebra-scanner-0.2.5.tar.gz (8.9 kB)
Building wheels for collected packages: zebra-scanner
  Building wheel for zebra-scanner (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-o9bp9035
       cwd: /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/
  Complete output (19 lines):
  /usr/lib/python3/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing 'v0.2.5' to '0.2.5'
    warnings.warn(tmpl.format(**locals()))
  running bdist_wheel
  running build
  running build_ext
  building 'zebra_scanner' extension
  creating build
  creating build/temp.linux-armv6l-3.9
  creating build/temp.linux-armv6l-3.9/tmp
  creating build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43
  creating build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66
  creating build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src
  arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/zebra-scanner -I/usr/local/lib/python3.9/dist-packages/pybind11/include -I/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src -I/usr/include/python3.9 -c /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.cpp -o build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.o -Wno-deprecated -std=c++11 -fvisibility=hidden
  In file included from /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.cpp:1:
  /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.h:13:10: fatal error: CsIEventListenerXml.h: No such file or directory
     13 | #include "CsIEventListenerXml.h"
        |          ^~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for zebra-scanner
  Running setup.py clean for zebra-scanner
Failed to build zebra-scanner
Installing collected packages: zebra-scanner
    Running setup.py install for zebra-scanner ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ec3f63d3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/zebra-scanner
         cwd: /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/
    Complete output (19 lines):
    /usr/lib/python3/dist-packages/setuptools/dist.py:461: UserWarning: Normalizing 'v0.2.5' to '0.2.5'
      warnings.warn(tmpl.format(**locals()))
    running install
    running build
    running build_ext
    building 'zebra_scanner' extension
    creating build
    creating build/temp.linux-armv6l-3.9
    creating build/temp.linux-armv6l-3.9/tmp
    creating build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43
    creating build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66
    creating build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src
    arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/zebra-scanner -I/usr/local/lib/python3.9/dist-packages/pybind11/include -I/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src -I/usr/include/python3.9 -c /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.cpp -o build/temp.linux-armv6l-3.9/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.o -Wno-deprecated -std=c++11 -fvisibility=hidden
    In file included from /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.cpp:1:
    /tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/src/BoostPythonCoreScanner.h:13:10: fatal error: CsIEventListenerXml.h: No such file or directory
       13 | #include "CsIEventListenerXml.h"
          |          ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bbu95y43/zebra-scanner_615f1d86e38043c180da8d2e93c8cf66/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ec3f63d3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/zebra-scanner Check the logs for full command output.

Running on a raspberry pi zero w, BST 2023 armv6l GNU/Linux. any help would be appreciated.