arokem / python-matlab-bridge

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

Invalid Mex-file error #186

Open srvanrell opened 9 years ago

srvanrell commented 9 years ago

Hi there,

Running a simple script (just to test pymatbridge installation) I get an error that I don't understand.

This is the script:

#!/usr/bin/python 
from pymatbridge import Matlab

mlab = Matlab()
mlab.start()
print "Matlab started?", mlab.started
print "Matlab is connected?", mlab.is_connected()
mlab.run_code("count10 = 1:10")
mlab.run_code("magic_matrix = magic(5)")
mlab.stop()

... and this is the log:

Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge
Send 'exit' command to kill the server

                            < M A T L A B (R) >
                  Copyright 1984-2014 The MathWorks, Inc.
                   R2014b (8.4.0.150421) 64-bit (glnxa64)
                             September 15, 2014

To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.

Invalid MEX-file
'/usr/local/lib/python2.7/dist-packages/pymatbridge/matlab/messenger.mexa64':
libzmq.so.3: no se puede abrir el fichero del objeto compartido: No existe el
fichero o el directorio

Error in matlabserver (line 7)
messenger('init', socket_address);

what could be happening? or what could I do?

arokem commented 9 years ago

How did you install the bridge?

What OS are you using? Python version?

On Thu, May 7, 2015 at 9:34 AM, Sebastián Vanrell notifications@github.com wrote:

Hi there,

Running a simple script (just to test pymatbridge installation) I get an error that I don't understand.

This is the script:

!/usr/bin/python

from pymatbridge import Matlab

mlab = Matlab() mlab.start() print "Matlab started?", mlab.started print "Matlab is connected?", mlab.is_connected() mlab.run_code("count10 = 1:10") mlab.run_code("magic_matrix = magic(5)") mlab.stop()

... and this is the log:

Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge Send 'exit' command to kill the server

                        < M A T L A B (R) >
              Copyright 1984-2014 The MathWorks, Inc.
               R2014b (8.4.0.150421) 64-bit (glnxa64)
                         September 15, 2014

To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com.

Invalid MEX-file '/usr/local/lib/python2.7/dist-packages/pymatbridge/matlab/messenger.mexa64': libzmq.so.3: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

Error in matlabserver (line 7) messenger('init', socket_address);

what could be happening? or what could I do?

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

srvanrell commented 9 years ago

It wasn't installed for myself. I have passed the instructions to the administrator of the cluster. pymatbridge was installed using pip, assuming he followed my instructions.

That machine has Debian (uname description: Linux neptuno 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64) and Python 2.7.3.

2015-05-07 13:39 GMT-03:00 Ariel Rokem notifications@github.com:

How did you install the bridge?

What OS are you using? Python version?

On Thu, May 7, 2015 at 9:34 AM, Sebastián Vanrell < notifications@github.com> wrote:

Hi there,

Running a simple script (just to test pymatbridge installation) I get an error that I don't understand.

This is the script:

!/usr/bin/python

from pymatbridge import Matlab

mlab = Matlab() mlab.start() print "Matlab started?", mlab.started print "Matlab is connected?", mlab.is_connected() mlab.run_code("count10 = 1:10") mlab.run_code("magic_matrix = magic(5)") mlab.stop()

... and this is the log:

Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge Send 'exit' command to kill the server

< M A T L A B (R) > Copyright 1984-2014 The MathWorks, Inc. R2014b (8.4.0.150421) 64-bit (glnxa64) September 15, 2014

To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com.

Invalid MEX-file

'/usr/local/lib/python2.7/dist-packages/pymatbridge/matlab/messenger.mexa64': libzmq.so.3: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

Error in matlabserver (line 7) messenger('init', socket_address);

what could be happening? or what could I do?

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

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

arokem commented 9 years ago

Thanks for reporting back. I think that this should be fixed in the upcoming (long overdue...) release. This will take a couple of weeks though. Sorry for the delay!

On Thu, May 7, 2015 at 10:03 AM, Sebastián Vanrell <notifications@github.com

wrote:

It wasn't installed for myself. I have passed the instructions to the administrator of the cluster. pymatbridge was installed using pip, assuming he followed my instructions.

That machine has Debian (uname description: Linux neptuno 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64) and Python 2.7.3.

2015-05-07 13:39 GMT-03:00 Ariel Rokem notifications@github.com:

How did you install the bridge?

What OS are you using? Python version?

