FS#75200 - [python-bleach] 5.0.0-1 missing depends on tinycss2

Attached to Project: Community Packages
Opened by Conrad Hoffmann (conrausch) - Thursday, 30 June 2022, 14:33 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 23 July 2022, 15:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
Johannes Löthberg (demize)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I got the following backtrace:

File "/usr/lib/python3.10/site-packages/bleach/css_sanitizer.py", line 1, in <module>
import tinycss2
ModuleNotFoundError: No module named 'tinycss2'

I did not have tinycss2 installed. But indeed, it is needed:


conrad@serotonin ~/hack $ pacman -Qo /usr/lib/python3.10/site-packages/bleach/css_sanitizer.py
/usr/lib/python3.10/site-packages/bleach/css_sanitizer.py is owned by python-bleach 5.0.0-1
conrad@serotonin ~/hack $ pacman -Ss python-bleach
community/python-bleach 5.0.0-1 [installed]
An easy whitelist-based HTML-sanitizing tool
conrad@serotonin ~/hack $ pacman -Qi python-bleach
Name : python-bleach
Version : 5.0.0-1
Description : An easy whitelist-based HTML-sanitizing tool
Architecture : any
URL : https://pypi.org/project/bleach/
Licenses : Apache
Groups : None
Provides : None
Depends On : python-packaging python-six python-webencodings
Optional Deps : None
Required By : python-srht
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 1656.50 KiB
Packager : Jelle van der Waa <jelle@archlinux.org>
Build Date : Sat 04 Jun 2022 01:23:35 PM CEST
Install Date : Wed 29 Jun 2022 10:30:49 PM CEST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature

conrad@serotonin ~/hack $ pacman -Qo /usr/lib/python3.10/site-packages/bleach/css_sanitizer.py
/usr/lib/python3.10/site-packages/bleach/css_sanitizer.py is owned by python-bleach 5.0.0-1
conrad@serotonin ~/hack $ grep tinycss /usr/lib/python3.10/site-packages/bleach/css_sanitizer.py
import tinycss2
parsed = tinycss2.parse_declaration_list(style)
return tinycss2.serialize(new_tokens).strip()

Manually installing python-tinycss2 fixed the issue.



This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 23 July 2022, 15:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  Added the optdepend in 5.0.0-2
Comment by Toolybird (Toolybird) - Wednesday, 20 July 2022, 07:42 GMT

Loading...