Error in Ray Library dashboard

2023-11-28 11:50:34,066 ERROR services.py:1329 – Failed to start the dashboard , return code 1
2023-11-28 11:50:34,072 ERROR services.py:1354 – Error should be written to ‘dashboard.log’ or ‘dashboard.err’. We are printing the last 20 lines for you. See ‘Configuring Logging — Ray 3.0.0.dev0’ to find where the log file is.
2023-11-28 11:50:34,074 ERROR services.py:1398 –
The last 20 lines of C:\Users\41452\AppData\Local\Temp\ray\session_2023-11-28_11-50-31_516928_23104\logs\dashboard.log (it contains the error message from the dashboard):
File “C:\Users\41452\AppData\Local\anaconda3\envs\NeuralForecast\lib\importlib_init_.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1014, in _gcd_import
File “”, line 991, in _find_and_load
File “”, line 975, in _find_and_load_unlocked
File “”, line 671, in _load_unlocked
File “”, line 843, in exec_module
File “”, line 219, in call_with_frames_removed
File “C:\Users\41452\AppData\Local\anaconda3\envs\NeuralForecast\lib\site-packages\ray\dashboard\modules\job\cli.py”, line 16, in
from ray.job_submission import JobStatus, JobSubmissionClient
File "C:\Users\41452\AppData\Local\anaconda3\envs\NeuralForecast\lib\site-packages\ray\job_submission_init
.py", line 2, in
from ray.dashboard.modules.job.pydantic_models import DriverInfo, JobDetails, JobType
File “C:\Users\41452\AppData\Local\anaconda3\envs\NeuralForecast\lib\site-packages\ray\dashboard\modules\job\pydantic_models.py”, line 4, in
from ray._private.pydantic_compat import BaseModel, Field, PYDANTIC_INSTALLED
File “C:\Users\41452\AppData\Local\anaconda3\envs\NeuralForecast\lib\site-packages\ray_private\pydantic_compat.py”, line 100, in
monkeypatch_pydantic_2_for_cloudpickle()
File “C:\Users\41452\AppData\Local\anaconda3\envs\NeuralForecast\lib\site-packages\ray_private\pydantic_compat.py”, line 58, in monkeypatch_pydantic_2_for_cloudpickle
pydantic._internal._model_construction.SchemaSerializer = (
AttributeError: module ‘pydantic’ has no attribute ‘_internal’
2023-11-28 11:50:34,446 INFO worker.py:1673 – Started a local Ray instance.

How to solve above error.

Could u give the version of pydantic you installed? @Harshad_Erande

hi @jiwq , the version is 2.5.2