MATLAB Engine Release R2024a Requires libpython3.x-dev Package on Ubuntu 24.04 LTS
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python, ubuntu
- Domain
- operating-systems, tooling
Research direction
Start with src/matlab/init.py lines 48-49 and reproduce the R2024a failure on Ubuntu 24.04 LTS with and without libpython3.x-dev installed. Then locate the installation documentation and dependency checks; done means the documented setup and checks account for this package and the MATLAB Engine starts without the reported import error.
Written by the indexing model from the issue text.
Description
Description:
The MATLAB Engine for Python (release R2024a) on Ubuntu 24.04 LTS requires the installation of the libpython3.x-dev package. Without this package, the user encounters an error at src/matlab/init.py on lines 48-49:
from matlabmultidimarrayforpython import double, single, uint8, int8, uint16, \
int16, uint32, int32, uint64, int64, logical, ShapeError, SizeError
Steps to Reproduce:
- Install MATLAB Engine for Python R2024a on Ubuntu 24.04 LTS.
- Attempt to run a Python script that uses the MATLAB Engine.
Expected Behavior:
The MATLAB Engine should run without errors if all necessary dependencies are installed.
Actual Behavior:
The script fails at src/matlab/init.py on lines 48-49 due to missing dependencies.
Workaround:
Installing the libpython3.x-dev package resolves the issue.
Suggested Resolution:
Update the installation documentation and dependency checks for MATLAB Engine to ensure the libpython3.x-dev package is installed on Ubuntu 24.04 LTS.
System Information:
- MATLAB Engine Version: R2024a
- Operating System: Ubuntu 24.04 LTS
- 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 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
OpenHands/extensions#626 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
CSCfi/sd-search-api#39 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
StevenBlack/hosts#3255 ·