Debian Bug report logs - #1034904
ImportError: cannot import name 'util' from 'distutils' (/usr/lib/python3.11/distutils/__init__.py)

version graph

Package: diffuse; Maintainer for diffuse is Philipp Huebner <debalance@debian.org>; Source for diffuse is src:diffuse (PTS, buildd, popcon).

Reported by: Simon Richter <sjr@debian.org>

Date: Thu, 27 Apr 2023 08:09:01 UTC

Severity: important

Found in version diffuse/0.7.7-1

Fixed in version diffuse/0.8.2-1

Done: Philipp Huebner <debalance@debian.org>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, sjr@debian.org, Philipp Huebner <debalance@debian.org>:
Bug#1034904; Package diffuse. (Thu, 27 Apr 2023 08:09:04 GMT) (full text, mbox, link).


Acknowledgement sent to Simon Richter <sjr@debian.org>:
New Bug report received and forwarded. Copy sent to sjr@debian.org, Philipp Huebner <debalance@debian.org>. (Thu, 27 Apr 2023 08:09:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Simon Richter <sjr@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: ImportError: cannot import name 'util' from 'distutils' (/usr/lib/python3.11/distutils/__init__.py)
Date: Thu, 27 Apr 2023 17:06:38 +0900
Package: diffuse
Version: 0.7.7-1
Severity: normal
X-Debbugs-Cc: sjr@debian.org

Hi,

diffuse fails to start for me, with

Traceback (most recent call last):
  File "/usr/bin/diffuse", line 36, in <module>
    from diffuse import main
  File "/usr/share/diffuse/diffuse/main.py", line 33, in <module>
    from diffuse import utils
  File "/usr/share/diffuse/diffuse/utils.py", line 32, in <module>
    from diffuse.resources import theResources
  File "/usr/share/diffuse/diffuse/resources.py", line 33, in <module>
    from distutils import util
ImportError: cannot import name 'util' from 'distutils' (/usr/lib/python3.11/distutils/__init__.py)

There might be an incompatibility with Python 3.11.

   Simon

-- System Information:
Debian Release: 12.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-7-amd64 (SMP w/20 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages diffuse depends on:
ii  gir1.2-gtk-3.0    3.24.37-2
ii  gnome-icon-theme  3.12.0-5
ii  python3           3.11.2-1+b1
ii  python3-gi        3.42.2-3+b1
ii  python3-gi-cairo  3.42.2-3+b1

diffuse recommends no packages.

Versions of packages diffuse suggests:
pn  desktop-file-utils  <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Philipp Huebner <debalance@debian.org>:
Bug#1034904; Package diffuse. (Wed, 14 Jun 2023 17:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Christophe Alonso <christophealonso@free.fr>:
Extra info received and forwarded to list. Copy sent to Philipp Huebner <debalance@debian.org>. (Wed, 14 Jun 2023 17:42:03 GMT) (full text, mbox, link).


Message #10 received at 1034904@bugs.debian.org (full text, mbox, reply):

From: Christophe Alonso <christophealonso@free.fr>
To: 1034904@bugs.debian.org
Subject: RE:ImportError: cannot import name 'util' from 'distutils' (/usr/lib/python3.11/distutils/__init__.py)
Date: Wed, 14 Jun 2023 19:39:37 +0200
[Message part 1 (text/plain, inline)]
Installing python3-distutils solved the problem here. May be diffuse 
should depend on this package as well.

[OpenPGP_0xF1596A7FBB6E093A.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Philipp Huebner <debalance@debian.org>:
Bug#1034904; Package diffuse. (Mon, 19 Jun 2023 23:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to AlMa <AlMa0@ro.ru>:
Extra info received and forwarded to list. Copy sent to Philipp Huebner <debalance@debian.org>. (Mon, 19 Jun 2023 23:57:04 GMT) (full text, mbox, link).


Message #15 received at 1034904@bugs.debian.org (full text, mbox, reply):

From: AlMa <AlMa0@ro.ru>
To: control@bugs.debian.org, 1034904@bugs.debian.org
Subject: ImportError: cannot import name 'util' from 'distutils' (/usr/lib/python3.11/distutils/__init__.py)
Date: Tue, 20 Jun 2023 01:52:53 +0200
severity 1034904 important
thanks

Same bug for me here:

$ diffuse
Traceback (most recent call last):
  File "/usr/bin/diffuse", line 36, in <module>
    from diffuse import main
  File "/usr/share/diffuse/diffuse/main.py", line 33, in <module>
    from diffuse import utils
  File "/usr/share/diffuse/diffuse/utils.py", line 32, in <module>
    from diffuse.resources import theResources
  File "/usr/share/diffuse/diffuse/resources.py", line 33, in <module>
    from distutils import util
ImportError: cannot import name 'util' from 'distutils' 
(/usr/lib/python3.11/distutils/__init__.py)

Raising severity because several folks seem to be affected.  I have 
version 0.7.7-1 installed.



Severity set to 'important' from 'normal' Request was from AlMa <AlMa0@ro.ru> to control@bugs.debian.org. (Mon, 19 Jun 2023 23:57:07 GMT) (full text, mbox, link).


Reply sent to Philipp Huebner <debalance@debian.org>:
You have taken responsibility. (Tue, 04 Jul 2023 13:51:06 GMT) (full text, mbox, link).


Notification sent to Simon Richter <sjr@debian.org>:
Bug acknowledged by developer. (Tue, 04 Jul 2023 13:51:07 GMT) (full text, mbox, link).


Message #22 received at 1034904-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1034904-close@bugs.debian.org
Subject: Bug#1034904: fixed in diffuse 0.8.2-1
Date: Tue, 04 Jul 2023 13:49:22 +0000
Source: diffuse
Source-Version: 0.8.2-1
Done: Philipp Huebner <debalance@debian.org>

We believe that the bug you reported is fixed in the latest version of
diffuse, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1034904@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Philipp Huebner <debalance@debian.org> (supplier of updated diffuse package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 04 Jul 2023 15:27:12 +0200
Source: diffuse
Architecture: source
Version: 0.8.2-1
Distribution: unstable
Urgency: medium
Maintainer: Philipp Huebner <debalance@debian.org>
Changed-By: Philipp Huebner <debalance@debian.org>
Closes: 1034904
Changes:
 diffuse (0.8.2-1) unstable; urgency=medium
 .
   * New upstream version 0.8.2
   * Depend on python3-distutils (Closes: #1034904)
   * Update Standards-Version: 4.6.2 (no changes needed)
   * Update years in debian/copyright
Checksums-Sha1:
 89f46f0910d2cf74554aaf898088a18426f7e101 1910 diffuse_0.8.2-1.dsc
 b1bbd8adee06339890f84981b3b30b75477ca296 1185926 diffuse_0.8.2.orig.tar.gz
 d3b356ee79bed3e9359c3d022d7a2960b1ace6f8 4228 diffuse_0.8.2-1.debian.tar.xz
 0d3a3a8931b6fa8521dc6c1adf8e95cb3485c99c 7517 diffuse_0.8.2-1_amd64.buildinfo
Checksums-Sha256:
 e95ec43cb40f3ca64941ea892647e221e9e8c17e04a25ac819cf3a85c37828e8 1910 diffuse_0.8.2-1.dsc
 96bd0fa435afd8e519759f068f85995c1c992a0fdc813fcd6a7ec85424c21396 1185926 diffuse_0.8.2.orig.tar.gz
 10cdd308190b47f3869d54db33dcb0ae94f6c13cc5f32f4f9d597df82c9376a5 4228 diffuse_0.8.2-1.debian.tar.xz
 650213a2e4c5a345776b3bf515d397ff16e17e178a60592f6cfd53404a45bafc 7517 diffuse_0.8.2-1_amd64.buildinfo
Files:
 956f986e60830bf670d087fe35e59cfa 1910 editors optional diffuse_0.8.2-1.dsc
 5b6c145e2d1b3ddfd8eb6a53e9550722 1185926 editors optional diffuse_0.8.2.orig.tar.gz
 04701b52cce6afb952274d375f078162 4228 editors optional diffuse_0.8.2-1.debian.tar.xz
 eb82259ec42082e47800be1191a729e1 7517 editors optional diffuse_0.8.2-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEECEGLvkRyDy26xQXsunokltrkDRwFAmSkH8wVHGRlYmFsYW5j
ZUBkZWJpYW4ub3JnAAoJELp6JJba5A0cE5kP/24YESAsB6rESqLT354KVVwfOF/v
J//risTPERUlZHzaBbDS/aYkPjrWDIHlVAs0fzEAftHUsa1qWJWuGMuZW882bnSx
U+5Pca87pxmzNqPgqX81qxNgNx8NFGVY8X3eyDRUcmNfMJu5ZkncKqz7g/7QdmD6
67hHNTyk/gfdEsIzbefkjH1GbQf82bq0wh3BHlodgtVqTzy+RSv0ry4NURzpxYqg
jxu0Z/apl9cHmE4cZyZCOZbVs8dPKLIxjdSNARTOVakpSq/yzZpWQjFj5+iffRcM
5586fPnMQ+aB6qXArlLIotaLDOGySqLYMkN6+sWlQZxuApgQNO+axNRteQGOifry
YB7+Ip+WAc10nT5ts7MRfjr0hNxZPzU0NGvoQi5QXVc4XEdgNii31JKBxT0Fljdq
dTqLe1sTF+6de6vFdZtV46iZ7nzrCWcsCYw4ypCtFSFkCLXvUA7bZvgThxKWv634
HiD6p4g+1h9tM/b4JLNSxglPqvvgQis6l06pNRE58CBKFTA+aO6buP4DSwN6dy8m
Q/a7pLcirt36qpof6dJ6QddjxAsOcSn4iE25E97PBadgQPjAywwzSYfwDcUjo2DO
qfXRahTwnJy7bZdWvOQXhdF9ECSbztCf056S9oxLvfwpy9Xo6M5suNQxqLdweCZC
w8Ky3oSzSpDtWqu0
=UaUa
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 07 Aug 2023 07:24:50 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Sep 14 06:34:02 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.