I use vs code with my kedro project. When I open i...
# questions
s
I use vs code with my kedro project. When I open it, I got error message like this: Traceback (most recent call last): File "c:\Users\wushuchu\.vscode\extensions\kedro.kedro-0.2.2\bundled\tool\lsp_server.py", line 75, in <module> import yaml ModuleNotFoundError: No module named 'yaml' 2024-10-30 145113.157 [info] [Error - 25113 PM] Server initialization failed. 2024-10-30 145113.157 [info] Message: Pending response rejected since connection got disposed Code: -32097 2024-10-30 145113.157 [info] [Info - 25113 PM] Connection to server got closed. Server will restart. 2024-10-30 145113.157 [info] true 2024-10-30 145113.158 [info] [Error - 25113 PM] Kedro client: couldn't create connection to server. But I have installed PyYAML==6.0.2 and also kedro extension in vs code. Can anyone help here?
d
@Nok Lam Chan any ideas?
👍🏼 1
n
@Shu-Chun Wu Can you make sure you select the correct python environment in VSCode? This is usually the one you can do a
kedro run
successfully You can use the command
>Python: Select Interpreter
to pick
s
interesting, I just reselect the same one and it works now 😃
✔️ 1
another thing, for each virtual environment, can we only use to create one kedro project? Or can I use same virtual environment for different projects/folders, if I am pretty sure that I need same libraries?
n
That's completely fine, same for any python projects