First time here? Checkout the FAQ!
x
0 votes
by (120 points)

I am unable to run Meshalyzer on my Mac no matter which way I attempt to do so. 

If I follow the tutorial for Basic tissue usage of sub threshold stimulus, I am unable to use the --vizualize command because of a missing path error: 

File "/Users/alexander/Desktop/experiments/tutorials/02_EP_tissue/01_basic_usage/./run.py", line 264, in <module>

    run()    

  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/carputils/tools.py", line 542, in wrapped

    ret = run(args, job)

  File "/Users/alexander/Desktop/experiments/tutorials/02_EP_tissue/01_basic_usage/./run.py", line 259, in run

    job.meshalyzer(geom, data, view)

  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/carputils/job/job.py", line 606, in meshalyzer

    cmd = [settings.execs.MESHALYZER, geom] + args

  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/carputils/settings/paths.py", line 70, in __getattr__

    raise self._exception(attr, path)

carputils.settings.exceptions.CARPUtilsMissingPathError: The path for MESHALYZER was not found (/usr/local/meshalyzer/meshalyzer)

I am not sure if this is a matter of the meshalyzer folder being in the wrong location. I have moved it from downloads, to python frameworks, to carputils with no change. The meshalyzer folder was originally downloaded from https://git.opencarp.org/openCARP/meshalyzer 

following the steps from Meshalyzer GitLab, I am also unable to run the Meshalyzer-v.x-86_64.AppImage file in my terminal despite have made it executable, and using vtk (installed via homebrew). Are there more files or frameworks that I need to download for proper functioning?

This is all done with OpenCarp and carputils downloaded and used in VSCode as a python IDE and terminal shell. I do not have Docker installed. Should I?

Any help to get Meshalyzer running would be greatly appreciated. 

by (570 points)
I think that what is required is to setup the path to the directory where the meshalyzer executable is located.

1. rename  Meshalyzer-v.x-86_64.AppImage to ./meshalyzer (I assume you made it executable already)
2. copy the path to where you saved the meshalyzer
3. open  in `~/.config/carputils/settings.yaml`
4. on the line where `MESHALYZER_DIR` variable is defined paste the path you've just copied

Does it work now?

1 Answer

0 votes
by (17.6k points)

Copying comment as answer

I think that what is required is to setup the path to the directory where the meshalyzer executable is located.

1. rename  Meshalyzer-v.x-86_64.AppImage to ./meshalyzer (I assume you made it executable already)
2. copy the path to where you saved the meshalyzer
3. open  in `~/.config/carputils/settings.yaml`
4. on the line where `MESHALYZER_DIR` variable is defined paste the path you've just copied

Does it work now?

Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
...