Pylance error in vscode using frappe

Then i tried python: select interptor. I select


Still i have pylance error how to solve?

hello you can use this format:

f""" any "thing" 'here' {1+1} """

Thank you bro!
While working on frappe suddenly in terminal exits from frappe bench. I again restart i got ModuleNotFoundError: No module named ‘pydantic.config’. Then i tried sudo pip3 install pydantic

ench start
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/”, line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/”, line 110, in _get_module_details
File “/Users/ramki/frappe_practice/apps/frappe/frappe/”, line 1278, in
def rename_doc(
File “/Users/ramki/frappe_practice/apps/frappe/frappe/”, line 739, in innerfn
from frappe.utils.typing_validations import validate_argument_types
File “/Users/ramki/frappe_practice/apps/frappe/frappe/utils/”, line 6, in
from pydantic.config import BaseConfig
ModuleNotFoundError: No module named ‘pydantic.config’

welcome, for this problem you need to use the frappe bench env pip not the global pip so you can use

bench pip install my-package-name

also maybe better to install all the missing requirements with:

bench setup requirements

1 Like

It started working. Thank you very much

1 Like