microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.46k stars 29.36k forks source link

I don't know why when I create an environment on vs code for my BDD Python project. #233397

Open bilalop opened 1 week ago

bilalop commented 1 week ago

Hello,

I don't know why when I create an environment on vs code for my BDD Python project.

In the installation logs of the environment from my project. The creation takes time from this line :

Attempting uninstall: pip 2024-11-08 09:56:25.022 [info] Found existing installation: pip 24.2 2024-11-08 09:56:26.426 [info] Uninstalling pip-24.2: 2024-11-08 09:56:28.129 [info] Successfully uninstalled pip-24.2

Voici les journaux complets :

2024-11-08 09:52:33.626 [info] L’expérience «pythonaacf» est active 2024-11-08 09:52:33.626 [info] L’expérience «pythonRecommendTensorboardExt» est active 2024-11-08 09:52:33.626 [info] L’expérience «pythonSurveyNotificationcf» est active 2024-11-08 09:52:33.626 [info] L’expérience «pythonTerminalEnvVarActivation» est active 2024-11-08 09:52:33.626 [info] L’expérience «pythonTestAdapter» est active 2024-11-08 09:52:33.626 [warning] Dir "\172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet.pixi\envs" is not watchable (directory does not exist) 2024-11-08 09:52:33.626 [info] Starting Environment refresh 2024-11-08 09:52:33.626 [info] Starting Environment refresh 2024-11-08 09:52:33.627 [info] > hatch env show --json 2024-11-08 09:52:33.627 [info] cwd: \172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet 2024-11-08 09:52:33.647 [info] Environments refresh finished (event): 67 milliseconds 2024-11-08 09:52:33.647 [info] Environments refresh finished (event): 65 milliseconds 2024-11-08 09:52:33.647 [info] Environments refresh paths discovered: 67 milliseconds 2024-11-08 09:52:33.647 [info] Environments refresh paths discovered: 65 milliseconds 2024-11-08 09:52:33.648 [info] Environment refresh took 70 milliseconds 2024-11-08 09:52:33.649 [info] Environment refresh took 67 milliseconds 2024-11-08 09:52:33.661 [info] > pyenv which python 2024-11-08 09:52:33.661 [info] cwd: \172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet 2024-11-08 09:52:33.716 [info] Chemin de l’interpréteur Python : ~\AppData\Local\Programs\Python\Python313\python.exe 2024-11-08 09:52:35.069 [info] Selected workspace \172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet for creating virtual environment. 2024-11-08 09:52:35.082 [info] Starting Environment refresh 2024-11-08 09:52:35.082 [info] Searching for windows registry interpreters 2024-11-08 09:52:35.082 [info] Searching windows known paths locator 2024-11-08 09:52:35.084 [info] Searching for pyenv environments 2024-11-08 09:52:35.084 [info] Searching for conda environments 2024-11-08 09:52:35.084 [info] Searching for global virtual environments 2024-11-08 09:52:35.084 [info] Searching for custom virtual environments 2024-11-08 09:52:35.085 [info] Searching for windows store envs 2024-11-08 09:52:35.087 [info] > conda info --json 2024-11-08 09:52:35.096 [info] pyenv is not installed 2024-11-08 09:52:35.096 [info] Finished searching for pyenv environments: 14 milliseconds 2024-11-08 09:52:35.111 [info] Finished searching for custom virtual envs: 27 milliseconds 2024-11-08 09:52:35.111 [info] Finished searching for windows store envs: 27 milliseconds 2024-11-08 09:52:35.119 [info] Finished searching for global virtual envs: 35 milliseconds 2024-11-08 09:52:35.136 [info] > ~\AppData\Local\Programs\Python\Python313\python.exe -I ~.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\get_output_via_markers.py ~.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\interpreterInfo.py 2024-11-08 09:52:35.137 [info] Finished searching windows known paths locator: 56 milliseconds 2024-11-08 09:52:35.196 [info] Démarrage du serveur de langage Pylance 2024-11-08 09:52:35.461 [info] Finished searching for windows registry interpreters: 388 milliseconds 2024-11-08 09:52:35.464 [info] Environments refresh paths discovered (event): 391 milliseconds 2024-11-08 09:52:35.464 [info] Environments refresh paths discovered: 391 milliseconds 2024-11-08 09:52:35.464 [info] Environments refresh finished (event): 392 milliseconds 2024-11-08 09:52:35.467 [info] Environment refresh took 394 milliseconds 2024-11-08 09:52:36.152 [info] Selected interpreter C:\Users\Utilisateur\AppData\Local\Programs\Python\Python313\python.exe for creating virtual environment. 2024-11-08 09:52:36.246 [info] Running Env creation script: [ 'C:\Users\Utilisateur\AppData\Local\Programs\Python\Python313\python.exe', 'c:\Users\Utilisateur\.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\create_venv.py', '--git-ignore' ] 2024-11-08 09:52:36.246 [info] > ~\AppData\Local\Programs\Python\Python313\python.exe ~.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\create_venv.py --git-ignore 2024-11-08 09:52:36.246 [info] cwd: \172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet 2024-11-08 09:52:36.531 [info] Running: C:\Users\Utilisateur\AppData\Local\Programs\Python\Python313\python.exe -m venv .venv 2024-11-08 09:52:37.909 [info] > "\172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet.venv\Scripts\python.exe" -I ~.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\get_output_via_markers.py ~.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\interpreterInfo.py 2024-11-08 09:52:37.909 [info] Environments refresh paths discovered: 157 milliseconds 2024-11-08 09:52:38.604 [info] Environments refresh finished (event): 853 milliseconds 2024-11-08 09:52:38.683 [info] > "\172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet.venv\Scripts\python.exe" -I ~.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\get_output_via_markers.py ~.vscode\extensions\ms-python.python-2024.18.0-win32-x64\python_files\interpreterInfo.py 2024-11-08 09:52:38.683 [info] Environments refresh paths discovered: 21 milliseconds 2024-11-08 09:52:39.239 [info] Environments refresh finished (event): 577 milliseconds 2024-11-08 09:56:11.293 [info] CREATED_VENV:\172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet.venv\Scripts\python.exe 2024-11-08 09:56:11.297 [info] CREATE_VENV.UPGRADING_PIP Running: \172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet.venv\Scripts\python.exe -m pip install --upgrade pip 2024-11-08 09:56:24.598 [info] Requirement already satisfied: pip in \172.16.4.250\classes\classe_ciel_2025\bdag\année ciel 2\bdd\bdd python\bdd python\projet.venv\lib\site-packages (24.2) 2024-11-08 09:56:24.752 [info] Collecting pip 2024-11-08 09:56:24.772 [info] Using cached pip-24.3.1-py3-none-any.whl.metadata (3.7 kB) 2024-11-08 09:56:24.801 [info] Using cached pip-24.3.1-py3-none-any.whl (1.8 MB) 2024-11-08 09:56:25.000 [info] Installing collected packages: pip Attempting uninstall: pip 2024-11-08 09:56:25.022 [info] Found existing installation: pip 24.2 2024-11-08 09:56:26.426 [info] Uninstalling pip-24.2: 2024-11-08 09:56:28.129 [info] Successfully uninstalled pip-24.2 2024-11-08 10:01:12.543 [info] Successfully installed pip-24.3.1 2024-11-08 10:01:13.035 [info] CREATE_VENV.UPGRADED_PIP 2024-11-08 10:01:13.077 [info] Discover tests for workspace name: Projet - uri: \172.16.4.250\classes\Classe_CIEL_2025\bdag\Année CIEL 2\BDD\BDD python\BDD python\Projet 2024-11-08 10:01:13.079 [info] Chemin de l’interpréteur Python : ..venv\Scripts\python.exe 2024-11-08 10:01:13.099 [info] > & "//172.16.4.250/classes/Classe_CIEL_2025/bdag/Année CIEL 2/BDD/BDD python/BDD python/Projet/.venv/Scripts/Activate.ps1" ; echo 'e8b39361-0157-4923-80e1-22d70d46dee6' ; python ~/.vscode/extensions/ms-python.python-2024.18.0-win32-x64/python_files/printEnvVariables.py 2024-11-08 10:01:13.100 [info] shell: powershell 2024-11-08 10:01:13.651 [warning] Got env variables but with errors & : Impossible de charger le fichier \172.16.4.250\classes\Classe_CIEL_2025\bdag\Ann�e CIEL 2\BDD\BDD python\BDD python\Projet.venv\Scripts\Activate.ps1, car l'ex�cution de scripts est d�sactiv�e sur ce syst�me. Pour plus d'informations, consultez about_Execution_Policies � l'adresse https://go.microsoft.com/fwlink/?LinkID=135170. Au caract�re Ligne:1 : 3

I don't know why when I'm at school it doesn't work, but the school's PCs work fine on it, but not on my laptop. Is it because I'm up to date and so that's it or I don't know.

bilalop commented 1 week ago

Image Image Image