arokem / python-matlab-bridge

A simple Python => MATLAB(R) interface and a matlab_magic for ipython
BSD 2-Clause "Simplified" License
332 stars 97 forks source link

failed to start matlab session from a certain location #226

Open verenamueller opened 8 years ago

verenamueller commented 8 years ago

hey there, I want to start a certain Matlab version cause I just have licence for R2010b but also installed R2013b on my device. So when I start the session with the default command -mlab=Matlab()- it wants to start R2013b, but without licenc I can't use it. And when I try - mlab=Matlab(executable='C:\Program Files\MATLAB\R2010b\bin\matlab.exe') - the Server starts but nothing happens!

Starting MATLAB on ZMQ socket tcp://127.0.0.1:58782 Send 'exit' command to kill the server ............................................................MATLAB session timed out after 60 seconds Traceback (most recent call last): File "<pyshell#6>", line 1, in mlab.start() File "C:\Python34\lib\site-packages\pymatbridge-0.6.dev0-py3.4.egg\pymatbridge\pymatbridge.py", line 227, in start raise ValueError("%s failed to start" % self._program_name()) ValueError: MATLAB failed to start

I use Windows 7 x64-based PC - python 3.4 - pyzmq 14.7.0

Thanks in advance, Verena

isbadawi commented 8 years ago

Have you tried escaping the backslashes, e.g.

'C:\\Program Files\\MATLAB\\R2010b\\bin\\matlab.exe'

Maybe the space too, not sure if it matters in this case.

verenamueller commented 8 years ago

Yes, I tried. But it doesn't helped either. Does this command work on Windows anyway?

arokem commented 8 years ago

pymatbridge does work with Windows, but setup varies from computer to computer and it is hard for us to cover all the uses.

We should be doing a release soon, and this might resolve your issues.

On Sun, Oct 18, 2015 at 11:27 PM, verenamueller notifications@github.com wrote:

Yes, I tried. But it doesn't helped either. Does this command work on Windows anyway?

— Reply to this email directly or view it on GitHub https://github.com/arokem/python-matlab-bridge/issues/226#issuecomment-149115440 .