基于pymqi开发的程序,打包exe时,运行报错。

martinsun 发布于 2016/07/14 14:20
阅读 415
收藏 0

报错信息:


Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "D:\Python27\Lib\site-packages\PyInstaller
 line 389, in load_module
    exec(bytecode, module.__dict__)
  File "build\bdist.win32\egg\pymqi\__init__.py",
  File "D:\Python27\Lib\site-packages\PyInstaller
 line 389, in load_module
    exec(bytecode, module.__dict__)
  File "build\bdist.win32\egg\pymqi\pymqe.py", li
  File "build\bdist.win32\egg\pymqi\pymqe.py", li
ImportError: DLL load failed: 找不到指定的模块。
?


--------------------------------------


pymqe文件:


def __bootstrap__():
    global __bootstrap__, __loader__, __file__
    import sys, pkg_resources, imp
    __file__ = pkg_resources.resource_filename(__name__, 'pymqe.pyd')
    __loader__ = None; del __bootstrap__, __loader__
    imp.load_dynamic(__name__,__file__)
__bootstrap__()


打包的时候没有识别到依赖文件?pymqe.pyd,手工添加依赖文件后,还是运行报错,求大神指点?


加载中
返回顶部
顶部