Skip to content

Error when trying to save a secure config on Linux when using the remote connections dialog #25635

@dalthviz

Description

@dalthviz

While checking #24343 on Linux (binder instance via /show binder comment on the PR) I was able to trigger a dialog not following the Spyder theme:

Image

After closing that, a report error dialog with the following traceback was shown:

Traceback (most recent call last):
  File "/home/jovyan/spyder/spyder/plugins/remoteclient/widgets/connectiondialog.py", line 208, in _save_connection_info
    page.save_to_conf()
  File "/home/jovyan/spyder/spyder/plugins/remoteclient/widgets/connectionpages.py", line 1016, in save_to_conf
    super().save_to_conf()
  File "/home/jovyan/spyder/spyder/widgets/config.py", line 423, in save_to_conf
    self.set_option(
  File "/home/jovyan/spyder/spyder/widgets/config.py", line 74, in set_option
    CONF.set(
  File "/home/jovyan/spyder/spyder/config/manager.py", line 616, in set
    self.notify_observers(
  File "/home/jovyan/spyder/spyder/config/manager.py", line 366, in notify_observers
    value = self.get(section, option, secure=secure)
  File "/home/jovyan/spyder/spyder/config/manager.py", line 536, in get
    value = keyring.get_password(section, option)
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/keyring/core.py", line 65, in get_password
    return get_keyring().get_password(service_name, username)
  File "/srv/conda/envs/notebook/lib/python3.10/site-packages/keyring/backends/fail.py", line 28, in get_password
    raise NoKeyringError(msg)
keyring.errors.NoKeyringError: No recommended backend was available. Install a recommended 3rd party backend package; or, install the keyrings.alt package if you want to use the non-recommended backends. See https://pypi.org/project/keyring for details.

Binder setup info

  • Spyder version: 6.2.0a1.dev0 6776890 (conda)
  • Python version: 3.10.19 64-bit
  • Qt version: 5.15.15
  • PyQt5 version: 5.15.11
  • Operating System: Linux-6.8.0-90-generic-x86_64-with-glibc2.35

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions