clonly / pywinauto

Automatically exported from code.google.com/p/pywinauto
Other
0 stars 0 forks source link

not work with python 2.7/x64 on Win7/x64 #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pip install pywinauto
2. in python shell:
>>> from pywinauto import application

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    from pywinauto import application
  File "C:\Python27\lib\site-packages\pywinauto\application.py", line 64, in <module>
    import win32structures
  File "C:\Python27\lib\site-packages\pywinauto\win32structures.py", line 390, in <module>
    assert sizeof(MENUITEMINFOW) == 44, sizeof(MENUITEMINFOW)
AssertionError: 48

What version of the product are you using? On what operating system?

python 2.7/amd64.
Windows 7/x64

Please provide any additional information below.

Original issue reported on code.google.com by bormo...@gmail.com on 23 Aug 2012 at 8:47

GoogleCodeExporter commented 9 years ago
I use python 2.7.3 and Windows 7 64-bit and do not have that problem.
I install pywinauto in little other way:
•Download pywinauto from 
https://sourceforge.net/project/showfiles.php?group_id=157379 
•Unzip the pywinauto zip file to a folder. 
•Run python.exe setup.py install

Original comment by far...@gmail.com on 31 Oct 2012 at 7:11

GoogleCodeExporter commented 9 years ago
I could do with setup.py or pip
 Python 2.7/x86
 Win 7/x64

but couldn't
 Python 2.7/amd64
 Win 7/x64

Original comment by nacl0...@gmail.com on 30 Dec 2012 at 7:56

GoogleCodeExporter commented 9 years ago
I can't install pywinauto (attached pip.log)

C:\Python27\Scripts>python --version
Python 2.7.2

Win7/x64

Original comment by jean.guy...@gmail.com on 26 Mar 2013 at 6:26

Attachments:

GoogleCodeExporter commented 9 years ago
To solve AssertionError: 48 problem I had to:

1) Uninstall 64-bit version of Python.
2) Install 32-bit version of Python.
3) Reinstall pywinauto.

It's working for me now.

Original comment by jase...@gmail.com on 1 Aug 2013 at 10:45

GoogleCodeExporter commented 9 years ago
Try

>>> import pywinauto
>>> from pywinauto import application

Original comment by examach...@gmail.com on 24 Apr 2014 at 11:28

GoogleCodeExporter commented 9 years ago
Fails for me as well. From zip file

C:\Users\Edwin\Desktop\delme2>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\Users\Edwin\Desktop\delme2>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 50, in <module>
    import pywinauto
  File "C:\Users\Edwin\Desktop\delme2\pywinauto\__init__.py", line 28, in <module>
    import findwindows
  File "C:\Users\Edwin\Desktop\delme2\pywinauto\findwindows.py", line 32, in <module>
    import win32structures
  File "C:\Users\Edwin\Desktop\delme2\pywinauto\win32structures.py", line 458, in <module>
    assert sizeof(MENUITEMINFOW) == 44, sizeof(MENUITEMINFOW)
AssertionError: 48

Original comment by Edwin...@gmail.com on 20 Jul 2014 at 1:59

GoogleCodeExporter commented 9 years ago
Fails for me as well 
Installed 32 bit python on Win 8.1
Install pywinAuto
Fails

Please suggest

Original comment by rathipri...@gmail.com on 28 Nov 2014 at 10:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
64-bit Python 3.x compatible version is currently developed here: 
https://github.com/vasily-v-ryabov/pywinauto-64

Any help, submitting issues etc is appreciated.

Original comment by vasily.v...@gmail.com on 26 Mar 2015 at 10:43