Skip to content
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

Error running mesh option #16

Open
TimNmn opened this issue Nov 6, 2023 · 2 comments
Open

Error running mesh option #16

TimNmn opened this issue Nov 6, 2023 · 2 comments

Comments

@TimNmn
Copy link

TimNmn commented Nov 6, 2023

Dear Jonathan,

I've found your plugin and would like to use it in order to create meshes for the use in Telemac. I've installed it the way you described. I'm using qgis for mac in version 3.28.13-Firenze as ltr.

Creating .geo files works just fine, but trying to mesh gives errors, which I don't know how to handle.
Bildschirmfoto 2023-11-06 um 08 00 00

Do you have any recommendations what to do and how to fix this?

Best regards Tim

@TimNmn
Copy link
Author

TimNmn commented Jan 2, 2024 via email

@jonathanlambrechts
Copy link
Owner

In recent qgis-gmsh plugin, gmsh is called through its python api, not through the executable. Normally the installation of the python gmsh module is automatic. In your case it seems that the problem comes from the lines :
args = [sys.executable, "-c","import gmsh; import sys; argv=['gmsh']+sys.argv[1:];gmsh.initialize(argv,run=True); gmsh.finalize();", "-2", self.inputGeo.getFile(), "-algo", algo, "-format",fmt, "-epslc1d", self.epslc1d.text(), "-o", self.outputMsh.getFile()] + shlex.split(self.commandLine.text()) self.runGmshDialog.exec_(args)
where sys.exectuable is supposed to be the python executable used by qgis which does not seems to be the case on your computer.

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

2 participants