python-matlab-bridge icon indicating copy to clipboard operation
python-matlab-bridge copied to clipboard

command "importdata" causes an error

Open tomberlan opened this issue 9 years ago • 0 comments
trafficstars

Hi, Thank you for your very helpful work. I successfully used it to call a matlab script from a pyhton program. However, as soon as I include the MATLAB command "importdata", I got an error. I copy below the complete error message: Traceback (most recent call last): File "./solver.py", line 72, in print solve_it(input_data) File "./solver.py", line 19, in solve_it print mlab.run('test.m', {'address': sys.argv})['result'] File "/Users/tbegin/Desktop/Discrete-Optimization/knapsack/pymatbridge/init.py", line 87, in run result = self._open_page(self.eval_func, page_args) File "/Users/tbegin/Desktop/Discrete-Optimization/knapsack/pymatbridge/init.py", line 94, in _open_page return json.loads(page.read()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 383, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

Hope you can help me with that.

tomberlan avatar Feb 03 '16 23:02 tomberlan