[Gmsh] Gmshpy import error -- symbol not found

Guillaume Demesy guillaume.demesy at fresnel.fr
Mon Feb 22 09:07:44 CET 2016


Hello - Have you appened the gmshpy dir to your PYTHONPATH? Something like:
export 
PYTHONPATH="~/programs/gmsh/gmsh_test/build/wrappers:/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
Regards, Guillaume

Le 22/02/2016 00:17, Felicity Graham a écrit :
>
> Hello,
>
> I've installed gmshpy on mac osx 10.10 following the instructions at 
> http://qssi.cs.umt.edu/wiki/index.php/Setup.
>
> I get an ImportError when I try to import any gmshpy modules, as per 
> below:
>
> felicitygraham-tb:~ felicity$ python -c "from gmshpy import GModel"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "/usr/local/lib/python2.7/site-packages/gmshpy/__init__.py", 
> line 5, in <module>
>     from gmshpy.gmshCommon import *
>   File "/usr/local/lib/python2.7/site-packages/gmshpy/gmshCommon.py", 
> line 26, in <module>
>     _gmshCommon = swig_import_helper()
>   File "/usr/local/lib/python2.7/site-packages/gmshpy/gmshCommon.py", 
> line 22, in swig_import_helper
>     _mod = imp.load_module('_gmshCommon', fp, pathname, description)
> ImportError: 
> dlopen(/usr/local/lib/python2.7/site-packages/gmshpy/_gmshCommon.so, 
> 2): Symbol not found:
> __Z13GmshGetOptionRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_RS5_i
>   Referenced from: 
> /usr/local/lib/python2.7/site-packages/gmshpy/_gmshCommon.so
>   Expected in: flat namespace
>  in /usr/local/lib/python2.7/site-packages/gmshpy/_gmshCommon.so
>
> The gmshpy install log is attached.
>
> Any help would be appreciated.
>
> Cheers,
> Felicity
>
> -- 
> *Felicity Graham*
> Ice Sheet Modeller
> Antarctic Gateway Partnership
> Institute for Marine and Antarctic Studies (IMAS)
> University of Tasmania
> Hobart TAS 7000
> imas.utas.edu.au <http://imas.utas.edu.au>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160222/51cee65c/attachment-0001.html>


More information about the gmsh mailing list