0

I am new in FiPy and I have problems with the example:

examples.diffusion.circle: https://www.ctcms.nist.gov/fipy/examples/diffusion/generated/examples.diffusion.circle.html

I get the error:

EnviromentError: Gmsh version must be >=2.0

I tried already some things that were posted about two years ago, but that did not help, e.g., EnvironmentError: Gmsh version must be >= 2.0 and Gmsh mesh parallel execution in fipy

I already checked my versions: Fipy: 3.3 pygmsh: 5.0.2 spyder 3.3.6 Python: 2.7 gmsh: 4.1.1

I am working on Windows 10 64Bit.

Thank you very much for your help.

Nico Schlömer
  • 53,797
  • 27
  • 201
  • 249
KristaQ
  • 13
  • 4
  • It would help if you listed the things that you already tried (maybe link to the post from two years ago). And you'll also get more help if you post some of the code that's not working. At best, a minimal, reproducible example: https://stackoverflow.com/help/minimal-reproducible-example. – Druckles Aug 27 '19 at 11:28
  • What is the result of typing `gmsh -version` at the command line? – jeguyer Aug 27 '19 at 12:43
  • @Druckles, thank you for your advice. Here are the posts from two years ago: https://stackoverflow.com/questions/45405916/environmenterror-gmsh-version-must-be-2-0. And https://stackoverflow.com/questions/39831494/gmsh-mesh-parallel-execution-in-fipy. – KristaQ Aug 27 '19 at 15:36
  • @jeguyer, the version of gmsh is 4.1.1 – KristaQ Aug 27 '19 at 15:37
  • 1
    My guess is that gmsh is not on the execution path when you run FiPy. Try `gmsh -version` from within the Spyder environment. – jeguyer Aug 27 '19 at 17:14
  • @jeguyer: thank you very much. You were right. – KristaQ Sep 01 '19 at 14:58
  • Does this answer your question? [EnvironmentError: Gmsh version must be >= 2.0](https://stackoverflow.com/questions/45405916/environmenterror-gmsh-version-must-be-2-0) – Mark Rotteveel Jan 04 '20 at 10:47

2 Answers2

1

Like jeguyer mentioned: gmsh must be on the execution path when runs FiPy. That solved the problem.

KristaQ
  • 13
  • 4
0

I copied the entirely gmsh folder into the Anaconda3\Scripts folder and since then everything worked fine.

For specific instructions: EnvironmentError: Gmsh version must be >= 2.0

סטנלי גרונן
  • 2,917
  • 23
  • 46
  • 68
mcghgb
  • 25
  • 1
  • 5