You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating a Python 3.11 environment, import meshkernel raises: "ValueError: mutable default <class 'numpy.ndarray'> for field face_nodes is not allowed: use default_factory"
Traceback (most recent call last):
File ~\Anaconda3\envs\py311\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:\data\dfm_tools\dfm_tools\untitled0.py:8
import meshkernel
File ~\Anaconda3\envs\py311\Lib\site-packages\meshkernel\__init__.py:4
from meshkernel.factories import Mesh2dFactory
File ~\Anaconda3\envs\py311\Lib\site-packages\meshkernel\factories.py:4
from meshkernel.py_structures import Mesh2d
File ~\Anaconda3\envs\py311\Lib\site-packages\meshkernel\py_structures.py:80
@dataclass
File ~\Anaconda3\envs\py311\Lib\dataclasses.py:1223 in dataclass
return wrap(cls)
File ~\Anaconda3\envs\py311\Lib\dataclasses.py:1213 in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
File ~\Anaconda3\envs\py311\Lib\dataclasses.py:958 in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
File ~\Anaconda3\envs\py311\Lib\dataclasses.py:815 in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'numpy.ndarray'> for field face_nodes is not allowed: use default_factory
To Reproduce
Steps to reproduce the behavior:
create py311 environment
import meshkernel
Version info (please complete the following information):
OS: Windows
Version latest pip (2.0.2)
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a Python 3.11 environment,
import meshkernel
raises:"ValueError: mutable default <class 'numpy.ndarray'> for field face_nodes is not allowed: use default_factory"
To Reproduce
Steps to reproduce the behavior:
import meshkernel
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: