Giter Site home page Giter Site logo

Comments (14)

MarkJThomas avatar MarkJThomas commented on July 26, 2024

I think it's related to MATLAB reading the code, and I thought I had it installed but maybe that is the reason?
tyi

from antrax.

asafgal avatar asafgal commented on July 26, 2024

from antrax.

MarkJThomas avatar MarkJThomas commented on July 26, 2024

I didn't, I am not technically sound - do you have/or point me in the direction of how I can do that please?

from antrax.

asafgal avatar asafgal commented on July 26, 2024

See in the installation instructions:

export ANTRAX_PATH=<full path to anTraX repository>
export ANTRAX_USE_MCR=False

You can verify the variables by typing in terminal while inside the conda environment:

echo $ANTRAX_PATH

from antrax.

MarkJThomas avatar MarkJThomas commented on July 26, 2024

ty, can I just confirm I need to install MATLAB?

from antrax.

asafgal avatar asafgal commented on July 26, 2024

from antrax.

MarkJThomas avatar MarkJThomas commented on July 26, 2024

I don't have any of them installed or a MATLAB license - do you download it here (MCR): https://uk.mathworks.com/products/compiler/matlab-runtime.html

Please forgive all the questions! This is quite new to me :)

from antrax.

asafgal avatar asafgal commented on July 26, 2024

Yes, choose version R2019a.

Don't worry about it! hope it will work out for you

from antrax.

MarkJThomas avatar MarkJThomas commented on July 26, 2024

Thank you for your support! I managed to get MATLAB installed and connect the paths, and it says Welcome to AnTrax, however, I get this error now:

dyld: Library not loaded: @rpath/libmwlaunchermain.dylib
Referenced from: /Users/markthomas/Desktop/Home/MRes/Other_chapters/Ants/anTraX/bin/antrax_maci64_mcr_interface.app/Contents/MacOS/antrax_maci64_mcr_interface
Reason: image not found

Do you know what that is referring too?

tyi

from antrax.

asafgal avatar asafgal commented on July 26, 2024

Hey Mark, sorry for the delayed reply.

You also need to define the path to MCR (I'm guessing that what you use):

export ANTRAX_MCR=<full path to MCR installation>

Try to follow the installation steps in the docs!

from antrax.

MarkJThomas avatar MarkJThomas commented on July 26, 2024

Thank you! I did but I didn't know which folder to define the path too, there's a lot of different ones. When I added the path to the main folder nothing opened, then when I defined it to the current folder it opens but I get the above error message. These are the paths currently loaded in my .zprofile:

Screenshot 2021-11-04 at 15 22 24

from antrax.

asafgal avatar asafgal commented on July 26, 2024

from antrax.

MarkJThomas avatar MarkJThomas commented on July 26, 2024

updated but just got the same error message:

dyld: Library not loaded: @rpath/libmwlaunchermain.dylib
Referenced from: /Users/markthomas/Desktop/Home/MRes/Other_chapters/Ants/anTraX/bin/antrax_maci64_mcr_interface.app/Contents/MacOS/antrax_maci64_mcr_interface
Reason: image not found
(tf15) markthomas@Marks-Air ~ %

Maybe it's just not meant to be :D

Screenshot 2021-11-04 at 17 40 04

from antrax.

janamach avatar janamach commented on July 26, 2024

I just installed anTraX on a new work computer running Ubuntu 20.04. I had anTraX working on multiple other machines, so I just copied all my config files as I usually do (which usually works). But not this time. For whatever reason I got this error message:

$ antrax configure 

==================================================================================

Welcome to anTraX - a software for tracking color tagged ants (and other insects)

==================================================================================

02/03/22 21:12:54 -D- antrax cli entry point
02/03/22 21:12:54 -D- running matlab mcr 
02/03/22 21:12:54 -D- command is: /home/jana/src/anTraX/bin/antrax_glnxa64_mcr_interface antrax
/home/jana/src/anTraX/bin/antrax_glnxa64_mcr_interface: error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory
02/03/22 21:12:54 -D- matlab app exited with code 127

A quick search for libmwlaunchermain lead me to your post, @MarkJThomas. On my system, something weird has happened and the library was not loading even though the correct LD_LIBRARY_PATH was set.

A similar issue is discussed here:
https://mathworks.com/matlabcentral/answers/267562-how-can-i-resolve-this-mcc-runtime-error-cannot-open-shared-object-library#answer_211306
And I found my "solution" here:
https://mathworks.com/help/compiler/mcr-path-settings-for-run-time-deployment.html

The "solution" I found is bizarre, but it works for some reason:

LD_LIBRARY_PATH=/usr/local/MATLAB/MATLAB_Runtime/v96/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v96/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v96/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v96/extern/bin/glnxa64

mypath=$LD_LIBRARY_PATH
mypath="${mypath:+${mypath}:}"
export LD_LIBRARY_PATH=$mypath

And then antrax loads normally:

$ antrax configure

==================================================================================

Welcome to anTraX - a software for tracking color tagged ants (and other insects)

==================================================================================

02/03/22 21:47:08 -D- antrax cli entry point
02/03/22 21:47:08 -D- running matlab mcr 
02/03/22 21:47:08 -D- command is: /home/jana/src/anTraX/bin/antrax_glnxa64_mcr_interface antrax
21:47:14 -D- starting antrax configure app
app closing..
02/03/22 21:47:20 -D- matlab app exited with code 0

While doing simply this LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}" doesn't help. And the above "solution" makes little sense, because LD_LIBRARY_PATH barely changes after the procedure:

$ echo ${LD_LIBRARY_PATH}
/usr/local/MATLAB/MATLAB_Runtime/v96/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v96/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v96/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v96/extern/bin/glnxa64::

I really don't understand this, it's very weird... Anyhow, I am writing this here in case somebody else runs into this problem.

@MarkJThomas looking at your post, I think you should try following the steps in the link I posted above for macOS. If it's a library not found thing, it should be fixable.

from antrax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.