Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Incompatibility with python 3.11 #194

Open
LucileNaegele opened this issue Aug 1, 2023 · 0 comments
Open

[BUG] Incompatibility with python 3.11 #194

LucileNaegele opened this issue Aug 1, 2023 · 0 comments

Comments

@LucileNaegele
Copy link
Collaborator

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\lnae0002\AppData\Local\miniconda3\envs\tescan11\Scripts\fibsem_ui.exe_main
.py", line 4, in
File "C:\Users\lnae0002\Desktop\fibsem\fibsem\ui\FibsemUI.py", line 6, in
from fibsem import utils
File "C:\Users\lnae0002\Desktop\fibsem\fibsem\utils.py", line 14, in
from fibsem.structures import (
File "C:\Users\lnae0002\Desktop\fibsem\fibsem\structures.py", line 745, in
@DataClass
^^^^^^^^^
File "C:\Users\lnae0002\AppData\Local\miniconda3\envs\tescan11\Lib\dataclasses.py", line 1230, in dataclass
return wrap(cls)
^^^^^^^^^
File "C:\Users\lnae0002\AppData\Local\miniconda3\envs\tescan11\Lib\dataclasses.py", line 1220, in wrap
return _process_class(cls, init, repr, eq, order, unsafe_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lnae0002\AppData\Local\miniconda3\envs\tescan11\Lib\dataclasses.py", line 958, in _process_class
cls_fields.append(_get_field(cls, name, type, kw_only))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lnae0002\AppData\Local\miniconda3\envs\tescan11\Lib\dataclasses.py", line 815, in _get_field
raise ValueError(f'mutable default {type(f.default)} for field '
ValueError: mutable default <class 'fibsem.structures.FibsemStagePosition'> for field absolute_position is not allowed: use default_factory

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

No branches or pull requests

1 participant