mrkrd / matlab_wrapper

Easy to use MATLAB wrapper for Python
GNU General Public License v3.0
78 stars 23 forks source link

OSX bug in engGetVariable() #13

Closed hackermd closed 9 years ago

hackermd commented 9 years ago

trying to evaluate a simple Matlab script 'test.m'

#!/usr/bin/env python
import matlab_wrapper

def main():
    matlab = matlab_wrapper.MatlabSession()
    matlab.eval('test')

if __name__ == "__main__":
    main()

returned

/usr/local/lib/python2.7/site-packages/matlab_wrapper/matlab_session.py:353: UserWarning: You are using MATLAB version 8.3 (R2014a) on OS X, which appears to have a bug in engGetVariable().  You will only be able to use arrays of type double.
  warnings.warn("You are using MATLAB version 8.3 (R2014a) on OS X, which appears to have a bug in engGetVariable().  You will only be able to use arrays of type double.")
mrkrd commented 9 years ago

Everything looks fine (apart from the warning, but that's a problem with this MATLAB version and not matlab_wrapper; you can only communicate double arrays between Python and MATLAB; check the FAQ [1]).

What's the problem here?

[1] https://github.com/mrkrd/matlab_wrapper/blob/master/FAQ.rst#error-using-save-cant-write-file-stdio