[Gmsh] Using the Python API under Win 10 + Msys2

Santiago Serebrinsky sserebrinsky at gmail.com
Mon Oct 8 09:51:31 CEST 2018

 Hi all,

I mean to use the Gmsh Python API under Win 10 / Msys2 (from PortableApps).
To get this right, I added

elif platform.system() == 'MSYS_NT-10.0-WOW':
    lib = CDLL(os.path.join(libdir, "gmsh-4.0.dll"))

But then I get

>>> import api_gmsh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
line 30, in <module>
    lib = CDLL(os.path.join(libdir, "gmsh-4.0.dll"))
  File "/usr/lib/python3.6/ctypes/__init__.py", line 343, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: Exec format error

What would the right way of doing this be?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20181008/c57f34a0/attachment.html>

More information about the gmsh mailing list