-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 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 manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus-admin/+bug/1924573/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs