I will answer myself ,
My var pythonPath was already configurated on my settings.json.
My share my settings.json
{
“python.pythonPath”: “/usr/bin/python3”,
“python.venvPath”: “/work/tryton-server/tryton-env/bin/activate”
}
And my launch.json remains equals, I only deleted python path from there.
Saddly I have this error because I try to execute bin/trytond, with which file I should starts my tryton server?
Blockquote
/usr/bin/python3: No module named trytond.main; ‘trytond’ is a package and cannot be directly executed
Sorry, I really missed this part
My new error after changed
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 221, in _get_main_module_details
return _get_module_details(main_name)
File "/usr/lib/python3.8/runpy.py", line 138, in _get_module_details
raise error("No module named %s" % mod_name)
ImportError: No module named __main__
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/julio/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/lib/python/debugpy/__main__.py", line 45, in <module>
cli.main()
File "/home/julio/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/julio/.vscode/extensions/ms-python.python-2020.11.371526539/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 267, in run_file
runpy.run_path(options.target, run_name=compat.force_str("__main__"))
File "/usr/lib/python3.8/runpy.py", line 278, in run_path
mod_name, mod_spec, code = _get_main_module_details()
File "/usr/lib/python3.8/runpy.py", line 224, in _get_main_module_details
raise error("can't find %r module in %r" %
ImportError: can't find '__main__' module in 'trytond'