<div dir="ltr">In fact a copy of the "gmsh.py" file was remaining in the working directory and not pointing to the /lib one (a mistake); after removing it, now it works fine using Spyder as described in my previous post; this way allows me to run the API directly from Spyder.<div><br><div>Paul</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 25 mars 2020 à 15:23, paul francedixhuit <<a href="mailto:paul18fr@gmail.com">paul18fr@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All<div><br></div><div>From scracth, I'm trying to use the gmsh Python API under Anaconda + spyder; I downloaded and installed the latest gmsh SDK release.</div><div><br></div><div>Wherever I did (export PYTHONPATH in the .bashrc file or path explicitly added in the python file, even running the API in commandline), I got the same following error.</div><div><br></div><div>Is the mistake coming from my configuration? is the trouble coming from the Anaconda Python release? anything else?</div><div><br></div><div>Thanks for any advice</div><div><br></div><div>Paul</div><div><br></div><div>## add in the "t1.py" file </div><div><div>import sys</div><div>sys.path.append('/opt/gmsh_dev/lib')</div><div>import gmsh</div></div><div><br></div><div><div>## Gmsh error</div><div> File "/home/paul/Gmsh/tutos/t1.py", line 13, in <module></div><div> gmsh.initialize()</div><div><br></div><div> File "/home/paul/Gmsh/tutos/gmsh.py", line 197, in initialize</div><div> lib.gmshInitialize(</div><div><br></div><div> File "/opt/anaconda3/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__</div><div> func = self.__getitem__(name)</div><div><br></div><div> File "/opt/anaconda3/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__</div><div> func = self._FuncPtr((name_or_ordinal, self))</div><div><br></div><div>AttributeError: /opt/anaconda3/bin/python: undefined symbol: gmshInitialize</div></div></div></div></div>
</blockquote></div>