Problem
Could not import extension xxx (exception: No module named 'xxx')
no theme named 'xxx' found (missing theme.toml?)
Solution
Although python path is selected automatically according to VSCode’s Python extension, python command still need to be set
The following workspace VSCode setting should solve the issue
{
"esbonio.sphinx.pythonCommand": {"command": ["${venv:venv}"]}
}
where venv is the name of the virtual environment existing in this workspace
