Then i tried python: select interptor. I select
~/frappe/apps/library_management/.venv/bin/python
Still i have pylance error how to solve?
~/frappe/apps/library_management/.venv/bin/python
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/runpy.py”, 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/runpy.py”, line 110, in _get_module_details
import(pkg_name)
File “/Users/ramki/frappe_practice/apps/frappe/frappe/init.py”, line 1278, in
def rename_doc(
File “/Users/ramki/frappe_practice/apps/frappe/frappe/init.py”, line 739, in innerfn
from frappe.utils.typing_validations import validate_argument_types
File “/Users/ramki/frappe_practice/apps/frappe/frappe/utils/typing_validations.py”, 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
It started working. Thank you very much