<div dir="ltr">Hallo,<br><br>I try to install gmsh with its python libraries (gmshpy). I want to use python to mesh and extrude an existing 2D geometry (set of polylines) which was generated with the python library shapely (<a href="https://pypi.python.org/pypi/Shapely">https://pypi.python.org/pypi/Shapely</a>).<br>
<br>Therefore, I downloaded the package gmsh-svn-Linux64-dynamic.tgz from <a href="http://geuz.org/gmsh/bin/Linux/">http://geuz.org/gmsh/bin/Linux/</a> .<br><br>After extraction I run the setup script 'sudo python setup.py install' in the 'gmshpy' sub-folder which finishes without errors (see also <a href="http://geuz.org/pipermail/gmsh/2013/008407.html">http://geuz.org/pipermail/gmsh/2013/008407.html</a>).<br>
<br>Thereafter, the following path was exported as described here (<a href="http://www.geuz.org/pipermail/gmsh/2013/007782.html">http://www.geuz.org/pipermail/gmsh/2013/007782.html</a>): <br><br> caelinux@caelinux:~$ export LD_PRELOAD=/usr/lib/libmpi.so<br>
<br>This procedure was tested on my local system ubuntu 12.04 x 64 with 2.7.3 and the current image of CAELinux (<a href="http://sourceforge.net/projects/caelinux/files/CAELinux2013/">http://sourceforge.net/projects/caelinux/files/CAELinux2013/</a>) caelinux2013-beta1.iso (tested as live-cd with virtualbox).<br>
<br>Unfortunately, I ended with the following error when importing gmshpy.<br><br>When I start a ipython console and type:<br><br>#############################################################<br> In [1]: import gmshpy<br>
<br>I get the following error message:<br><br>---------------------------------------------------------------------------<br><br>ImportError Traceback (most recent call last)<br><br>/home/caelinux/<ipython-input-1-f54c00cac136> in <module>()<br>
<br>----> 1 import gmshpy<br><br>/usr/local/lib/python2.7/dist-packages/gmshpy/__init__.py in <module>()<br> 3 signal.signal(signal.SIGINT, signal.SIG_DFL)<br> 4 <br>----> 5 from gmshpy.gmshCommon import *<br>
6 from gmshpy.gmshGeo import *<br> 7 from gmshpy.gmshNumeric import *<br><br>/usr/local/lib/python2.7/dist-packages/gmshpy/gmshCommon.py in <module>()<br> 24 fp.close()<br> 25 return _mod<br>
---> 26 _gmshCommon = swig_import_helper()<br> 27 del swig_import_helper<br> 28 else:<br><br>/usr/local/lib/python2.7/dist-packages/gmshpy/gmshCommon.py in swig_import_helper()<br> 20 if fp is not None:<br>
21 try:<br>---> 22 _mod = imp.load_module('_gmshCommon', fp, pathname, description)<br> 23 finally:<br> 24 fp.close()<br><br>ImportError: libGmsh.so.2.8: cannot open shared object file: No such file or directory<br>
<br>#############################################################<br><br>Do you have any suggestions what went wrong? Do I have to link libGmsh?<br>Maybe you can test the package with the same live cd image (caelinux2013-beta1.iso) or try to get in contact with the developer so that inexperienced users could simply use the cd-image.<br>
<br>Thanks in advance,<br>Wilfried<br></div>