nemocrys / pyelmer

A python interface to Elmer.
GNU General Public License v3.0
53 stars 15 forks source link

Basic problem getting pyelmer running #9

Closed kottonau closed 2 years ago

kottonau commented 2 years ago

On windows 10, python 3.10, installed pyelmer with pip command, we are getting the following error after trying to run one of the example scripts:

Traceback (most recent call last):
  File "path to\crystal_growth_2d.py", line 14, in <module>
    from pyelmer import elmer
  File "path to\Python310\site-packages\pyelmer\__init__.py", line 2, in <module>
    from . import elmer, execute, gmsh, post
  File "path to\Python310\site-packages\pyelmer\gmsh.py", line 4, in <module>    
    import gmsh
  File "path to\Python310\site-packages\gmsh.py", line 53, in <module>
    lib = CDLL(libpath)
  File "path to\lib\ctypes\__init__.py", line 364, in __init__
    if '/' in name or '\\' in name:
TypeError: argument of type 'NoneType' is not iterable

Any hints?

arvedes commented 2 years ago

This seems to me like an issue with gmsh, which is used in the simulation setup.

Does import gmsh lead to the same error?

kottonau commented 2 years ago

Yes indeed, same error. Do we need to use a specific version?

Name: gmsh
Version: 4.10.3
arvedes commented 2 years ago

I've been mostly working with version 4.8.4 (I used it when I set up the tutorial case), recently I updated to 4.10.1, both worked well. I'd recommend to first try 4.10.4 (it was released yesterday), if that doesn't help I'd go for the older versions.

Maybe there is already a corresponding gmsh issue?

kottonau commented 2 years ago

Reinstalled python, all seems to work now

python: 3.10.5
gmsh: 4.10.4

Looking forward to working with pyelmer!

kottonau commented 2 years ago

closing issue.