Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726852 - x11-apps/igt-gpu-tools with python3_9 - .../work/igt-gpu-tools-1.25/lib/i915/perf-configs/perf-codegen.py: ModuleNotFoundError: No module named 'xml.etree.cElementTree'
Summary: x11-apps/igt-gpu-tools with python3_9 - .../work/igt-gpu-tools-1.25/lib/i915/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: py39, python3.9-compat
  Show dependency tree
 
Reported: 2020-06-03 06:26 UTC by Rémi Cardona (RETIRED)
Modified: 2020-06-28 10:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,18.99 KB, text/plain)
2020-06-03 06:30 UTC, Rémi Cardona (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rémi Cardona (RETIRED) gentoo-dev 2020-06-03 06:26:56 UTC
cElementTree is deprecated since 3.3 and has been removed in 3.9 [0]

Since 3.3.0, cElementTree is a dumb alias to ElementTree [1]

[0] https://docs.python.org/3.9/whatsnew/3.9.html#removed
[1] https://github.com/python/cpython/blob/v3.3.0/Lib/xml/etree/cElementTree.py


Reproducible: Always

Steps to Reproduce:
1. install python3.9
2. have eselect python use 3.9 for python3 (the default for me here)
3. rebuild igt-gpu-tools
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2020-06-03 06:30:12 UTC
Created attachment 643180 [details]
build.log

build fails on lib/i915/perf-configs/perf-codegen.py but apparently cElementTree is also used in docs/reference/igt-gpu-tools/generate_description_xml.py
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2020-06-03 06:39:49 UTC
Reported upstream https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/86
Comment 3 charles17 2020-06-22 15:59:34 UTC
(In reply to Rémi Cardona from comment #2)
> Reported upstream
> https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/86

Patch is available upstream
Comment 4 Larry the Git Cow gentoo-dev 2020-06-28 10:51:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f255daced19dff233b657f213833b26cf6a9022c

commit f255daced19dff233b657f213833b26cf6a9022c
Author:     Rémi Cardona <remi@gentoo.org>
AuthorDate: 2020-06-28 10:50:49 +0000
Commit:     Rémi Cardona <remi@gentoo.org>
CommitDate: 2020-06-28 10:51:33 +0000

    x11-apps/igt-gpu-tools: fix build with python 3.9
    
    Closes: https://bugs.gentoo.org/726852
    Package-Manager: Portage-2.3.102, Repoman-2.3.23
    Signed-off-by: Rémi Cardona <remi@gentoo.org>

 x11-apps/igt-gpu-tools/files/1.25-python-3.9.patch | 25 ++++++++++++++++++++++
 x11-apps/igt-gpu-tools/igt-gpu-tools-1.25.ebuild   |  2 ++
 2 files changed, 27 insertions(+)