Skip to content

TranslateSBML_RAVEN.m fails on Apple M4 #582

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

Open
NantiaL opened this issue Apr 24, 2025 · 3 comments
Open

TranslateSBML_RAVEN.m fails on Apple M4 #582

NantiaL opened this issue Apr 24, 2025 · 3 comments

Comments

@NantiaL
Copy link

NantiaL commented Apr 24, 2025

Reading a simple model in .xml format using

model = importModel('modelxml');
returns the error:

Execution of script TranslateSBML_RAVEN as a function is not supported:
/Users/admin/RAVEN-main/software/libSBML/TranslateSBML_RAVEN.m

Error in importModel (line 142)
[modelSBML,errorMsg] = TranslateSBML_RAVEN(fileName,0,0,[1 1]);

I followed all the instructions provided for installing RAVEN, the COBRA Toolbox, and libSBML, as well as the solution mentioned here. However, I still get the same problem.

Here is how I installed and configured libSBML in MATLAB following the instructions:

  1. ./configure --with-matlab=/Applications/MATLAB_R2024a.app
  2. make
  3. make install
  4. addpath('/usr/local/lib')
    After that, I changed to the directory libsbml\src\binding\matlab, but running the buildSBML.m script was not successful.
@edkerk
Copy link
Member

edkerk commented Apr 25, 2025

What OS are you running, on what type of system?

@NantiaL
Copy link
Author

NantiaL commented Apr 25, 2025

I'm running macOS on an Apple device with an M4 chip.

@simas232
Copy link
Collaborator

simas232 commented May 6, 2025

@NantiaL, could you please try to replace the existing libSBML functions (located in RAVEN/software/libSBML) with the following ones from the latest libSBML release? Just make sure that all files which begin with "TranslateSBML" and "OutputSBML" are renamed into "TranslateSBML_RAVEN" and "OutputSBML_RAVEN" correspondingly. Once you do this and run checkInstallation, you might get the warnings from the Security Center about the unknown binary files. To fix this, open the Security Center and grant the permissions to both TranslateSBML and OutputSBML. Upon this, checkInstallation should work fine.

@edkerk edkerk changed the title Execution of TranslateSBML_RAVEN.m fails TranslateSBML_RAVEN.m fails on Apple M4 May 9, 2025
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

3 participants