Bench Start | Giving an error

When I try to start bench using “Bench Start” command i am getting this error.
can any one help.

Traceback (most recent call last):
10:25:11 schedule.1 | File “”, line 189, in _run_module_as_main
10:25:11 schedule.1 | File “”, line 112, in _get_module_details
10:25:11 schedule.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 1375, in
10:25:11 schedule.1 | @whitelist(methods=[“POST”, “PUT”])
10:25:11 schedule.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:25:11 schedule.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 787, in innerfn
10:25:11 schedule.1 | from frappe.utils.typing_validations import validate_argument_types
10:25:11 schedule.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/utils/typing_validations.py”, line 7, in
10:25:11 schedule.1 | from pydantic import ConfigDict
10:25:11 schedule.1 | ImportError: cannot import name ‘ConfigDict’ from ‘pydantic’ (/home/auriga/frappe-bench/env/lib/python3.11/site-packages/pydantic/init.py)
10:25:11 schedule.1 |
10:25:11 web.1 | Traceback (most recent call last):
10:25:11 web.1 | File “”, line 189, in _run_module_as_main
10:25:11 web.1 | File “”, line 112, in _get_module_details
10:25:11 web.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 1375, in
10:25:11 web.1 | @whitelist(methods=[“POST”, “PUT”])
10:25:11 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:25:11 web.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 787, in innerfn
10:25:11 web.1 | from frappe.utils.typing_validations import validate_argument_types
10:25:11 web.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/utils/typing_validations.py”, line 7, in
10:25:11 web.1 | from pydantic import ConfigDict
10:25:11 web.1 | ImportError: cannot import name ‘ConfigDict’ from ‘pydantic’ (/home/auriga/frappe-bench/env/lib/python3.11/site-packages/pydantic/init.py)
10:25:11 web.1 |
10:25:11 watch.1 | Traceback (most recent call last):
10:25:11 watch.1 | File “”, line 189, in _run_module_as_main
10:25:11 watch.1 | File “”, line 112, in _get_module_details
10:25:11 watch.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 1375, in
10:25:11 watch.1 | @whitelist(methods=[“POST”, “PUT”])
10:25:11 watch.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:25:11 watch.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 787, in innerfn
10:25:11 watch.1 | from frappe.utils.typing_validations import validate_argument_types
10:25:11 watch.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/utils/typing_validations.py”, line 7, in
10:25:11 watch.1 | from pydantic import ConfigDict
10:25:11 watch.1 | ImportError: cannot import name ‘ConfigDict’ from ‘pydantic’ (/home/auriga/frappe-bench/env/lib/python3.11/site-packages/pydantic/init.py)
10:25:11 watch.1 |
10:25:11 schedule.1 | Traceback (most recent call last):
10:25:11 schedule.1 | File “”, line 189, in _run_module_as_main
10:25:11 schedule.1 | File “”, line 112, in _get_module_details
10:25:11 schedule.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 1375, in
10:25:11 schedule.1 | @whitelist(methods=[“POST”, “PUT”])
10:25:11 schedule.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10:25:11 schedule.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/init.py”, line 787, in innerfn
10:25:11 schedule.1 | from frappe.utils.typing_validations import validate_argument_types
10:25:11 schedule.1 | File “/home/auriga/frappe-bench/apps/frappe/frappe/utils/typing_validations.py”, line 7, in
10:25:11 schedule.1 | from pydantic import ConfigDict
10:25:11 schedule.1 | ImportError: cannot import name ‘ConfigDict’ from ‘pydantic’ (/home/auriga/frappe-bench/env/lib/python3.11/site-packages/pydantic/init.py)

I am getting the same error. Please help.

I didn’t find any solution.
So i simply deleted the site and created the new one again.
If all your custom code is already pushed on your github repo, then take the db backup and drop the site and setup it again.

Please, refer

first, you need to upgrade Pydantics

run “pip install --upgrade pydantic”

then lastly upgrade pip by running

“pip3 install --upgrade pip”

this should fix your problem.

I am also getting the same error . pls help