python-matlab-bridge: Fail to start on RHEL (using the Canopy python distribution)

Hi,

I’ve installed pymatbridge, while using the Canopy python distribution. I followed the instructions on how to install pip packages on canopy (from here: https://support.enthought.com/hc/en-us/articles/204469690-Installing-packages-into-Canopy-User-Python-from-the-OS-command-line).

Then, running the following on the ipython notebook, fails to start:

from pymatbridge import Matlab
mlab = Matlab() # I also tried writing the explicit path/matlab 

mlab.start()

and results with:

Starting MATLAB on ZMQ socket ipc:///tmp/pymatbridge-65d47756-5dfc-4664-a666-233d18c23393
Send 'exit' command to kill the server
............................................................MATLAB session timed out after 60 seconds

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-2-da824633164b> in <module>()
----> 1 mlab.start()
      2 

~/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pymatbridge/pymatbridge.pyc in start(self)
    223             return self
    224         else:
--> 225             raise ValueError("%s failed to start" % self._program_name())
    226 
    227     def _response(self, **kwargs):

ValueError: MATLAB failed to start

EDIT: Looking on the terminal console. Looks like ipython generates the following errors:

Invalid MEX-file
'~/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pymatbridge/matlab/messenger.mexa64':
/lib64/libc.so.6: version `GLIBC_2.17' not found (required by
~/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pymatbridge/matlab/messenger.mexa64)

Thanks a lot for your assistance!

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

Okay, I see. It’s the matlab stdc++ library (in matlab/R2014b/sys/os/glnxa64) that is missing GLIBCXX_3.4.20