Fail to run python script from tutorial on windows
Hi,
Trying to run python scripts from the tutorial on Windows for a course, I run into this error:
python.exe .\t1.py
Traceback (most recent call last):
File "C:\Users\christophe.trophime\Documents\gmsh\tutorials\python\t1.py", line 15, in <module>
gmsh.initialize()
File "C:\Users\christophe.trophime\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\gmsh.py", line 243, in
initialize
lib.gmshInitialize(
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 387, in __getattr__
func = self.__getitem__(name)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 392, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'gmshInitialize' not found
I've installed gmsh with python -m pip install ... Do I need to set PYTHONPATH to get it run?
Best