First time here? Checkout the FAQ!
x
0 votes
by (340 points)
edited by
Hi,

I have an issue about meshalyzer installation in Docker containers.

After installing openCARP to Docker containers and installing the prerequisites (defined here: https://opencarp.org/download/installation#prerequisities), I edited make.cof file (according to this: https://opencarp.org/download/installation#makefile). The 5th step of copying the binarises to a suitable location is unclear to me. I mean, I can see the executable file "meshalyzer" under my folder in Home but I am getting this error when I try to run experiments and use --visualize:

Traceback (most recent call last):

  File "./run.py", line 882, in <module>

    run()    

  File "/usr/local/lib/python3.8/dist-packages/carputils/tools.py", line 542, in wrapped

    ret = run(args, job)

  File "./run.py", line 456, in run

    job.meshalyzer(geom, data, view)

  File "/usr/local/lib/python3.8/dist-packages/carputils/job/job.py", line 606, in meshalyzer

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

  File "/usr/local/lib/python3.8/dist-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)

Do I need to manually change the directory of the meshalyzer folder? There is also AppImage for Linux you mentioned that allows me to run meshalyzer separately but not integrated to experiments. Similar issue in the following link seems not resolved, that is why I am reposting it:

https://opencarp.org/q2a/866/path-for-meshalyzer-not-found

Also, I know in the documentation it is stated that meshalyzer is not supported for Docker containers, however, checking the output files, it feels like it is strictly necessary for clear interpretation of the results. Can you suggest other option of displaying output of the simulations?

Thanks a lot in advance.

1 Answer

0 votes
by (19.1k points)
selected by
 
Best answer

Indeed, meshalyzer is not supported in Docker.

You can install meshalyzer directly on your host system. We provide binaries for macOS, Windows and Linux: https://git.opencarp.org/openCARP/meshalyzer/-/releases

To access the results generated within Docker on your host system for visualization, the easiest option is to share a folder as described in the "Note" section in our Docker documentation: https://opencarp.org/download/installation#pull-the-docker-image-option-1 

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
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], config: ["MMLorHTML.js"], jax: ["input/TeX"], processEscapes: true } }); MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } } });
...