SeismicMesh icon indicating copy to clipboard operation
SeismicMesh copied to clipboard

ModuleNotFoundError: No module named '_fast_geometry'

Open Zhang-Ziwen opened this issue 2 years ago • 3 comments

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'

Zhang-Ziwen avatar Dec 07 '22 03:12 Zhang-Ziwen

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

Older versions of pip may hide the installation error.

krober10nd avatar Dec 07 '22 04:12 krober10nd

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

Zhang-Ziwen avatar Dec 07 '22 08:12 Zhang-Ziwen

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.

krober10nd avatar Dec 07 '22 13:12 krober10nd