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

Errors with Pymatbridge #252

Open
amine-aboufirass opened this issue May 26, 2017 · 2 comments
Open

Errors with Pymatbridge #252

amine-aboufirass opened this issue May 26, 2017 · 2 comments

Comments

@amine-aboufirass
Copy link

Hello.

I am using Spyder with Python 3.5. I would like to be able to work with the pymatbridge package to control Matlab from Python. The installation was relatively smooth with a couple of attempts of the following lines in the Anaconda prompt:

conda install -c conda-forge pymatbridge=0.5.2

The only hiccup was that I had to downgrade Python from 3.6 to 3.5. I believe in Ipython the package is recognized but I am getting a couple of nasty errors blocking all movement from here. See below the command history:

Python 3.5.3 |Anaconda custom (64-bit)| (default, May 15 2017, 10:43:23) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 6.0.0 -- An enhanced Interactive Python.

from pymatbridge import Matlab
C:\Anaconda\lib\site-packages\IPython\nbformat.py:13: ShimWarning: The `IPython.nbformat` package has been deprecated since IPython 4.0. You should import from nbformat instead.
  "You should import from nbformat instead.", ShimWarning)

from pymatbridge import Matlab

mlab = Matlab()

mlab.start()
Starting MATLAB on ZMQ socket tcp://127.0.0.1:50982
Send 'exit' command to kill the server
............................................................MATLAB session timed out after 60 seconds
Traceback (most recent call last):

  File "<ipython-input-4-aa83ac19caf2>", line 1, in <module>
    mlab.start()

  File "C:\Anaconda\lib\site-packages\pymatbridge\pymatbridge.py", line 225, in start
    raise ValueError("%s failed to start" % self._program_name())

ValueError: MATLAB failed to start


What is going on here? I'm seeing several similar issues online but none of which actually solve the problem. Could anyone provide some additional guidance? Thanks

@arokem
Copy link
Owner

arokem commented Jun 18, 2017

Did this issue resolve? Looks like it might have (#253)?

@pitrish
Copy link

pitrish commented Apr 28, 2020

@awa5114 have you been able to solve it? I have the same problem.

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

3 participants