keyrings.cryptfile
keyrings.cryptfile copied to clipboard
When importing CryptFileKeyring get error - ImportError: cannot import name 'properties' from 'keyring.util'
Getting the following error:
In [2]: from keyrings.cryptfile.cryptfile import CryptFileKeyring
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[2], line 1
----> 1 from keyrings.cryptfile.cryptfile import CryptFileKeyring
File ~/devel/keyrings.cryptfile/keyrings/cryptfile/cryptfile.py:7
4 import json
6 import configparser
----> 7 from keyring.util import properties
9 from keyrings.cryptfile import __version__ as version
10 from keyrings.cryptfile.file import EncryptedKeyring
ImportError: cannot import name 'properties' from 'keyring.util' (/home/user/miniconda3/lib/python3.9/site-packages/keyring/util/__init__.py)
I recently updated the keyring
module from 23.9.3 --> 24.2.0. This is where this started. Wanted to bring this issue to your attention. Thank you.
Temporary solution for now was to revert to keyring
23.9.3, and the import error disappears.
This should have been fixed in https://github.com/frispete/keyrings.cryptfile/commit/5a48da6a5f889c56d04ec1bc732ff58b4000272a and present in the 1.3.9 release of keyrings.cryptfile. It appears that you may be using an older version?