<div dir="ltr">Hi,<br><br>Jonathan wrote me regarding the ImportError: <br><br>"I would say that you have to add the directory<br>
gmsh-2.8.4-dynamic-svn-Linux/lib in your LD_LIBRARY_PATH<br><div id=":h2">
or copy its content e.g. in /usr/local/lib "<br></div><br>This is done  with e.g.(non persistant):<br>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/caelinux/Downloads/gmsh-2.8.4-dynamic-svn-Linux/lib<br><br><br>Regards,<br>Wilfried<br><br><br>Am Donnerstag, 26. Dezember 2013 14:09:25 UTC+1 schrieb Wilfried Hortschitz:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><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" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fpypi.python.org%2Fpypi%2FShapely\46sa\75D\46sntz\0751\46usg\75AFQjCNGt0OuKIWyk3vybm99amxKnPu2i-w';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fpypi.python.org%2Fpypi%2FShapely\46sa\75D\46sntz\0751\46usg\75AFQjCNGt0OuKIWyk3vybm99amxKnPu2i-w';return true;">https://pypi.python.org/pypi/<wbr>Shapely</a>).<br>
<br>Therefore, I downloaded the package gmsh-svn-Linux64-dynamic.tgz from <a href="http://geuz.org/gmsh/bin/Linux/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgeuz.org%2Fgmsh%2Fbin%2FLinux%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEH4hbddCbNyhGUrfzQBeErFs4vBg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgeuz.org%2Fgmsh%2Fbin%2FLinux%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEH4hbddCbNyhGUrfzQBeErFs4vBg';return true;">http://geuz.org/gmsh/bin/<wbr>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" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgeuz.org%2Fpipermail%2Fgmsh%2F2013%2F008407.html\46sa\75D\46sntz\0751\46usg\75AFQjCNEI65eDxGTD52Z_m_JdMyjd0cqhww';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fgeuz.org%2Fpipermail%2Fgmsh%2F2013%2F008407.html\46sa\75D\46sntz\0751\46usg\75AFQjCNEI65eDxGTD52Z_m_JdMyjd0cqhww';return true;">http://geuz.org/pipermail/<wbr>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" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.geuz.org%2Fpipermail%2Fgmsh%2F2013%2F007782.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFMNHAsUKRV5hjYBRth-aMQl63r2g';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.geuz.org%2Fpipermail%2Fgmsh%2F2013%2F007782.html\46sa\75D\46sntz\0751\46usg\75AFQjCNFMNHAsUKRV5hjYBRth-aMQl63r2g';return true;">http://www.geuz.org/<wbr>pipermail/gmsh/2013/007782.<wbr>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/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcaelinux%2Ffiles%2FCAELinux2013%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEOa-SGiWIIjWVVrPXYJZhExeaCVQ';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcaelinux%2Ffiles%2FCAELinux2013%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNEOa-SGiWIIjWVVrPXYJZhExeaCVQ';return true;">http://sourceforge.net/<wbr>projects/caelinux/files/<wbr>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>##############################<wbr>##############################<wbr>#<br>    In [1]: import gmshpy<br>
<br>I get the following error message:<br><br>------------------------------<wbr>------------------------------<wbr>---------------<br><br>ImportError                   <wbr>            Traceback (most recent call last)<br><br>/home/caelinux/<ipython-input-<wbr>1-f54c00cac136> in <module>()<br>
<br>----> 1 import gmshpy<br><br>/usr/local/lib/python2.7/dist-<wbr>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-<wbr>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-<wbr>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>##############################<wbr>##############################<wbr>#<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>
</blockquote></div>