Hello All,
When using comtypes from a frozen application (using cx_freeze), I occasionally
get a failure when trying to load a copy of propsys.tlb.
The stack at the point of failure is:
File "comtypes\client\_generate.py", line 112, in GetModule
File "comtypes\client\_generate.py", line 176, in _CreateWrapper
File "comtypes\tools\tlbparser.py", line 750, in generae_module
File "comtypes\tools\codegenerator.py", line 238, in generate_code
File "comtypes\tools\codegenerator.py", line 186, in generate_all
File "comtypes\tools\codegenerator.py", line 182, in generate
File "comtypes\tools\codegenerator.py", line 693, in ComInterface
File "comtypes\tools\codegenerator.py", line 182, in generate
File "comtypes\tools\codegenerator.py", line 714, in ComInterfaceHead
File "comtypes\tools\codegenerator.py", line 182, in generate
File "comtypes\tools\codegenerator.py", line 621, in External
File "comtypes\client\_generate.py", line 149, in GetModule
File "comtypes\client\_generate.py", line 26, in _my_import
File "lib\importlib\_bootstrap.py", line 1558, in _find_and_load
File "lib\importlib\_bootstrap.py", line 1522, in _find_and_load_unlocked
ImportError: No module named 'comtypes.gen.stdole'
The only comtypes logs I see are before then are:
2015-05-11 12:24:39,326 - comtypes.client._generate - INFO :: Could not import
comtypes.gen._2CDA3294_6C4F_4020_B161_27C530C81FA6_0_1_0: No module named
'comtypes.gen._2CDA3294_6C4F_4020_B161_27C530C81FA6_0_1_0'
2015-05-11 12:24:39,435 - comtypes.client._generate - INFO :: Could not import
comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0: No module named
'comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0'
2015-05-11 12:24:39,498 - comtypes.client._generate - INFO :: Could not import
comtypes.gen.stdole: No module named 'comtypes.gen.stdole'
The library generated for comtypes.gen.stdole can be seen in the created
temporary comtypes.client.gen_dir.
We are using python 3.3.5, and from the code in _bootstrap.py, it appears that
parent_module.__path__ is undefined, but since I believe parent_module should
be an alias to comtypes.gen, I have not been able to detect how this may
happen.
Since I cannot reliably reproduce this issue, I have not filed a defect on
github, but I was wondering if anyone might know what is going on.
Thanks,
Steven
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users