gourmand crashed with ImportError in /usr/lib/python3/dist-packages/extruct/xmldom.py: cannot import name '_ElementStringResult' from 'lxml.etree' (/usr/lib/python3/dist-packages/lxml/etree.cpython-312-x86_64-linux-gnu.so)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
extruct (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Noble |
In Progress
|
Critical
|
Unassigned | ||
gourmand (Ubuntu) |
New
|
Medium
|
Unassigned | ||
Noble |
New
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
The extruct package is a python module that cannot be used in noble because it is incompatible with the lxml module that is shipped in noble.
[ Test plan ]
1. bad:
$ python3 -c 'import extruct'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
from ._extruct import SYNTAXES, extract
File "/usr/lib/
from extruct.dublincore import DublinCoreExtractor
File "/usr/lib/
from extruct.utils import parse_html
File "/usr/lib/
from extruct.xmldom import XmlDomHTMLParser
File "/usr/lib/
from lxml.etree import (
ImportError: cannot import name '_ElementString
$
2. good:
$ python3 -c 'import extruct'
$
[ Where problems could occur ]
The package as shipped is completely unusable so runtime regressions are not possible.
The Debian fix for this includes introducing an additional dependency, so new install-time failures are possible but unlikely. No analysis has been done to check for this.
[ Original description ]
Well, for the fourth Ubuntu release running, gourmand is completely unusable.
Downgrading again to my local copy of gourmand 1.1.0+really1.
ProblemType: Crash
DistroRelease: Ubuntu 24.04
Package: gourmand 1.1.0+really1.
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu May 23 16:13:30 2024
ExecutablePath: /usr/bin/gourmand
InstallationDate: Installed on 2019-12-23 (1613 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
InterpreterPath: /usr/bin/python3.12
JournalErrors: -- No entries --
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/gourmand --database-
Python3Details: /usr/bin/
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: gourmand
Title: gourmand crashed with ImportError in /usr/lib/
UpgradeStatus: Upgraded to noble on 2024-05-22 (1 days ago)
UserGroups: adm cdrom dip libvirt lpadmin lxd plugdev sambashare sbuild src sudo
modified.
mtime.conffile.
tags: | removed: need-duplicate-check |
Changed in extruct (Ubuntu): | |
importance: | Undecided → Medium |
Changed in gourmand (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
Changed in extruct (Ubuntu Noble): | |
status: | New → In Progress |
description: | updated |
Probably fixed by:
extruct (0.16.0-4) unstable; urgency=medium
* Add upstream patch to add support for python3 lxml >= 5.2.0 and lxml-html- clean to Depends.
python3-
-- Christian Marillat <email address hidden> Fri, 19 Apr 2024 11:44:13 +0200