This bug was fixed in the package nautilus-admin - 1.1.9-3ubuntu1
---
nautilus-admin (1.1.9-3ubuntu1) impish; urgency=medium
* debian/patches/new-python-compat.patch:
- fix the locale import to be compatible with python 3.9,
thanks Kesantielu (lp: #1924573)
-- Sebastien
Thank you for the bug report and the patch
** Changed in: nautilus-admin (Ubuntu)
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1924573
Title:
ImportError: canno
** Changed in: nautilus-admin (Ubuntu)
Importance: Undecided => Medium
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1924573
Title:
ImportError: cannot import name 'locale' from 'gettext'
To man
Thanks for taking your time to report this issue and help making Ubuntu
better.
I get the same error message when running the same command with
nautilus-admin 1.1.9-3 installed on Ubuntu 21.04.
I haven't tested the patch. For the next time, please attach as files,
that will automatically add the
-from gettext import gettext, locale, bindtextdomain, textdomain
+from gettext import gettext, bindtextdomain, textdomain
+try:
+ # python 3.8
+ from gettext import locale
+except ImportError:
+ # python 3.9
+ import locale
--
You received this bug notification because you