Your message dated Wed, 23 Jun 2021 21:18:24 +0000
with message-id <e1lwago-0001po...@fasolo.debian.org>
and subject line Bug#989596: fixed in nautilus-admin 1.1.9-3.1
has caused the Debian Bug report #989596,
regarding ImportError when used with python3.9
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
989596: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989596
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: nautilus-admin
Version: 1.1.9-3
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu impish ubuntu-patch
The bug has been initially reported on
https://bugs.launchpad.net/ubuntu/+source/nautilus-admin/+bug/1924573
'$ nautilus -q
Traceback (most recent call last):
File "/usr/share/nautilus-python/extensions/nautilus-admin.py", line
25, in <module>
from gettext import gettext, locale, bindtextdomain, textdomain
ImportError: cannot import name 'locale' from 'gettext'
(/usr/lib/python3.9/gettext.py)'
The attached patch fixes the issue and comes from
https://github.com/TomaszGasior/mushrooms-rpms/issues/41
Cbeers,
diff -Nru nautilus-admin-1.1.9/debian/changelog nautilus-admin-1.1.9/debian/changelog
--- nautilus-admin-1.1.9/debian/changelog 2019-11-04 21:11:13.000000000 +0100
+++ nautilus-admin-1.1.9/debian/changelog 2021-06-08 10:48:53.000000000 +0200
@@ -1,3 +1,11 @@
+nautilus-admin (1.1.9-3.1) unstable; urgency=medium
+
+ * debian/patches/new-python-compat.patch:
+ - fix the locale import to be compatible with python 3.9,
+ thanks Kesantielu (lp: #1924573)
+
+ -- Sebastien Bacher <seb...@ubuntu.com> Tue, 08 Jun 2021 10:48:53 +0200
+
nautilus-admin (1.1.9-3) unstable; urgency=medium
[ Carlos Maddela ]
diff -Nru nautilus-admin-1.1.9/debian/patches/new-python-compat.patch nautilus-admin-1.1.9/debian/patches/new-python-compat.patch
--- nautilus-admin-1.1.9/debian/patches/new-python-compat.patch 1970-01-01 01:00:00.000000000 +0100
+++ nautilus-admin-1.1.9/debian/patches/new-python-compat.patch 2021-06-08 10:48:53.000000000 +0200
@@ -0,0 +1,29 @@
+From a51885e75338a9d45f8873d47db067bb81c8071a Mon Sep 17 00:00:00 2001
+From: Vitor Lopes <vmn...@gmail.com>
+Date: Thu, 3 Dec 2020 16:49:07 +0000
+Subject: [PATCH] fix for python9
+https://github.com/TomaszGasior/mushrooms-rpms/issues/41
+---
+ extension/nautilus-admin.py | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/extension/nautilus-admin.py b/extension/nautilus-admin.py
+index 683a484..4719bbc 100644
+--- a/extension/nautilus-admin.py
++++ b/extension/nautilus-admin.py
+@@ -22,7 +22,13 @@
+ require_version('Nautilus', '3.0')
+
+ from gi.repository import Nautilus, GObject
+-from gettext import gettext, locale, bindtextdomain, textdomain
++from gettext import gettext, bindtextdomain, textdomain
++try:
++ # python 8
++ from gettext import locale
++except ImportError:
++ # python 9
++ import locale
+
+ ROOT_UID = 0
+ NAUTILUS_PATH="@NAUTILUS_PATH@"
+
diff -Nru nautilus-admin-1.1.9/debian/patches/series nautilus-admin-1.1.9/debian/patches/series
--- nautilus-admin-1.1.9/debian/patches/series 2019-11-04 21:11:13.000000000 +0100
+++ nautilus-admin-1.1.9/debian/patches/series 2021-06-08 10:48:53.000000000 +0200
@@ -1,2 +1,3 @@
out-of-place-build.patch
update-german-translation.patch
+new-python-compat.patch
--- End Message ---
--- Begin Message ---
Source: nautilus-admin
Source-Version: 1.1.9-3.1
Done: Sebastian Ramacher <sramac...@debian.org>
We believe that the bug you reported is fixed in the latest version of
nautilus-admin, 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 989...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sebastian Ramacher <sramac...@debian.org> (supplier of updated nautilus-admin
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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 23 Jun 2021 23:12:42 +0200
Source: nautilus-admin
Architecture: source
Version: 1.1.9-3.1
Distribution: unstable
Urgency: medium
Maintainer: Carlos Maddela <e7ap...@gmail.com>
Changed-By: Sebastian Ramacher <sramac...@debian.org>
Closes: 989596
Changes:
nautilus-admin (1.1.9-3.1) unstable; urgency=medium
.
[ Sebastien Bacher ]
* debian/patches/new-python-compat.patch:
- fix the locale import to be compatible with python 3.9,
thanks Kesantielu (Closes: #989596) (LP: #1924573)
Checksums-Sha1:
026e7594ff78b22267228e5420183c5069b4834f 1951 nautilus-admin_1.1.9-3.1.dsc
5bf33c0e6a4c253bcf58ed3b1c50e274a97b5403 8888
nautilus-admin_1.1.9-3.1.debian.tar.xz
Checksums-Sha256:
1bba885ec1973eb35bf44cba956a52e21598e4ecc1f5554901f92033c925babe 1951
nautilus-admin_1.1.9-3.1.dsc
60870e66b0168e57b191c1c440db75d5ee2def5498e67230f70f6f4a0a943e86 8888
nautilus-admin_1.1.9-3.1.debian.tar.xz
Files:
dcb57de0e5b1f83ef75308e849244436 1951 gnome optional
nautilus-admin_1.1.9-3.1.dsc
909ca9ca468ec9a6abbba0eb23e666dc 8888 gnome optional
nautilus-admin_1.1.9-3.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE94y6B4F7sUmhHTOQafL8UW6nGZMFAmDTpEsACgkQafL8UW6n
GZPw2xAAi2pDxYHVTFJWDjF2gSjdqsvpF2tnEVXdyNA0flXZVCrc+Dis4aEy1gPy
/Zkh3iSX9vIw6xaEdoxZbq4GwjcBsi/j1lGZU1DkvMizIPmRyh5c1hQZ5dWgUCZ9
EWIUhpTPFqVJAPuPlDDJieHDZSMDhKh+dcfFK1zw1+/s+Ohw7yj6E+vtYIqfXxId
8tapcDmtOrd8It9CmcE9OfVUZ+lFLfWEyK2YT8AMZrondNn0mV0/a9dMRN/7NvQN
ttmEm+PC8zL4Co2jIa51ELLGtVJ9C6lB0XSFq0yhSgkto7CRnCOD8Tob6+752hAC
UdHDe9V3W9CT6UVZzUkzgP/yXvV5xxf0JoyATS4VniBWOln3kaKrc5kvaAUbDz8i
a5rvGK7NcAQ0EduxEAMn3/m2XcOtKxz1LtFmEVOQaCfob/TZHRgjpOJ2fXurJyNM
f0qIU9cwlhP/mQcREko7HopNrQaHf6naDsGnrlyJ0vx+89vh/WScRFhuSSIA9yoB
M2FPHj7jeDSOFM44ZQP0bTq24jULgFFsNZ2TKf4rMxFzzg2k42PolxSgQctZ/ZVJ
6nHrqLzSEveWMAR083nzz0gnxsSYvNVUqKb48xcegxKxxrFKhmo/DKtmWlwqYZxg
PZIrG0ZI6HlUKOIM5TloMbhbklpcOp7sM9geHdRYAe7D0UuZ2n4=
=KC1j
-----END PGP SIGNATURE-----
--- End Message ---