opencobra / cobratoolbox

The COnstraint-Based Reconstruction and Analysis Toolbox. Documentation:
https://opencobra.github.io/cobratoolbox
Other
252 stars 317 forks source link

TranslateSBML due to hard coded path in TranslateSBML.mexmaci64 #602

Closed pcm32 closed 7 years ago

pcm32 commented 7 years ago

[Please include a short description of problem here]

When executing TranslateSBML with one of the test models (Ec_iAF1260_flux1.xml) it produces an error for what it seems to be a hard coded path to a library:

Trial>> TranslateSBML('/Users/pmoreno/Development/cobratoolbox/test/models/Ec_iAF1260_flux1.xml')
Invalid MEX-file '/Users/pmoreno/Development/cobratoolbox/binary/maci64/bin/TranslateSBML.mexmaci64': Missing
dependent shared libraries:
'/Users/skeating/working/buildmatlab/src/bindings/matlab/TranslateSBML.mexmaci64' required by
'/Users/pmoreno/Development/cobratoolbox/binary/maci64/bin/TranslateSBML.mexmaci64'

This is on the latest version of Matlab R2017a (9.2.0.556344) for macOS. I guess that you need to recompile that mexmaci64 binary, but I don't use matlab often to know how to do this.

I hereby confirm that I have:

pcm32 commented 7 years ago

An update on this... if I do a symlink from the missing path to the one I actually have, it seems to be working...

No, sorry, took ages, gave an horrible malloc error, and didn't work, but error was different.

rmtfleming commented 7 years ago

Hi Pablo, TranslateSBML is maintained by our SBML colleagues.

Hi Sarah, this looks like something you might be able to help with.

Regards, Ronan

On 25 June 2017 at 08:50, Pablo Moreno notifications@github.com wrote:

An update on this... if I do a symlink from the missing path to the one I actually have, it seems to work... but of course this is not a proper fix for this. Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/opencobra/cobratoolbox/issues/602#issuecomment-310886153, or mute the thread https://github.com/notifications/unsubscribe-auth/ACDCOi6Lqf3JuWnNFK6-9roHpMsisfxHks5sHgNIgaJpZM4OEh0r .

-- --

Mr. Ronan MT Fleming B.V.M.S. Dip. Math. Ph.D.

Senior research associate (EN) == Chercheur (FR), Principal investigator, Systems Biochemistry Group, wwwen.uni.lu/lcsb/research/systems_biochemistry Luxembourg Centre for Systems Biomedicine, University of Luxembourg, Campus Belval, 6, avenue du Swing, L-4367 Belvaux. & National Centre of Excellence in Research on Parkinson’s disease www.parkinson.lu & Adjunct Assistant Professor, Division of Analytical Biosciences, Leiden Academic Centre for Drug Research, Faculty of Science, University of Leiden. http://analyticalbiosciences.leidenuniv.nl

An introduction to Parkinson's research with stem cells in Luxembourg (5 min video) https://www.youtube.com/watch?v=drOWKyTL0K8

Mobile: +352 621 175 112 Office: +352 466 644 5528 Skype: ronan.fleming

(This message is confidential and may contain privileged information. It is intended for the named recipient only. If you receive it in error please notify me and permanently delete the original message and any copies.)

syarra commented 7 years ago

@pcm32, this issue has already been filed a couple of months ago on the libSBML issue tracker It hasn't been fixed yet. However, the mex-files are working properly on R2016b. If you can downgrade to R2016b, you will be safe!

pcm32 commented 7 years ago

Thanks @syarra and @rmtfleming! I was only using a trial of Matlab (so would only get latest version I guess) while on a workshop from Maike Aurich, and got the error, so I'd thought I'd report it. I'm more of a python guy when it comes to COBRA ;-).

syarra commented 7 years ago

Some binaries for using SBML on MATLAB R2017a on macOS are provided here thanks to Sarah Keating.