python在64位上安装pywinauto

时间:2013-07-17 14:46:05

标签: python install pywinauto

我正在尝试在我的64位机器上安装pywinauto。我已经处理了Assertion错误的问题,并将它们从win32structures文件中删除。但是现在当我去导入pywinauto时我得到了这个错误:

>>> import pywinauto
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\pywinauto\__init__.py", line 28, in <module>
import findwindows
  File "C:\Python27\lib\site-packages\pywinauto\findwindows.py", line 37, in <module>
import controls
  File "C:\Python27\lib\site-packages\pywinauto\controls\__init__.py", line 25,
in <module>
    from HwndWrapper import GetDialogPropsFromHandle
  File "C:\Python27\lib\site-packages\pywinauto\controls\HwndWrapper.py", line 34, in    <module>
    from pywinauto import SendKeysCtypes as SendKeys
ImportError: cannot import name SendKeysCtypes

有谁知道如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

这是一个已知的pywinauto问题。在64位系统上使用链 - python(32位)+ pywinauto。