GithubHelp home page GithubHelp logo

gsmh about calfem-python HOT 6 CLOSED

calfem avatar calfem commented on July 20, 2024
gsmh

from calfem-python.

Comments (6)

jonaslindemann avatar jonaslindemann commented on July 20, 2024

Make sure to install GMSH (http://gmsh.info/) and add it to the search PATH in Windows. In anaconda GMSH can be installed by using

conda install python-gmsh

from calfem-python.

Nikan888 avatar Nikan888 commented on July 20, 2024

gmsh is in the PATH (i can launch it by "gmsh" in cmd), but issue is still occured

Traceback (most recent call last):
File "form_plate_mesh.py", line 26, in
coords, edof, dofs, bdofs, elementmarkers = mesh.create()
File "D:\Programs\Python3-64bit\lib\site-packages\calfem\mesh.py", line 256, in create
"Error: Could not find GMSH. Please make sure that the \GMSH executable is available on the search path (PATH).")
OSError: Error: Could not find GMSH. Please make sure that the \GMSH executable is available on the search path (PATH).

from calfem-python.

franciscofnunes avatar franciscofnunes commented on July 20, 2024

Hello... did you find a solution for this issue? I'm having the same problem and I'm not being able to fix it by adding to the PATH

from calfem-python.

MaximilianFranz avatar MaximilianFranz commented on July 20, 2024

Probably a more stable variant to find the path of the gmsh executable during runtime is something like:

>>> import subprocess
>>> import os
>>> cmd = "which"
>>> subprocess.call([cmd, "gmsh"])
/opt/conda/envs/modugen-core/bin/gmsh
0
>>>

See more here:
https://stackoverflow.com/questions/55394905/how-to-find-the-location-of-an-executable-in-python

It's important to distinguish between Windows and Linux systems.

from calfem-python.

jonaslindemann avatar jonaslindemann commented on July 20, 2024

I have updated the detection mechanism to be able to find gmsh in more places. Site-packages are also searched now.

Jonas

from calfem-python.

jonaslindemann avatar jonaslindemann commented on July 20, 2024

Hello... did you find a solution for this issue? I'm having the same problem and I'm not being able to fix it by adding to the PATH

Please check the new release.

from calfem-python.

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.