Skip to content

mlab.matlabpipe.MatlabConnectionError: timeout #9

@ruozhichen

Description

@ruozhichen

When I executed the following commands, trying to call matlab function, it failed and the error trace is given at the end.
from mlab.releases import latest_release as matlab
matlab.plot([1,2,3,4,5],-'o')

It happened in Ubuntu. And I tested mlab in Windows before, it succeeded.
So I don't know why it doesn't work in Ubuntu, I try to solve it but found nothing,
I will be appreciated If anyone has some suggestions.
If you have solved it before or know this error, please tell me.

Error:
File "/usr/local/lib/python2.7/site-packages/mlab/mlabwrap.py", line 607, in mlab_command
return self._do(name, *args, **update({'nout':nout}, kwargs))
File "/usr/local/lib/python2.7/site-packages/mlab/mlabwrap.py", line 547, in _do
res = self._get_values(resSL)
File "/usr/local/lib/python2.7/site-packages/mlab/mlabwrap.py", line 483, in _get_values
res.append(self._get(varname))
File "/usr/local/lib/python2.7/site-packages/mlab/mlabwrap.py", line 568, in _get
vartype = self._var_type(varname)
File "/usr/local/lib/python2.7/site-packages/mlab/mlabwrap.py", line 436, in var_type
res_type = mlabraw.get(self.session, "TMP_CLS
")
File "/usr/local/lib/python2.7/site-packages/mlab/mlabraw.py", line 72, in get
return matlab.get(var_name)
File "/usr/local/lib/python2.7/site-packages/mlab/matlabpipe.py", line 250, in get
self._read_until('start_binary\n', on_new_output=on_new_output)
File "/usr/local/lib/python2.7/site-packages/mlab/matlabpipe.py", line 294, in _read_until
raise MatlabConnectionError('timeout')
mlab.matlabpipe.MatlabConnectionError:timeout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions