Skip to content

Commit

Permalink
bugfix: cad/cura remove NoKeyringError from import
Browse files Browse the repository at this point in the history
py-keyring is stacked at 18.0.1 at the moment. cura expects 23.0.1,
which has NoKeyringError. until 23.0.1 is available again, remove it.

ImportError: cannot import name 'NoKeyringError' from 'keyring.errors'
(/usr/local/lib/python3.8/site-packages/keyring/errors.py)

https://www.freshports.org/security/py-keyring/
  • Loading branch information
trombik committed Apr 28, 2022
1 parent 0f2f9fc commit 8d5d2cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cad/cura/files/patch-cura_OAuth2_KeyringAttribute.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- cura/OAuth2/KeyringAttribute.py.orig 2022-04-28 04:59:10 UTC
+++ cura/OAuth2/KeyringAttribute.py
@@ -5,7 +5,7 @@ from typing import Type, TYPE_CHECKING, Optional, List
from io import BlockingIOError
import keyring
from keyring.backend import KeyringBackend
-from keyring.errors import NoKeyringError, PasswordSetError, KeyringLocked
+from keyring.errors import PasswordSetError, KeyringLocked

from UM.Logger import Logger

0 comments on commit 8d5d2cc

Please sign in to comment.