On Thu, May 7, 2015 at 9:34 AM, Sebastián Vanrell < notifications@github.com> wrote:

Hi there,

Running a simple script (just to test pymatbridge installation) I get an error that I don't understand.

This is the script:

!/usr/bin/python

from pymatbridge import Matlab

mlab = Matlab() mlab.start() print "Matlab started?", mlab.started print "Matlab is connected?", mlab.is_connected() mlab.run_code("count10 = 1:10") mlab.run_code("magic_matrix = magic(5)") mlab.stop()

... and this is the log:

Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge Send 'exit' command to kill the server

< M A T L A B (R) > Copyright 1984-2014 The MathWorks, Inc. R2014b (8.4.0.150421) 64-bit (glnxa64) September 15, 2014

To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com.

Invalid MEX-file

'/usr/local/lib/python2.7/dist-packages/pymatbridge/matlab/messenger.mexa64':

libzmq.so.3: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

Error in matlabserver (line 7) messenger('init', socket_address);

what could be happening? or what could I do?

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

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

.

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

srvanrell commented 9 years ago

Ok. Thanks! I appreciate your answers. Cheers,

Sebastián

2015-05-07 14:05 GMT-03:00 Ariel Rokem notifications@github.com:

Thanks for reporting back. I think that this should be fixed in the upcoming (long overdue...) release. This will take a couple of weeks though. Sorry for the delay!

On Thu, May 7, 2015 at 10:03 AM, Sebastián Vanrell < notifications@github.com

wrote:

It wasn't installed for myself. I have passed the instructions to the administrator of the cluster. pymatbridge was installed using pip, assuming he followed my instructions.

That machine has Debian (uname description: Linux neptuno 3.2.0-4-amd64

1

SMP Debian 3.2.65-1+deb7u1 x86_64) and Python 2.7.3.

2015-05-07 13:39 GMT-03:00 Ariel Rokem notifications@github.com:

How did you install the bridge?

What OS are you using? Python version?

On Thu, May 7, 2015 at 9:34 AM, Sebastián Vanrell < notifications@github.com> wrote:

Hi there,

Running a simple script (just to test pymatbridge installation) I get an error that I don't understand.

This is the script:

!/usr/bin/python

from pymatbridge import Matlab

mlab = Matlab() mlab.start() print "Matlab started?", mlab.started print "Matlab is connected?", mlab.is_connected() mlab.run_code("count10 = 1:10") mlab.run_code("magic_matrix = magic(5)") mlab.stop()

... and this is the log:

Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge Send 'exit' command to kill the server

< M A T L A B (R) > Copyright 1984-2014 The MathWorks, Inc. R2014b (8.4.0.150421) 64-bit (glnxa64) September 15, 2014

To get started, type one of these: helpwin, helpdesk, or demo. For product information, visit www.mathworks.com.

Invalid MEX-file

'/usr/local/lib/python2.7/dist-packages/pymatbridge/matlab/messenger.mexa64':

libzmq.so.3: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio

Error in matlabserver (line 7) messenger('init', socket_address);

what could be happening? or what could I do?

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

— Reply to this email directly or view it on GitHub <

https://github.com/arokem/python-matlab-bridge/issues/186#issuecomment-99932722

.

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

.

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

arokem commented 9 years ago

OK - just released a new version of this, which hopefully solves this issue. Could you please give it another try and report back?

srvanrell commented 9 years ago

I'll give it a try and will report back as soon as possible.

Sebastián

2015-05-19 22:13 GMT-03:00 Ariel Rokem notifications@github.com:

OK - just released a new version of this, which hopefully solves this issue. Could you please give it another try and report back?

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

srvanrell commented 9 years ago

I tried the same test script as above and I get the error attached here. HTH.

Sebastián

2015-05-19 22:13 GMT-03:00 Ariel Rokem notifications@github.com:

OK - just released a new version of this, which hopefully solves this issue. Could you please give it another try and report back?

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

arokem commented 9 years ago

What version of pymatbridge are you using? What happens when you type the following?

import pymatbridge
pymatbridge.__version__
srvanrell commented 9 years ago

Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import pymatbridge pymatbridge.version '0.5.2'

2015-05-21 20:42 GMT-03:00 Ariel Rokem notifications@github.com:

What version of pymatbridge are you using? What happens when you type the following?

import pymatbridge pymatbridge.version

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

arokem commented 9 years ago

Sigh. I was hoping we would get over that with this version. Let me think about this.