我在MS Vista SP2 机器上运行 Python 3.3.5 和Keyring 3.8 。该问题在正常模式和安全模式下都会出现。我一直在 XP SP3 机器上运行同样的程序,没有问题。
导致问题的代码部分是......
import keyring
keyring.set_password("Test_Service","MyUser","Password123")
Python 冻结,我收到此错误。
单击“关闭程序”重新启动 python shell。
windows事件查看器有这个。
Faulting application pythonw.exe, version 0.0.0.0, time stamp 0x531c3653,
faulting module ntdll.dll, version 6.0.6002.18881, time stamp 0x51da3e27,
exception code 0xc0000374, fault offset 0x000b06fc, process id 0x1104,
application start time 0x01cf7d9df6c97176.
一个快速的谷歌将ntdll.dll作为 Windows API 库。
关于为什么会发生这种情况的任何想法?怎么修?或者是否有替代模块?
编辑:与此同时,我放弃了 Keyring 并决定使用 MachineGuid 的盐渍哈希作为机器唯一一致的密码。