[Gmsh] Gmshpy import error -- symbol not found

Evan Cummings exmortis223 at gmail.com
Tue Feb 23 11:41:28 CET 2016


HI!

First, thanks for using my software!  Second, I had a problem with the
latest version of GMSH, it may have been the same error.  Luckily, I had an
old version of gmsh laying around that works, version 2.10.1-dynamic.

The gmsh crew unfortunately does not keep old versions of the dynamic
version, but I can get you it if you need.

On Mon, Feb 22, 2016 at 3:05 PM, Felicity Graham <
felicity.s.graham at gmail.com> wrote:

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


-- 
Evan Cummings

The University of Montana Group For Quantitative Study of Snow and Ice
ISB 405
32 Campus Dr
Missoula, MT 59812
406.624.9762
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160223/18ab4dd5/attachment.html>


More information about the gmsh mailing list