Nok Lam Chan
05/09/2024, 3:06 PMKacper Leśniara
05/15/2024, 11:02 AMNok Lam Chan
05/15/2024, 11:06 AMKacper Leśniara
05/15/2024, 11:07 AMKacper Leśniara
05/15/2024, 11:08 AMNok Lam Chan
05/15/2024, 11:23 AMNok Lam Chan
05/15/2024, 11:23 AMKacper Leśniara
05/15/2024, 11:24 AMNok Lam Chan
05/15/2024, 12:02 PM```2024-05-15 124020.590 [info] from kedro.config import OmegaConfigLoader
ModuleNotFoundError: No module named 'kedro'```
I can see this error from the traceback you posted, have you selected the correct Python interpreter already? Using the `>Python: select interpreter command
Nok Lam Chan
05/15/2024, 12:05 PMKacper Leśniara
05/15/2024, 12:07 PMKacper Leśniara
05/15/2024, 12:10 PM2024-05-15 11:01:30.212 [info] Name: Kedro
2024-05-15 11:01:30.212 [info] Module: kedro
2024-05-15 11:01:30.212 [info] Python extension loading
2024-05-15 11:01:30.212 [info] Python Interpreter:
2024-05-15 11:01:30.212 [info] Waiting for interpreter from python extension.
2024-05-15 11:01:30.212 [info] Python extension loaded
2024-05-15 11:01:30.230 [info] Server run command: /Users/kacper.lesniara/Projects/<the_other_project_without_kedro>/venv/bin/python /Users/kacper.lesniara/.vscode/extensions/kedro.kedro-0.0.3/bundled/tool/lsp_server.py
2024-05-15 11:01:30.231 [info] Server: Start requested.
2024-05-15 11:01:31.479 [info] Traceback (most recent call last):
File "/Users/kacper.lesniara/.vscode/extensions/kedro.kedro-0.0.3/bundled/tool/lsp_server.py", line 17, in <module>
2024-05-15 11:01:31.479 [info] from kedro.config import OmegaConfigLoader
ModuleNotFoundError: No module named 'kedro'
Kacper Leśniara
05/15/2024, 12:19 PMkedro.interpreter
at the workspace level to point to the project's python executable with Kedro, restarted VSCode and it worksKacper Leśniara
05/15/2024, 12:19 PMKacper Leśniara
05/15/2024, 12:26 PMNok Lam Chan
05/15/2024, 2:14 PMNok Lam Chan
05/15/2024, 2:15 PMKacper Leśniara
05/15/2024, 2:20 PMNok Lam Chan
05/15/2024, 2:26 PMNok Lam Chan
05/15/2024, 2:26 PMKacper Leśniara
05/15/2024, 2:34 PMNok Lam Chan
05/17/2024, 9:34 AMNok Lam Chan
05/17/2024, 9:35 AMKacper Leśniara
05/17/2024, 9:49 AMmypy.runUsingActiveInterpreter
to true in VSCode's settings.json
. This way it's not using the global executable, but a local one per project (venv) in the workspaceNok Lam Chan
05/17/2024, 10:20 AMKacper Leśniara
05/17/2024, 10:24 AMKacper Leśniara
05/17/2024, 10:32 AM