简体   繁体   English

Python密钥环错误(87,“ CredWrite”,“参数不正确。”)

[英]Python Keyring error (87, 'CredWrite', 'The parameter is incorrect.')

I am using python 2.7 on 32 bit XP machine and keyring 3.1 library.Also tried with 3.3 keyring. 我在32位XP计算机和密钥环3.1库上使用python 2.7,也尝试了3.3密钥环。 In keyring.set_password("name", "value", "hundred") am getting error (87, 'CredWrite', 'The parameter is incorrect.') . keyring.set_password("name", "value", "hundred") 出现错误(87,“ CredWrite”,“参数不正确”。) Error occurs in both eclipse and through py2exe during exe making. 在exe制作过程中,eclipse和py2exe都发生错误。 My setup.py is 我的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)

32-bit XP doesn't have Windows Vault. 32位XP没有Windows保险柜。 Use an alternative like Win Crypto. 使用Win Crypto之类的替代方法。 From keyrings.alt.Windows import EncrpytedKeyring and then keyring.set_keyring(). 从keyrings.alt.Windows导入EncrpytedKeyring,然后导入keyring.set_keyring()。 You will need to set the backend file_path member too. 您还将需要设置后端file_path成员。

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

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