question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

config:python.pythonPath is not the active conda env when running tasks

See original GitHub issue

Issue Type: Bug

Hi every one,

Don’t know what happend that now when I run a task my python points to other environement. Any one knows why?

See image bellow: image

Any clue? Thank you in advance!

Extension version: 2021.6.944021595 VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z) OS version: Windows_NT x64 10.0.18363 Restricted Mode: No Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2

System Info
Item Value
CPUs Intel® Core™ i7-2600K CPU @ 3.40GHz (8 x 3411)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.98GB (3.88GB free)
Process Argv –crash-reporter-id 374583dc-5a50-46a8-a2bc-0e19ed58e733
Screen Reader no
VM 0%
Item Value
Remote WSL: Ubuntu-20.04
OS Linux x64 5.4.72-microsoft-standard-WSL2
CPUs Intel® Core™ i7-2600K CPU @ 3.40GHz (8 x 3411)
Memory (System) 12.47GB (6.84GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30311712
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30322572
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30335481
vscod805:30301674
pythonvspyt200:30331937
vscextlangct:30333562
binariesv615:30325510
vsccppwtct:30329789
bridge0708:30335490

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
karrtikrcommented, Jul 20, 2021

I’ve copied this old variable ${config:python.pythonPath} from the (vscode web)

The new docs will go out very soon (I think today🙂) which should contain the updated details.

Is there any list to consult the env-variables related to python in order to easily code my custom tasks??

I think this should help you out, it states how you can initialize your environment variables which the extension can read from. Closing this.

1reaction
karrtikrcommented, Aug 19, 2021

This looks like a different issue and also doesn’t seem to be related to the Python extension as VSCode itself is responsible for running tasks. I would recommend creating an issue in the vscode repo, or create a new issue in our repo filling the issue template. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code task and Python virtual environment - Stack Overflow
Having this config in your workspace, you can then create a custom task of type process using ${config:python.pythonPath} as it's command ...
Read more >
Tasks with active venv get `source /path/to/activate` as stdin
When configuring a task via the .vscode/tasks.json file and running it, the terminal used should change to the venv set and stdin should...
Read more >
Python Path and Version | Python in Visual Studio Code
Option 2: Activate the Virtual Environment from your Terminal/Command Window and then launch VS Code. Ensure none of the Python paths are configured...
Read more >
Active questions tagged visual-studio-code - Stack Overflow
In the VS Code: Conda Environment it does not print statement 01 first and statement 02 after 2.4s ... conda run -n env_name...
Read more >
python virtual environment - You.com | The search engine you control.
Having this config in your workspace, you can then create a custom task of type process using ${config:python.pythonPath} as it's command field.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found