Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python integration issue - matlab folders missing from LD_LIBRARY_PATH #132

Open
dsuedholt opened this issue Jan 20, 2025 · 1 comment
Open

Comments

@dsuedholt
Copy link

Hello,

I'd like to use the MATLAB python engine within a github workflow. However, the following steps fail:

steps:
  - uses: actions/setup-python@v5

  - uses: matlab-actions/setup-matlab@v2

  - run: python -m pip install matlabengine

The MATLAB setup is successful, but installing matlabengine fails with

RuntimeError: MATLAB R2024b installation not found. Install to default location, or add <matlabroot>/bin/glnxa64 to LD_LIBRARY_PATH, where <matlabroot> is the root of a MATLAB R2024b installation.

and an equivalent error on MacOS.

Would it be possible to modify this action to edit LD_LIBRARY_PATH accordingly? Thanks!

@mcafaro
Copy link
Member

mcafaro commented Jan 22, 2025

Hi @dsuedholt,

You can add <matlabroot>/bin/glnxa64 to LD_LIBRARY_PATH by using the matlabroot output and a bash step that sets an environment variable. However, it is currently only possible to use MATLAB Engine on a self-hosted runner with a pre-installed and licensed version of MATLAB. Please see issue #22 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants