matlab engine seems to unlink a C++ library.

Open
#15 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, matlab, python
Domain
backend

Research direction

Start by reproducing the documented import order with matlab.engine and npy_patcher in the stated Ubuntu, Python, and MATLAB environment, then inspect which shared-library loading behavior produces the GLIBCXX_3.4.29 error. Done means both imports work together without the libstdc++ version failure.

Written by the indexing model from the issue text.

Description

I've developed a python package (that's written in C++, compiled using pybind11 and has python bindings) called npy-patcher.

Problem

When I include import matlab.engine into a script, this breaks my module like so:

import matlab.engine
from npy_patcher import PatcherFloat
Error Message
ImportError: /usr/local/MATLAB/R2022b/extern/bin/glnxa64/../../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/anaconda3/envs/torch/lib/python3.8/site-packages/npy_patcher.cpython-38-x86_64-linux-gnu.so)
Environment
- Linux: Ubuntu 22.04.1 LTS
- python==3.8.12
- matlabengine==9.13.1
- Matlab: R2022b
Dominant language
Python
Stars
97
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mathworks/matlab-engine-for-python

All issues in mathworks/matlab-engine-for-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.