I think it happens because gir1.2-secret-1 is not installed on the
system.
There is code in jobviewer.py to handle this case:
56 try:
57 gi.require_version('Secret', '1')
58 from gi.repository import Secret
59 USE_SECRET=True
60 except ValueError:
61 USE_SECRET=False
But there are several locations in the code where the value of USE_SECRET is
not checked before using Secret. For example:
76 NETWORK_PASSWORD = Secret.Schema.new("org.system.config.printer.store",
Secret.SchemaFlags.NONE,
But also
90 class ServiceGet:
91 service = Secret.Service()
92
93 def on_get_service(self, source, result, unused):
94 service = Secret.Service.get_finish(result)
95
96 def __init__(self):
97 Secret.Service.get(0,
109 def on_search_item(self, source, result, unused):
110 items = Secret.Service.search_finish(None, result)
111
112 def __init__(self, service, attrs):
113 Secret.Service.search(service,
...
** Changed in: system-config-printer (Ubuntu)
Status: Confirmed => Triaged
** Changed in: system-config-printer (Ubuntu)
Importance: Undecided => High
** Tags added: rls-bb-incoming
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to system-config-printer in Ubuntu.
https://bugs.launchpad.net/bugs/1760027
Title:
system-config-printer.py crashed with NameError in /usr/share/system-
config-printer/jobviewer.py: name 'Secret' is not defined
Status in system-config-printer package in Ubuntu:
Triaged
Bug description:
New error with 1.5.11-1ubuntu1
The Ubuntu Error Tracker has been receiving reports about a problem regarding
system-config-printer. This problem was most recently seen with package
version 1.5.11-1ubuntu1, the problem page at
https://errors.ubuntu.com/problem/75b6b655c24028fea9fef2b4f2bde9d4a134f3a8
contains more details, including versions of packages affected, stacktrace or
traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software
developer, you can request it at http://forms.canonical.com/reports/.
Traceback
Traceback (most recent call last):
File "/usr/share/system-config-printer/system-config-printer.py", line 84,
in <module>
import jobviewer
File "/usr/share/system-config-printer/jobviewer.py", line 76, in <module>
NETWORK_PASSWORD = Secret.Schema.new("org.system.config.printer.store",
Secret.SchemaFlags.NONE,
NameError: name 'Secret' is not defined
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/1760027/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp