【问题标题】:kernel32 module not found未找到 kernel32 模块
【发布时间】:2014-08-14 23:34:32
【问题描述】:

运行 pymatlab ,更具体地说是命令 session = pymatlab.session_factory() 导致

Exception AttributeError: "'MatlabSession' 对象没有属性 'engine'" in > 被忽略

这里建议的解决方案

Running MATLAB from Python

是将C:\Python27\lib\site-packages\pymatlab\sessionfactory.py中的第51行从

MatlabSession(path=basedir,bufsize=output_buffer_size) 

到:

MatlabSession(basedir,bufsize=output_buffer_size) 

我做到了。

但是,现在在模块 ctypes 中出现了另一个问题:

C:\Python27\lib\ctypes\__init__.pyc in __init__(self, name, mode, handle, use_errno, use_last_error)
    363 
    364         if handle is None:
--> 365             self._handle = _dlopen(self._name, mode)
    366         else:
    367             self._handle = handle

WindowsError: [Error 126] The specified module could not be found

设置断点表明有问题的模块是kernel32

有什么建议吗?我正在运行 Windows 8 和 64 位 Python 2.7

谢谢

【问题讨论】:

    标签: python matlab kernel32


    【解决方案1】:

    更改 matlab.py 中的第 56 行

    将“glnxa64”替换为“win32”

    【讨论】:

      猜你喜欢
      • 2018-04-15
      • 2020-09-28
      • 2019-09-11
      • 1970-01-01
      • 2020-09-24
      • 2019-09-23
      • 2018-10-23
      相关资源
      最近更新 更多