Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#64187 - [hplip] hp-doctor fails due to Pillow removed VERSION in version 6.0.0
Attached to Project:
Arch Linux
Opened by Stefan Förster (HotblackDesiato) - Sunday, 20 October 2019, 11:14 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 24 October 2019, 19:08 GMT
Opened by Stefan Förster (HotblackDesiato) - Sunday, 20 October 2019, 11:14 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 24 October 2019, 19:08 GMT
|
DetailsDescription:
hp-doctor fails because the VERSION attribute was removed in current Pillow version 6.0.0: Traceback (most recent call last): File "/usr/bin/hp-doctor", line 297, in <module> num_errors, num_warns = dep.validate(DEPENDENCY_RUN_AND_COMPILE_TIME, False) File "/usr/share/hplip/check.py", line 368, in validate self.core.dependencies[dep]) File "/usr/share/hplip/check.py", line 210, in __update_deps_info installed_ver = self.core.version_func[deps_info[6]]() File "/usr/share/hplip/installer/dcheck.py", line 373, in get_pil_version return Image.VERSION AttributeError: module 'PIL.Image' has no attribute 'VERSION' Pillow still has the PILLOW_VERSION attribute, which is deprecated and will be removed in version 7.0.0. I manually patched the file /usr/share/hplip/installer/dcheck.py as follows: def get_pil_version(): try: from PIL import Image except ImportError: return '-' else: return Image.PILLOW_VERSION i.e. I use Image.PILLOW_VERSION instead of Image.VERSION. This solved the problem - but this will return when Pillow is updated to version 7.0.0. |
This task depends upon

Looks like this one: https://bugs.launchpad.net/hplip/+bug/1846218

Yes, it looks like it.

Please check 3.19.8-2 in testing repo.