Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

ModuleNotFoundError: No module named '_fast_geometry' #237

Open
Zhang-Ziwen opened this issue Dec 7, 2022 · 3 comments
Open

ModuleNotFoundError: No module named '_fast_geometry' #237

Zhang-Ziwen opened this issue Dec 7, 2022 · 3 comments

Comments

@Zhang-Ziwen
Copy link

Zhang-Ziwen commented Dec 7, 2022

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
Copy link
Owner

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

Older versions of pip may hide the installation error.

@Zhang-Ziwen
Copy link
Author

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

@krober10nd
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants