krober10nd / SeismicMesh

2D/3D serial and parallel triangular mesh generation tool for finite element methods.
https://seismicmesh.readthedocs.io/
GNU General Public License v3.0
123 stars 32 forks source link

ModuleNotFoundError: No module named '_fast_geometry' #237

Open Zhang-Ziwen opened 1 year ago

Zhang-Ziwen commented 1 year ago

I successfully installed SeismicMesh by .whl , but when importing SeismicMesh in spyder, the following problems occur:

[autoreload of SeismicMesh.decomp failed: Traceback (most recent call last): File "D:\Python\Python\lib\site-packages\IPython\extensions\autoreload.py", line 245, in check superreload(m, reload, self.old_objects) File "D:\Python\Python\lib\site-packages\IPython\extensions\autoreload.py", line 394, in superreload module = reload(module) File "D:\Python\Python\lib\imp.py", line 314, in reload return importlib.reload(module) File "D:\Python\Python\lib\importlib__init__.py", line 159, in reload raise ImportError(msg.format(parent_name), ImportError: parent 'SeismicMesh' not in sys.modules ]

File "D:\Python\Python\lib\site-packages\SeismicMesh\geometry__init__.py", line 1, in from _fast_geometry import (

ModuleNotFoundError: No module named '_fast_geometry'

krober10nd commented 1 year ago

Can you confirm that you've installed a version of cgal >= 5.0?

Older versions of pip may hide the installation error.

Zhang-Ziwen commented 1 year ago

Yes,I have installed the package named cgal 5.5.1.post202210191030 by pip. Do I need to reinstall it by other ways?

krober10nd commented 1 year ago

The error occurs because the CPP modules did not compile correctly. Please use python setup.py develop in the package directory and see what the error is.