Error when running MRSimulator for the first time #294
-
Dear mrsimulator comunity, `Traceback (most recent call last): File C:\ProgramData\Anaconda3\envs\mojrmn\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec File d:\marcos\ifsc\python\mrsimulator\my_first_sim.py:7 File ~\AppData\Roaming\Python\Python39\site-packages\mrsimulator_init_.py:72 File ~\AppData\Roaming\Python\Python39\site-packages\mrsimulator\simulator_init_.py:15 File ~\AppData\Roaming\Python\Python39\site-packages\mrsimulator\method_init_.py:21 File ~\AppData\Roaming\Python\Python39\site-packages\mrsimulator\method\event.py:172 File ~\AppData\Roaming\Python\Python39\site-packages\mrsimulator\method\event.py:216 in ConstantDurationEvent File ~\AppData\Roaming\Python\Python39\site-packages\pydantic\main.py:165 in init ValidationError: 1 validation error for BaseEvent Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Solved: In \python\python39\site-packages\mrsimulator\method I have changed the file "event.py" on line 216:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I have noticed this error before. It is likely from the newer version of pydantic. Can you check the version of pydantic installed on your system. |
Beta Was this translation helpful? Give feedback.
Dear Deepansh, thank you very much for your help. Installing pydantic version 1.10 solved the issue.
Best regards,
Marcos.