<div dir="ltr">Hi Guillaume, <div><br></div><div>Yep, the gmshpy dir is in my PYTHONPATH, but I still get the same error.</div><div><br></div><div>felicity$ echo $PYTHONPATH <br></div><div>
<p class=""><span class="">...:/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/gmshpy:/Users/felicity/software/gmsh-2.11.0-dynamic-svn-MacOSX/gmshpy/src:/Users/felicity/software/gmsh-2.11.0-dynamic-svn-MacOSX/gmshpy/build/lib.macosx-10.10-x86_64-2.7/gmshpy</span></p><p class="">Cheers,</p><p class="">Felicity</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 February 2016 at 19:07, Guillaume Demesy <span dir="ltr"><<a href="mailto:guillaume.demesy@fresnel.fr" target="_blank">guillaume.demesy@fresnel.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello - Have you appened the gmshpy dir to your PYTHONPATH?
Something like:<br>
export
PYTHONPATH="~/programs/gmsh/gmsh_test/build/wrappers:/usr/local/lib/python2.7/site-packages:$PYTHONPATH"<br>
Regards, Guillaume<div><div class="h5"><br>
<br>
<div>Le 22/02/2016 00:17, Felicity Graham a
écrit :<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<p><span>Hello, </span></p>
<p>I've installed gmshpy on mac osx 10.10 following the
instructions at <a href="http://qssi.cs.umt.edu/wiki/index.php/Setup" target="_blank">http://qssi.cs.umt.edu/wiki/index.php/Setup</a>. </p>
<p>I get an ImportError when I try to import any gmshpy
modules, as per below:</p>
<p><span>felicitygraham-tb:~ felicity$ python
-c "from gmshpy import GModel"<br>
</span>Traceback (most recent call last):<br>
File "<string>", line 1, in <module><br>
File
"/usr/local/lib/python2.7/site-packages/gmshpy/__init__.py",
line 5, in <module><br>
from gmshpy.gmshCommon import *<br>
File
"/usr/local/lib/python2.7/site-packages/gmshpy/gmshCommon.py",
line 26, in <module><br>
_gmshCommon = swig_import_helper()<br>
File
"/usr/local/lib/python2.7/site-packages/gmshpy/gmshCommon.py",
line 22, in swig_import_helper<br>
_mod = imp.load_module('_gmshCommon', fp, pathname,
description)<br>
ImportError:
dlopen(/usr/local/lib/python2.7/site-packages/gmshpy/_gmshCommon.so,
2): Symbol not found:<br>
__Z13GmshGetOptionRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_RS5_i<br>
Referenced from:
/usr/local/lib/python2.7/site-packages/gmshpy/_gmshCommon.so<br>
Expected in: flat namespace<br>
in
/usr/local/lib/python2.7/site-packages/gmshpy/_gmshCommon.so</p>
<div>The gmshpy install log is attached. </div>
<div><br>
</div>
<div>Any help would be appreciated.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Felicity</div>
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><b style="font-size:13.3333px">Felicity
Graham</b><br>
</div>
<div><span style="font-size:13.3333px">Ice Sheet
Modeller<br>
</span><span style="font-size:12.8px">Antarctic
Gateway Partnership<br>
</span><span style="font-size:12.8px">Institute
for Marine and Antarctic Studies (IMAS)<br>
</span><span style="font-size:12.8px">University
of Tasmania<br>
</span><span style="font-size:12.8px">Hobart TAS
7000</span><span style="font-size:12.8px"><br>
</span><span style="font-size:12.8px"><a href="http://imas.utas.edu.au" target="_blank">imas.utas.edu.au</a></span></div>
<div><img src="https://docs.google.com/uc?export=download&id=0B4lWanjYkF1sWTZBempXSURWdzQ&revid=0B4lWanjYkF1sWFFONG1mUDZEVklvY1JGSmtnKzdvUDh6anJzPQ"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
gmsh mailing list
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a>
<a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b style="font-size:13.3333330154419px">Felicity Graham</b><br></div><div><span style="font-size:13.3333330154419px">Ice Sheet Modeller<br></span><span style="font-size:12.8000001907349px">Antarctic Gateway Partnership<br></span><span style="font-size:12.8000001907349px">Institute for Marine and Antarctic Studies (IMAS)<br></span><span style="font-size:12.8000001907349px">University of Tasmania<br></span><span style="font-size:12.8000001907349px">Hobart TAS 7000<br></span><span style="font-size:12.8000001907349px">M 0401 797 934<br></span><span style="font-size:12.8000001907349px"><a href="http://imas.utas.edu.au" target="_blank">imas.utas.edu.au</a></span></div><div><img src="https://docs.google.com/uc?export=download&id=0B4lWanjYkF1sWTZBempXSURWdzQ&revid=0B4lWanjYkF1sWFFONG1mUDZEVklvY1JGSmtnKzdvUDh6anJzPQ"><br></div></div></div></div></div></div></div></div>
</div>