py2exe com dll problem

China☆狼群 提交于 2019-12-03 16:35:30

Per the docs about error R6034, it means you're loading the C runtime libraries wrong because you're missing a "manifest". Per this thread, it seems the needed approach is just:

i found that if i make a manifest file and copy the content of python.exe.manifest everything is working correctly

(can't verify that this is true as I still have no working Windows -- I now do own a cheap refurb Windows machine, got it just to try and help more with such problems, but can't find the antivirus disk and without one of course I can't safely go online).

py2exe's tutorial covers the issues of bundling the runtime libraries and making a manifest for that, and goes in more details than the above-quoted short explanation.

One potential problem I see. You're specifying view as both a package name and a module name. This is confusing as well as not recommended. At least for the purposes of getting help, rename the package to view_p (or something more descriptive) so we can reference one or another.

So now:

modules = ['view_p.view']

and

packages = ['view_p']

And view.py goes in a directory called view_p and in that directory, there should also be a __init__.py.

Another potential problem I see is you're using pywin32 to construct your COM server but you're using the "ctypes_com_server" parameter to py2exe. Maybe this is supported, but it's possible that there are some incompatibility across these implementations that prevents your intended usage.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!