pklaus / brother_ql

Python package for the raster language protocol of the Brother QL series label printers (QL-500, QL-550, QL-560, QL-570, QL-700, QL-710W, QL-720NW, QL-800, QL-810W, QL-820NWB, QL-1050, QL-1060N and more).
GNU General Public License v3.0
558 stars 165 forks source link

Installation fails on Linux (OpenSuse Leap 15.4 - current release) #133

Open FranzGotsis opened 2 years ago

FranzGotsis commented 2 years ago

pip install --upgrade https://github.com/pklaus/brother_ql/archive/master.zi fails at the point Installing collected packages: pillow, pyusb, brother-ql Running setup.py install for pillow ... error

a bigger part of the installation log:

Defaulting to user installation because normal site-packages is not writeable Collecting https://github.com/pklaus/brother_ql/archive/master.zip Using cached https://github.com/pklaus/brother_ql/archive/master.zip Requirement already satisfied, skipping upgrade: attrs in /home/franz/.local/lib/python3.10/site-packages (from brother-ql==0.9.dev0) (22.1.0) Requirement already satisfied, skipping upgrade: click in /home/franz/.local/lib/python3.10/site-packages (from brother-ql==0.9.dev0) (8.1.3) Requirement already satisfied, skipping upgrade: future in /home/franz/.local/lib/python3.10/site-packages (from brother-ql==0.9.dev0) (0.18.2) Requirement already satisfied, skipping upgrade: packbits in /home/franz/.local/lib/python3.10/site-packages (from brother-ql==0.9.dev0) (0.6) Collecting pillow>=3.3.0 Using cached Pillow-9.2.0.tar.gz (50.0 MB) Collecting pyusb Using cached pyusb-1.2.1-py3-none-any.whl (58 kB) Using legacy 'setup.py install' for brother-ql, since package 'wheel' is not installed. Using legacy 'setup.py install' for pillow, since package 'wheel' is not installed. Installing collected packages: pillow, pyusb, brother-ql Running setup.py install for pillow ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.10 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9fw8io6g/pillow/setup.py'"'"'; file='"'"'/tmp/pip-install-9fw8io6g/pillow/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-_1ee_vcb/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/franz/.local/include/python3.10/pillow cwd: /tmp/pip-install-9fw8io6g/pillow/

complete log installation-log-brother_ql.txt

FriedrichFroebel commented 2 years ago

This does not seem to be related to brother_ql, which does not pin the Pillow package to an upper version, as this should not be required.

According to the log, pip seems to attempt to install Pillow from source as the wheel package (which is optional, but usually recommended) is missing from your system. To be able to do this, you have to meet the requirements from there, see https://pillow.readthedocs.io/en/stable/installation.html#building-from-source. Alternatively, after installing the wheel package you should be able to install the pre-built Pillow wheels for your system instead.