2

I am using Ubuntu 17.10

Python version: 2.7.14 Anaconda

I have Matlab R2017b installed. I also installed pymatlab-0.2.3

When I run following commands in python, I get "Segmentation fault (core dumped)" and ipython closes.

import pymatlab session = pymatlab.session_factory(options = 'nodesktop -nodisplay')

Also, when I debugged it using gdb, it gives following stack trace:

Starting program: /home/jsingla/anaconda2/bin/python test.py [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. 0x00007ffff17f8029 in engOutputBuffer () from /usr/local/MATLAB/R2017b/bin/glnxa64/libeng.so

5
  • Did you make sure of requirements here: pypi.python.org/pypi/pymatlab? Especially cshell and path variable. Also, check numpy version Commented Jan 31, 2018 at 4:55
  • I have downgraded my numpy version to 1.3.0 and I am using python 2.7 You think I also need to go to Matlab2013a?? Because I used to have this working on Ubuntu 14.04 with latest numpy and Matlab, but now I have shifted to Ubuntu 17.10 and it stopped working. Commented Feb 1, 2018 at 0:51
  • Oh it might have something to do with ubuntu version. Generally, if you are not a Linux enthusiast and don't want to spend time debugging random issues you should use LTS version (16.04 in this case) Commented Feb 1, 2018 at 1:18
  • btw is your matlab launching without python? Try running matlab nodesktop -nodisplay on terminal Commented Feb 1, 2018 at 1:18
  • it is launching without python Commented Feb 1, 2018 at 5:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.