Re: [Pywinauto-users] [personal] Re: Trouble installing
Status: Alpha
Brought to you by:
mcmahon_m
From: Craig B. <cr...@my...> - 2012-01-15 16:46:45
|
Cool! That works! Thanks again and sorry for being such a pain. Craigbert From: Garland, Ken R [mailto:gar...@gm...] Sent: Sunday, January 15, 2012 10:41 AM To: Craig Boyd Cc: pyw...@li... Subject: Re: [Pywinauto-users] [personal] Re: Trouble installing I get the same error, try notepad_slow.py - that one works. I don't think it's worth investing time in figuring out why it's not working, but the error gives a clue. If notepad_slow works for you then you're all set. Come back with any questions about the project you're working on or search the list for similar issues. There are a few pitfalls that you'll see have common answers. 2012/1/15 Craig Boyd <cr...@my...> OK. I installed the missing packages from below, but pip install pywinauto still came back with "install" being an unknown command. So I did the python.exe setup.py install and below is what I got. c:\Python27\pywinauto-0.4.0>python.exe setup.py install running install running build running build_py running install_lib running install_egg_info Removing c:\python27\Lib\site-packages\pywinauto-0.4.0-py2.7.egg-info Writing c:\python27\Lib\site-packages\pywinauto-0.4.0-py2.7.egg-info That *looks* like success to me, is it? I tried to run the "notepad_fast.py" example, but that gave me the following errors: c:\Python27\pywinauto-0.4.0\examples>python notepad_fast.py Run with option 'language' e.g. notepad_fast.py language to use application data. This should work on any language Windows/Notepad Trying fast timing settings - it's possible these won't work if pywinauto tries to access a window that is not accessible yet Traceback (most recent call last): File "notepad_fast.py", line 269, in <module> RunNotepad() File "notepad_fast.py", line 59, in RunNotepad if len(sys.argv) > 1 and sys.argv[1].lower() == 'language': NameError: global name 'sys' is not defined Having notepad already opened did not make a difference. Thoughts? Thanks, Craigbert From: Garland, Ken R [mailto:gar...@gm...] Sent: Sunday, January 15, 2012 9:35 AM To: Craig Boyd Cc: Василий Рябов; pyw...@li... Subject: Re: [Pywinauto-users] [personal] Re: Trouble installing Ah yes, this can be fun. Getting the entire environment installed requires a bit of work. It only works with 32 bit as Vasily mentioned. These are the installs I use for automation: http://timgolden.me.uk/python/wmi/index.html http://sourceforge.net/projects/pywin32/ http://web.dyfis.net/SendKeys-0.3.win32-py2.7.exe WMI is not needed to get pywinauto working but I find I'll need it for certain projects. c:\python27\Scripts\pip.exe install pywinauto I just ran through a complete install from scratch and this worked. 2012/1/14 Craig Boyd <cr...@my...> Vasily & Ken, Thanks to both of you for your help so far. I have installed the 32-bit Python 2.7 stuff. When I run "pip install pywinauto" it complains that "install" is an unknown command. So I tried python.exe setup.py and that complains that SendKeys needs to be installed. Now I go to try to install SendKeys, but it wants Python 2.6. Now I go back to Python.org and all they have on the downloads for 2.6 are the tar balls, which I don't think will do me any good. Do I need to send a mail to the SendKey maintainers asking them to recompile, or whatever, to produce a 2.7 flavor of SendKeys? Thanks again for helping a n00b. Craigbert From: Василий Рябов [mailto:vas...@gm...] Sent: Friday, January 13, 2012 3:13 PM To: Craig Boyd Cc: pyw...@li... Subject: [personal] Re: [Pywinauto-users] Trouble installing Hello Craig, Different sizes of structures mean that you use 64-bit Python. Try to install pywinauto on 32-bit Python. Best regards, -Vasily. 2012/1/13 Craig Boyd <cr...@my...> Hello All, I am having problems installing pywinauto. When I run python.exe setup.py install I get the following error: Traceback (most recent call last): File "setup.py", line 50, in <module> import pywinauto File "C:\Users\craig\bin\pywinauto\pywinauto-0.4.0\pywinauto\__init__.py", lin e 28, in <module> import findwindows File "C:\Users\craig\bin\pywinauto\pywinauto-0.4.0\pywinauto\findwindows.py", line 32, in <module> import win32structures File "C:\Users\craig\bin\pywinauto\pywinauto-0.4.0\pywinauto\win32structures.p y", line 458, in <module> assert sizeof(MENUITEMINFOW) == 44, sizeof(MENUITEMINFOW) AssertionError: 48 Any ideas what I am doing wrong. I am somewhat new to python so my depth of ignorance right now knows no bounds. J I am running python 2.7 on Windows 7 professional. Thanks, Craigbert. ---------------------------------------------------------------------------- -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Pywinauto-users mailing list Pyw...@li... https://lists.sourceforge.net/lists/listinfo/pywinauto-users ---------------------------------------------------------------------------- -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Pywinauto-users mailing list Pyw...@li... https://lists.sourceforge.net/lists/listinfo/pywinauto-users -- - Ken -- - Ken |