I'm currently using Python 2.7 + wxPython 2.8.11 on my windows machine. While trying to build a small project (which also uses comtypes and lets say any activex such as flashwindow) I'm getting the following error:
>>>"c:\Program Files\Python_2.7\python.exe" setup.py py2exe
running py2exe
*** searching for required modules ***
*** parsing results ***
*** finding dlls needed ***
error: MSVCP90.dll: No such file or directory
I fixed it by copying the .dll and .manifest file to the directory. It builds fine. But again at the time of execution I got the errors like 'CreateActCtx' failed with error 0x0000007b followed by
File "zipextimporter.pyo", line 82, in load_module
File "wx\lib\flashwin.pyo", line 15, in
File "zipextimporter.pyo", line 82, in load_module
File "wx\lib\activex.pyo", line 44, in <module>
ImportError: cannot import name myole4ax
So, I upgraded my wxPython to 2.9* (Python 2.7) where is fails with unable to find PROCESS_START. So, I had to revert back to 2.8.11 (with Python 2.7) Now, it fails with the following (after copying the MSVC*90.dll to local directory and after building into a single executable):
C:\testflv> testflv.exe
Traceback (most recent call last):
File "testflv.py", line 10, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "wx\__init__.pyo", line 45, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "wx\_core.pyo", line 4, in <module>
File "zipextimporter.pyo", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading wx\_core_.pyd
It seems that there's a problem with myole4ax* as mention here (http://comments.gmane.org/gmane.comp.python.wxpython.devel/3114):
> Looks like the installer on windows does not include
> wx/lib/myole4ax.tlb and the brand new comtypes based ActiveX stuff
> does not work.
> After getting the missing stuff from SVN import errors go away.
Oops. Sorry about that. For the record here is the link to get the file.
http://trac.wxwidgets.org/browser/wxPython/branches/WX_2_8_BRANCH/wx/lib/myole4ax.tlb
How can I resolve the problem or do I need to switch back to the older versions? I'm stuck. Any help in this regards would be highly appreciated.
Thanks.