python - Install pymatbridge on Windows -
i trying use pymatbridge. using python 2.7.9 64 bits on windows , canopy 1.5.5 , when put following code in ipython notebook
from pymatbridge import matlab mlab = matlab(executable='matlab') mlab.start()
i receive error:
zmqerror traceback (most recent call last) in ()
1 pymatbridge import matlab
2 mlab = matlab(executable='matlab')
----> 3 mlab.start()
c:\users\administrateur\appdata\local\enthought\canopy\user\lib\site-packages\pymatbridge\pymatbridge.pyc in start(self) 205 port = self.socket.bind_to_random_port(self.socket_addr) 206 self.socket_addr = self.socket_addr + ":%s"%port --> 207 self.socket.unbind(self.socket_addr) 208 209 # start matlab server in new process
c:\users\utilisateur\appdata\local\enthought\canopy\app\appdata\canopy-1.5.5.3123.win-x86_64\lib\site-packages\zmq\backend\cython\socket.pyd in zmq.backend.cython.socket.socket.unbind (zmq\backend\cython\socket.c:5247)()
zmqerror: no such file or directory
i've tried pip install pyzmq. doing wrong?
under executable
should not call matlab
add path location of matlab executable. in case (using osx) is: '/applications/matlab_r2014b.app/bin/matlab'
.
i found typing matlabroot
in matlab command window (returns /applications/matlab_r2014b.app
) , adding /bin/matlab
.
in cases mlab = matlab()
works, see my earlier error running pymatbridge on cluster , pymatbridge github page.
Comments
Post a Comment