Python Keyring错误(87,'CredWrite','参数不正确。')

问题描述 投票:2回答:1

我在32位XP机器和密钥环3.1库上使用python 2.7。也尝试使用3.3密钥环。在keyring.set_password("name", "value", "hundred")我收到错误(87,'CredWrite','参数不正确。')。在exe期间,eclipse和py2exe都会出错。我的setup.py是

from distutils.core import setup
import py2exe
import time
setup(
    windows=['python.py'],
    options=dict(py2exe=dict(
        packages='keyring.backends',
    )),
)
time.sleep(2)
python python-2.7 py2exe python-keyring mercurial-keyring
1个回答
0
投票

32位XP没有Windows Vault。使用像Win Crypto这样的替代方案。从keyrings.alt.Windows导入EncrpytedKeyring然后keyring.set_keyring()。您还需要设置后端file_path成员。

© www.soinside.com 2019 - 2024. All rights reserved.