[Gmsh] gmshpy import

Marek Wojciechowski mrkwjc at gmail.com
Sun Jun 9 11:44:33 CEST 2013


Hi!

I compiled sucessfully gmsh-2.7.1 with python wrappers, but i cannot import 
them. This is althought i added build/wrappers to PYTHONPATH and i copied 
libGMSH.so with symlinks to LD_LIBRARY_PATH. The error is:

In [1]: import gmshpy
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-f54c00cac136> in <module>()
----> 1 import gmshpy

/home/mwojc/instalki/gmsh-2.7.1-source/build/wrappers/gmshpy/__init__.py in 
<module>()
      2 import signal
      3 signal.signal(signal.SIGINT, signal.SIG_DFL)
----> 4 from gmshpy.gmshCommon import *
      5 from gmshpy.gmshGeo import *
      6 from gmshpy.gmshNumeric import *

/home/mwojc/instalki/gmsh-2.7.1-source/build/wrappers/gmshpy/gmshCommon.py in 
<module>()
     24                 fp.close()
     25             return _mod
---> 26     _gmshCommon = swig_import_helper()
     27     del swig_import_helper
     28 else:

/home/mwojc/instalki/gmsh-2.7.1-source/build/wrappers/gmshpy/gmshCommon.py in 
swig_import_helper()
     20         if fp is not None:
     21             try:
---> 22                 _mod = imp.load_module('_gmshCommon', fp, pathname, 
description)
     23             finally:
     24                 fp.close()
                                                                                                                             
ImportError: dynamic module does not define init function (init_gmshCommon)




Any ideas?

Regards
-- 
Marek




More information about the gmsh mailing list