matlab engine seems to unlink a C++ library.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathworks/matlab-engine-for-python
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Support sparse array Open
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in mathworks/matlab-engine-for-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Openarea: ci bug perceived difficulty: 3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/clickhouse-connect#1057 ·