Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command "importdata" causes an error #9

Open
tomberlan opened this issue Feb 3, 2016 · 0 comments
Open

command "importdata" causes an error #9

tomberlan opened this issue Feb 3, 2016 · 0 comments

Comments

@tomberlan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant