Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When importing CryptFileKeyring get error - ImportError: cannot import name 'properties' from 'keyring.util' #28

Open
xorr0 opened this issue Sep 28, 2023 · 2 comments

Comments

@xorr0
Copy link

xorr0 commented Sep 28, 2023

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.

@xorr0
Copy link
Author

xorr0 commented Sep 28, 2023

Temporary solution for now was to revert to keyring 23.9.3, and the import error disappears.

@altendky
Copy link
Collaborator

altendky commented Sep 28, 2023

This should have been fixed in 5a48da6 and present in the 1.3.9 release of keyrings.cryptfile. It appears that you may be using an older version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants