FS#77072 - [qmk] can't run qmk, ImportError: libtiff.so.5: cannot open shared object file: No such file or dire

Attached to Project: Community Packages
Opened by Malix (Malix) - Tuesday, 10 January 2023, 08:52 GMT
Last edited by Morten Linderud (Foxboron) - Tuesday, 10 January 2023, 09:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

running the command qmk (with or without arguments) produces following errors:

% qmk
Error: %s: %s ('ImportError', ImportError('libtiff.so.5: cannot open shared object file: No such file or directory'))
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/qmk_cli/script_qmk.py", line 76, in main
import qmk.cli # noqa
File "/home/malix/qmk_firmware/lib/python/qmk/cli/__init__.py", line 244, in <module>
__import__(subcommand)
File "/home/malix/qmk_firmware/lib/python/qmk/cli/painter/__init__.py", line 1, in <module>
from . import convert_graphics
File "/home/malix/qmk_firmware/lib/python/qmk/cli/painter/convert_graphics.py", line 7, in <module>
from qmk.painter import render_header, render_source, render_license, render_bytes, valid_formats
File "/home/malix/qmk_firmware/lib/python/qmk/painter.py", line 6, in <module>
from PIL import Image, ImageOps
File "/usr/lib/python3.10/site-packages/PIL/Image.py", line 100, in <module>
from . import _imaging as core
ImportError: libtiff.so.5: cannot open shared object file: No such file or directory

installed libtiff is version has following .so files:

libtiff /usr/lib/libtiff.so
libtiff /usr/lib/libtiff.so.6
libtiff /usr/lib/libtiff.so.6.0.0
libtiff /usr/lib/libtiffxx.so
libtiff /usr/lib/libtiffxx.so.6
libtiff /usr/lib/libtiffxx.so.6.0.0


Additional info:
* package version(s): qmk 1.1.1-1, libtiff 4.5.0-1
* link to upstream bug report, if any: https://github.com/qmk/qmk_cli/issues/139 - but they wanted me to report the issue here.

Steps to reproduce:

$ qmk
This task depends upon

Closed by  Morten Linderud (Foxboron)
Tuesday, 10 January 2023, 09:39 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Partial update
Comment by Morten Linderud (Foxboron) - Tuesday, 10 January 2023, 09:07 GMT
Output of `pacman -Q libtiff python-pillow` please.
Comment by Antonio Rojas (arojas) - Tuesday, 10 January 2023, 09:35 GMT
You are mixing local and system python packages. This is completely unsupported.
Comment by Malix (Malix) - Tuesday, 10 January 2023, 09:36 GMT
% pacman -Q libtiff python-pillow
libtiff 4.5.0-1
python-pillow 9.3.0-1
Comment by Morten Linderud (Foxboron) - Tuesday, 10 January 2023, 09:39 GMT
You are running an outdated version of `python-pillow`. Partial updates are not supported in Arch Linux, please do full system updates.

Loading...