简体   繁体   English

Python python_keyring package - 升级 Python 的钥匙圈坏了

[英]Python python_keyring package - Upgrade of Python has broken keyring

I have upgrade from python 3.9.6 to 3.10.5 and kept thankfully the old version.我已经从 python 3.9.6 升级到 3.10.5 并且幸好保留了旧版本。 This is on a Win-64 machine so should be using the WinVault backend (default)这是在 Win-64 机器上,所以应该使用 WinVault 后端(默认)

I have copied all the site_packages from 3.9.6 to 3.10.5 (except for those already installed by the newer version)我已将所有 site_packages 从 3.9.6 复制到 3.10.5(新版本已安装的除外)

Running keyring under 3.10.05 the error is在 3.10.05 下运行keyring错误是

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.

I can run the same code under 3.9.6 with no problems.我可以毫无问题地在 3.9.6 下运行相同的代码。

Running跑步

python -c "import keyring.util.platform_; print(keyring.util.platform_.config_root())"

or或者

python -c "import keyring.util.platform_; print(keyring.util.platform_.data_root())"

under either version is producing locations that don't really exist.在任何一个版本下都在生产实际上并不存在的位置。 I have created a keyringrc.cfg file with a keyring.backends.Windows.WinVaultKeyring line but it doesn't seem to do anything我创建了一个带有keyring.backends.Windows.WinVaultKeyring行的 keyringrc.cfg 文件,但它似乎没有做任何事情

I don't mind having to re-enter keyring passwords but would like to get this working under 3.10.5.我不介意必须重新输入密钥环密码,但希望让它在 3.10.5 下工作。

Ideas想法

This has eventually turned out to be needs to upgrade cffi which has fixed the problem.最终证明需要升级已解决问题的 cffi。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM