[Gmsh] Gmshpy import error -- symbol not found

Felicity Graham felicity.s.graham at gmail.com
Mon Feb 22 23:05:05 CET 2016


Hi Guillaume,

Yep, the gmshpy dir is in my PYTHONPATH, but I still get the same error.

felicity$ echo $PYTHONPATH

...:/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

Cheers,

Felicity

On 22 February 2016 at 19:07, Guillaume Demesy <guillaume.demesy at fresnel.fr>
wrote:

> 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
>
>
>
> _______________________________________________
> gmsh mailing listgmsh at onelab.infohttp://onelab.info/mailman/listinfo/gmsh
>
>
>


-- 
*Felicity Graham*
Ice Sheet Modeller
Antarctic Gateway Partnership
Institute for Marine and Antarctic Studies (IMAS)
University of Tasmania
Hobart TAS 7000
M 0401 797 934
imas.utas.edu.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160223/d8ce0caf/attachment.html>


More information about the gmsh mailing list