Sorry to bother you! I want to ask about the download of Gmsh. Recently, I was going to use gmsh to draw a grid, when I called it, it would display No module named 'gmsh', but I have installed gmsh under fenicsx-env using conda install -c conda-forge gmsh command, and the interpreter in pycharm showed that gmsh already exists, I would like to ask what is wrong?
Remarks Version:
fenics-dolfinx: 0.9.0
gmsh: 4.13.1
I look forward to your reply, thank you!
Traceback (most recent call last):
File "/mnt/d/femcode/fem/Mesh/demo_gmsh.py", line 25, in <module>
import gmsh
ModuleNotFoundError: No module named 'gmsh'
ERROR conda.cli.main_run:execute(124): `conda run python /mnt/d/femcode/fem/Mesh/demo_gmsh.py` failed. (See above for error)
After I deleted gmsh, I used the command you recommended to download it again, and there will be a new error. Thank you!
Traceback (most recent call last):
File "/mnt/d/femcode/fem/Mesh/demo_gmsh.py", line 25, in <module>
import gmsh
File "/home/zqaixj1234/miniconda3/envs/fenicsx-env/lib/python3.13/site-packages/gmsh.py", line 87, in <module>
lib = CDLL(libpath)
File "/home/zqaixj1234/miniconda3/envs/fenicsx-env/lib/python3.13/ctypes/__init__.py", line 390, in __init__
self._handle = _dlopen(self._name, mode)
~~~~~~~^^^^^^^^^^^^^^^^^^
OSError: libXft.so.2: cannot open shared object file: No such file or directory
ERROR conda.cli.main_run:execute(124): `conda run python /mnt/d/femcode/fem/Mesh/demo_gmsh.py` failed. (See above for error)