Hello all! I am a QA engineer that was looking for a way to do some specific GUI automation and I found this great Python package to do what I was looking for, but sadly the project had been abandoned since 2006! The project is called pyAA and some information on it can be found here: http://www.cs.unc.edu/Research/assist/doc/pyaa/ and http://web.archive.org/web/20080510165211/mindtrove.info/articles/gui-automation-with-pyaa/. Source code can be found here: http://uncassist.cvs.sourceforge.net/viewvc/uncassist/pyAA/ (Like I already stated, the source currently doesn't compile, but I have the fixes)
With the help of some really awesome developers I got the code to compile with VS2010 and Python 2.7 and it seems to work! To get it to that point took some hacking so the end product is a code base that doesn't just simply compile with a "setup.py build". Since I feel like I should give back to the community I would like some help solving one problem so I can repackage the code and put it back up on SourceForge ready for use by others.
The issue has to do with the ".manifest" file or more the lack thereof. I ended up creating my own manifest and just sticking it into the place where SWIG wanted it to be and viola it worked! However, that doesn't make it easy for others to compile themselves. How can I just tell SWIG to use a existing ".manifest" file or just don't bother?
Below is the compile error I currently get:
With the help of some really awesome developers I got the code to compile with VS2010 and Python 2.7 and it seems to work! To get it to that point took some hacking so the end product is a code base that doesn't just simply compile with a "setup.py build". Since I feel like I should give back to the community I would like some help solving one problem so I can repackage the code and put it back up on SourceForge ready for use by others.
The issue has to do with the ".manifest" file or more the lack thereof. I ended up creating my own manifest and just sticking it into the place where SWIG wanted it to be and viola it worked! However, that doesn't make it easy for others to compile themselves. How can I just tell SWIG to use a existing ".manifest" file or just don't bother?
Below is the compile error I currently get:
Code:
C:\pyAA>setup.py build
running build
running build_py
file pyAAc.py (for module pyAAc) not found
creating build
creating build\lib.win32-2.7
copying pyAA.py -> build\lib.win32-2.7
file pyAAc.py (for module pyAAc) not found
running build_ext
building '_pyAAc' extension
c:\swigwin\swig.exe -python -nodefault -c++ -o pyAAc.cpp pyAAc.i
SWIG(1) : Warning 123: dangerous, use -nodefaultctor, -nodefaultdtor instead.
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Python27\PC /TppyAAc.cpp /Fobu
ild\temp.win32-2.7\Release\pyAAc.obj
pyAAc.cpp
pyAAc.cpp(4477) : warning C4101: 'other' : unreferenced local variable
pyAAc.cpp(4477) : warning C4101: 'me' : unreferenced local variable
pyAAc.cpp(4476) : warning C4101: 'hwnd' : unreferenced local variable
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.exe /DLL /nologo
/INCREMENTAL:NO /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild oleaut32
.lib oleacc.lib ole32.lib /EXPORT:init_pyAAc build\temp.win32-2.7\Release\pyAAc.
obj /OUT:build\lib.win32-2.7\_pyAAc.pyd /IMPLIB:build\temp.win32-2.7\Release\_py
AAc.lib /MANIFESTFILE:build\temp.win32-2.7\Release\_pyAAc.pyd.manifest
Creating library build\temp.win32-2.7\Release\_pyAAc.lib and object build\tem
p.win32-2.7\Release\_pyAAc.exp
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe -nologo -manifest
build\temp.win32-2.7\Release\_pyAAc.pyd.manifest -outputresource:build\lib.win3
2-2.7\_pyAAc.pyd;2
build\temp.win32-2.7\Release\_pyAAc.pyd.manifest : general error c1010070: Faile
d to load and parse the manifest. The system cannot find the file specified.
error: command 'mt.exe' failed with exit status 31