<div dir="ltr"><div dir="ltr"><div dir="ltr">(This means to fix a mess-up with a couple of emails and their subject)<div><br></div><div>I was suggested by Christophe to check if I was using the right dll version (32 or 64 bit) here <a href="http://onelab.info/pipermail/gmsh/2018/012508.html">http://onelab.info/pipermail/gmsh/2018/012508.html</a></div><div><br></div><div>Given that I am using Win 10, and 64-bit versions for all my apps (including Gmsh 4), I guessed I had to use the 64-bit version of the Gmsh API dll as well.</div><div><br></div><div>So I checked that, and I had the 64-bit version (hinted at here <a href="http://onelab.info/pipermail/gmsh/2018/012515.html">http://onelab.info/pipermail/gmsh/2018/012515.html</a> and later confirmed).</div><div><br></div><div>But then I simply tried using the 32-bit version, and it worked!</div><div>I wouldn't know why.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 8, 2018 at 4:51 AM Santiago Serebrinsky <<a href="mailto:sserebrinsky@gmail.com">sserebrinsky@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<div>Hi all,</div><div><br></div><div>I mean to use the Gmsh Python API under Win 10 / Msys2 (from PortableApps).</div><div>To get this right, I added<br></div><div><br></div><div dir="ltr">elif platform.system() == 'MSYS_NT-10.0-WOW':<br>    lib = CDLL(os.path.join(libdir, "gmsh-4.0.dll"))<br></div><div dir="ltr"><br></div><div>But then I get</div><div><br></div><div>>>> import api_gmsh<br>/c/Users/ry16205/Documents/soft-hard-ware/science_math_visualization/gmsh/python<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>  File "/c/Users/ry16205/Documents/soft-hard-ware/science_math_visualization/gmsh/python/api_gmsh.py", line 30, in <module><br>    lib = CDLL(os.path.join(libdir, "gmsh-4.0.dll"))<br>  File "/usr/lib/python3.6/ctypes/__init__.py", line 343, in __init__<br>    self._handle = _dlopen(self._name, mode)<br>OSError: Exec format error</div><div><br></div><div>What would the right way of doing this be?</div>

</div>
</blockquote></div></div></div></div>