meshpro / dmsh

:spider_web: Simple mesh generator inspired by distmesh.
GNU General Public License v3.0
210 stars 26 forks source link

can't import dmsh #89

Closed NeuroManer closed 2 years ago

NeuroManer commented 2 years ago

Show the error

ImportError: cannot import name 'NDArray' from 'numpy.typing'

NeuroManer commented 2 years ago

import dmsh Traceback (most recent call last): File "", line 1, in File "C:\ResearchSoftwares\Miniconda\envs\py37_physics\lib\site-packages\dmsh__init.py", line 18, in from .main import generate File "C:\ResearchSoftwares\Miniconda\envs\py37_physics\lib\site-packages\dmsh\main.py", line 6, in import meshplex File "C:\ResearchSoftwares\Miniconda\envs\py37_physics\lib\site-packages\meshplex\init.py", line 3, in from ._mesh import Mesh File "C:\ResearchSoftwares\Miniconda\envs\py37_physics\lib\site-packages\meshplex_mesh.py", line 8, in from numpy.typing import ArrayLike, NDArray ImportError: cannot import name 'NDArray' from 'numpy.typing' (C:\ResearchSoftwares\Miniconda\envs\py37_physics\lib\site-packages\numpy\typing\init__.py)

nschloe commented 2 years ago

Ah, apparently meshplex needs a newer numpy. I raised its dependency requirement, so this should be resolved. (If not, just manually upgrade numpy and you should be fine.)