microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.33k stars 1.19k forks source link

Python debugger won't launch for conda-like envs not returned via `conda env list` command #18530

Closed thomascrocker closed 2 years ago

thomascrocker commented 2 years ago

Issue Type: Bug

When using the debugger. Nothing happens other than the debug overlay appearing briefly for a second or so. Same symptoms as this issue https://github.com/microsoft/vscode-python/issues/7927 This happens with python extension version 2022.0.01814523869 It does not happen with previous version 2021.12.1559732655

Expected vs. Actual Behaviour

Expect: degugging session to launch. Actual: debugging session doesn't launch.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Have python extension version 2022.0.01814523869 installed Launch python debugger with F5 or via menus.

Diagnostic data

User Settings

``` defaultLS: {"defaultLSType":"Pylance"} downloadLanguageServer: true envFile: "" venvPath: "" venvFolders: "" condaPath: "" pipenvPath: "" poetryPath: "" languageServer: "Pylance" linting • enabled: true • cwd: "" • Flake8Args: "" • flake8Enabled: true • flake8Path: "" • lintOnSave: true • banditArgs: "" • banditEnabled: false • banditPath: "" • mypyArgs: "" • mypyEnabled: false • mypyPath: "" • pycodestyleArgs: "" • pycodestyleEnabled: false • pycodestylePath: "" • prospectorArgs: "" • prospectorEnabled: false • prospectorPath: "" • pydocstyleArgs: "" • pydocstyleEnabled: false • pydocstylePath: "" • pylamaArgs: "" • pylamaEnabled: false • pylamaPath: "" • pylintArgs: "" • pylintPath: "" sortImports • args: "" • path: "" formatting • autopep8Args: "" • autopep8Path: "" • provider: "black" • blackArgs: "" • blackPath: "" • yapfArgs: "" • yapfPath: "" testing • cwd: "" • debugPort: 3000 • nosetestArgs: "" • nosetestsEnabled: undefined • nosetestPath: "" • promptToConfigure: true • pytestArgs: "" • pytestEnabled: false • pytestPath: "" • unittestArgs: "" • unittestEnabled: false • autoTestDiscoverOnSaveEnabled: true terminal • activateEnvironment: true • executeInFileDir: "" • launchArgs: "" experiments • enabled: true • optInto: [] • optOutFrom: [] insidersChannel: "off" tensorBoard • logDirectory: "" ```

Extension version: 2021.12.1559732655 VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:39:46.686Z) OS version: Linux x64 3.10.0-1160.53.1.el7.x86_64 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Xeon(R) Gold 6132 CPU @ 2.60GHz (4 x 2593)| |GPU Status|2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|1, 0, 0| |Memory (System)|7.62GB (0.12GB free)| |Process Argv|--unity-launch --crash-reporter-id 88a94a52-dfc4-4a3b-8c03-b9f21fd70706| |Screen Reader|no| |VM|100%| |DESKTOP_SESSION|1-gnome| |XDG_CURRENT_DESKTOP|GNOME| |XDG_SESSION_DESKTOP|1-gnome| |XDG_SESSION_TYPE|x11|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 pythonvspyl392cf:30425750 pythontb:30283811 pythonvspyt551:30345470 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscorecescf:30429732 pythondataviewer:30285071 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30433507 vsclayoutctrt:30437039 vsrem710:30416614 dsvsc008:30436278 vsbas813:30436447 vscscmwlcmt:30438805 vscgsvidc:30438801 helix:30438806 ```
karthiknadig commented 2 years ago

@thomascrocker This actually looks like #18530, Can you try what is mentioned in the instructions here and share what you get? https://github.com/microsoft/vscode-python/issues/18436#issuecomment-1030280077

If you are using conda make sure it is not this issue from conda https://github.com/conda/conda/issues/11072

thomascrocker commented 2 years ago

I am actually using an environment implemented via the "module load" interface. I use in VSCode by simply pasting the path to the interpreter in the bin/ folder of this environment.

I tried the command in #18436 and get this:

$ conda run -n apitest1 --no-capture-output --live-stream python "~/.vscode/extensions/ms-python.python-2022.0.1786462952/pythonFiles/lib/python/debugpy/adapter"

EnvironmentLocationNotFound: Not a conda environment: /home/h02/tcrocker/.conda/envs/apitest1`

It looks like there is a problem with the python extension when starting up, I have installed the latest version of the python extension again, and get this in the python output console when opening my project in vscode:

Experiment 'pythonaacf' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'pythonSurveyNotification' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
> conda info --json
> /opt/scitools/environments/default/current/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /data/users/tcrocker/miniconda3/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
Python interpreter path: /opt/scitools/environments/default/current/bin/python
> . activate current && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/printEnvVariables.py
[ERROR 2022-1-16 16:16:54.683]: getActivatedEnvironmentVariables [Error: Command failed: . activate current && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/printEnvVariables.py
bash: activate: No such file or directory

    at ChildProcess.exithandler (child_process.js:317:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: ". activate current && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/printEnvVariables.py"
}
> /data/users/tcrocker/miniconda3/envs/esmvaltool/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /data/users/tcrocker/miniconda3/envs/esmvaltool_dev/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> ~/.julia/conda/3/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /opt/conda/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /opt/scitools/conda/environments/esmvaltool-2.4.0/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /bin/python3 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /bin/python3.4 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /usr/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /usr/bin/python3 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
> /usr/bin/python3.4 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
Starting Pylance language server.
> conda run -n current --no-capture-output --live-stream python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/linter.py -m flake8 max-line-length=120 ./diagnostics/summary_boxplots.py
cwd: .
##########Linting Output - flake8##########

conda info returns:

$ conda info

     active environment : None
            shell level : 0
       user config file : /home/h02/tcrocker/.condarc
 populated config files : /etc/conda/condarc
                          /home/h02/tcrocker/.condarc
          conda version : 4.11.0
    conda-build version : not installed
         python version : 3.9.9.final.0
       virtual packages : __linux=3.10.0=0
                          __glibc=2.17=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /data/users/tcrocker/miniconda3  (writable)
      conda av data dir : /data/users/tcrocker/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://metoffice.jfrog.io/metoffice/api/conda/conda-forge/linux-64
                          https://metoffice.jfrog.io/metoffice/api/conda/conda-forge/noarch
                          https://metoffice.jfrog.io/metoffice/api/conda/conda-main/linux-64
                          https://metoffice.jfrog.io/metoffice/api/conda/conda-main/noarch
                          https://metoffice.jfrog.io/metoffice/api/conda/conda-agnostic/linux-64
                          https://metoffice.jfrog.io/metoffice/api/conda/conda-agnostic/noarch
                          https://metoffice.jfrog.io/metoffice/api/conda/conda-r/linux-64
                          https://metoffice.jfrog.io/metoffice/api/conda/conda-r/noarch
          package cache : /home/h02/tcrocker/.conda/pkgs
       envs directories : /home/h02/tcrocker/.conda/envs
                          /opt/scitools/conda/environments
                          /data/users/tcrocker/miniconda3/envs
               platform : linux-64
             user-agent : conda/4.11.0 requests/2.27.1 CPython/3.9.9 Linux/3.10.0-1160.53.1.el7.x86_64 rhel/7.9 glibc/2.17
                UID:GID : 11113:1000
             netrc file : /home/h02/tcrocker/.netrc
           offline mode : False
karthiknadig commented 2 years ago

@thomascrocker when you use this command you have to put in the environment that you are using, in the command i use apitest1 which is an environment on my machine. From the logs it looks like you are using an environment called current.

conda run -n  current --no-capture-output --live-stream python "/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/lib/python/debugpy/adapter"

The logs seem normal, it is testing out what it can find out about the environments. Try the above command. Also, can you share your launch.json and settings.json

thomascrocker commented 2 years ago

Ah OK, I see..

current is the name of the module load environment I am using, it's not a conda environment. However I do have conda installed also.

$ conda run -n  base --no-capture-output --live-stream python "/net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/lib/python/debugpy/adapter"
python: can't open file '/net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/lib/python/debugpy/adapter': [Errno 2] No such file or directory
ERROR conda.cli.main_run:execute(33): Subprocess for 'conda run ['python', '/net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/lib/python/debugpy/adapter']' command failed.  (See above for error)

This is with the latest version of the extension installed. My launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "args": [
                "recipe_GCM_and_RCM_pan_EU_20220207_101326",
                "tas",
                "JJA",
                "recipe_GCM_global_tas_20220121_172015",
                "CEU-3",
                "--shape_file=/home/h02/tcrocker/code/EUCP_WP5_Lines_of_Evidence/shape_files/EUCP_WP3_domains/EUCP_WP3_domains.shp",
                "--aerosols"
            ]
        }
    ]
}

And settings.json

{
    "python.pythonPath": "/opt/scitools/environments/default/current/bin/python",
    "[python]": {},
    "python.formatting.blackPath": "/net/project/ukmo/scitools/opt_scitools/environments/default/2020_10_12/bin/black",
    "python.jediEnabled": false,
    "editor.formatOnType": true,
    "editor.formatOnSave": true,
    "python.defaultInterpreterPath": "/opt/scitools/environments/default/current/bin/python",
    "python.linting.pylintEnabled": false,
    "python.linting.flake8Enabled": true,
    "python.linting.enabled": true,
    "git.autofetch": true,
    "terminal.integrated.env.linux": {
        "PYTHONPTATH": "/project/applied/SharedResources/CATNIP/lib"
    },
    "files.associations": {
        "*.rmd": "markdown"
    },
    "jupyter.sendSelectionToInteractiveWindow": true,
    "jupyter.askForKernelRestart": false,
    "workbench.editorAssociations": {
        "*.ipynb": "jupyter-notebook"
    },
    "window.zoomLevel": 0,
    "git.ignoreLegacyWarning": true,
    "python.languageServer": "Pylance",
    "python.formatting.provider": "black",
    "diffEditor.ignoreTrimWhitespace": false,
    "remote.SSH.useLocalServer": false,
    "remote.SSH.remotePlatform": {
        "sci6.jasmin.ac.uk": "linux",
        "sci8.jasmin.ac.uk": "linux",
        "sci1.jasmin.ac.uk": "linux",
        "sci2.jasmin.ac.uk": "linux",
        "sci3.jasmin.ac.uk": "linux"
    },
    "files.watcherExclude": {
        "**/esmvaltool_output/**": true
    },
    "html.format.enable": false,
    "redhat.telemetry.enabled": true,
    "notebook.cellToolbarLocation": {
        "default": "right",
        "jupyter-notebook": "left"
    },
    "git.confirmSync": false,
    "jupyter.interactiveWindowMode": "perFile",
    "terminal.integrated.gpuAcceleration": "off",
    "latex-workshop.view.pdf.viewer": "tab",
    "python.linting.flake8Args": [
        "max-line-length=120"
    ]
}
karthiknadig commented 2 years ago

@thomascrocker It looks like the path was wrong can you try this?

conda run -n  current --no-capture-output --live-stream python "/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/lib/python/debugpy/adapter"
thomascrocker commented 2 years ago

Here you go, the command appears to have hung, or at the very least it's not returned yet:

$ conda run -n  base --no-capture-output --live-stream python "/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/lib/python/debugpy/adapter"
Content-Length: 137

{"seq": 1, "type": "event", "event": "output", "body": {"category": "telemetry", "output": "ptvsd", "data": {"packageVersion": "1.5.1"}}}Content-Length: 139

{"seq": 2, "type": "event", "event": "output", "body": {"category": "telemetry", "output": "debugpy", "data": {"packageVersion": "1.5.1"}}}
karthiknadig commented 2 years ago

@thomascrocker Looking at the python path you are using /opt/scitools/environments/default/current/bin/python that seems to look like a conda environment. From the python logs, it seems like conda run -n current seems to be running fine, which indicated it is a conda environment.

try running this command to see if it is listed by conda:

conda env list

That command will not return. The fact you are seeing the json output means that the debugger seems to be able to start. You can kill that process (crtl+c or ctrl+q should do).

The next step is to add "logToFile": true to your launch json config and run the debugger. This will generate logs that will be store in this location /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869 share all the files that end with *.log in that directory.

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "logToFile": true,   //  <--- ADD THIS
            "args": [
                "recipe_GCM_and_RCM_pan_EU_20220207_101326",
                "tas",
                "JJA",
                "recipe_GCM_global_tas_20220121_172015",
                "CEU-3",
                "--shape_file=/home/h02/tcrocker/code/EUCP_WP5_Lines_of_Evidence/shape_files/EUCP_WP3_domains/EUCP_WP3_domains.shp",
                "--aerosols"
            ]
        }
    ]
}
thomascrocker commented 2 years ago

Looking at the python path you are using /opt/scitools/environments/default/current/bin/python that seems to look like a conda environment. From the python logs, it seems like conda run -n current seems to be running fine, which indicated it is a conda environment.

I wonder if this is getting to the root of the problem. The "current" environment, is a software environment provided centrally via our IT teams and activated on the command line using "module load " functionality. In VSCode though, I just supply the direct path to the interpreter See for info:

$ module display scitools
-------------------------------------------------------------------
/usr/share/Modules/modulefiles/scitools/default-current:

module-whatis    Scientific software stack for the 'default/current' environment. 
conflict         scitools um_tools 
prepend-path     PATH /net/project/ukmo/scitools/opt_scitools/environments/default/2021_03_18-1/bin 
setenv           SSS_ENV_DIR /opt/scitools/environments/default/current 
setenv           SSS_ENV_NAME default-current 
setenv           SSS_TAG_DIR /net/project/ukmo/scitools/opt_scitools/environments/default/2021_03_18-1 
-------------------------------------------------------------------

Running conda locally only works I think with environments that are part of my conda install under my username.. So..

$ conda env list
# conda environments:
#
base                  *  /data/users/tcrocker/miniconda3
esmvaltool               /data/users/tcrocker/miniconda3/envs/esmvaltool
esmvaltool_dev           /data/users/tcrocker/miniconda3/envs/esmvaltool_dev
cdo                      /home/h02/tcrocker/.conda/envs/cdo
                         /home/h02/tcrocker/.julia/conda/3
esmvaltool-2.4.0         /opt/scitools/conda/environments/esmvaltool-2.4.0

(See that current is not listed here) If you need more info on this "current" environment I may have to tag in someone from our IT team who will understand more about how this works under the hood and alongside my "personal" conda install. It has worked fine with vscode debugging up till this latest version of the extension.

Log file from debugger attached.. debugger.vscode_a95e0b2b-af25-45f2-b41d-11685bc746b3.log

karthiknadig commented 2 years ago

@thomascrocker Looks like the fact that we are identifying /opt/scitools/environments/default/current/bin/python as conda might be the problem.

There are two possible workarounds: [Option 1] Use older version of the extension. You can switch versions from the extensions view. Click on the gear icon, and select Install another version, then select a version from 2021.12.* series. [Option 2] Create a symlink to /opt/scitools/environments/default/current/bin/python from your home directory. This could trick the extension into not classifying it a conda environment.

Can you provide details on how to create the module load environment locally? If we can re-produce this locally, we should be able to resolve this faster. Also, could you do a ls in the /opt/scitools/environments/default/current directory and share the output.

thomascrocker commented 2 years ago

Thanks for the update. For now I will stick with option 1, since I know installing the previous version of the extension works.

Regarding creating the module load environment.. I think all the module load command does is: 1) Set the environment variables described after setenv in the module display output here https://github.com/microsoft/vscode-python/issues/18530#issuecomment-1041892384 2) Modify the system path to include the folder listed after prepend-path in the module display output above.

I have requested one of our developers who implements this system to contribute to this issue since they will know for sure what is going on a lot better than me. It will probably be tomorrow though since it's around 6pm here in the UK and most people's working day is pretty much over.

Lastly here is the ls output:

$ ls /opt/scitools/environments/default/current
bin              conda-meta     doc  images   lib      man      phrasebooks  qml        sbin   ssl           var
compiler_compat  cx_Oracle-doc  etc  include  libexec  mkspecs  plugins      resources  share  translations  x86_64-conda_cos6-linux-gnu
karthiknadig commented 2 years ago

@thomascrocker Thanks for details. I think what is tripping the extension up is the conda-meta directory in the /opt/scitools/environments/default/current. Do you have info on how this environment was created?

thomascrocker commented 2 years ago

@thomascrocker Thanks for details. I think what is tripping the extension up is the conda-meta directory in the /opt/scitools/environments/default/current. Do you have info on how this environment was created?

I think conda is used to create these environments, but I'm afraid I don't know the details. One of our developers should hopefully be able to fill in the blanks tomorrow.

jamesp commented 2 years ago

Unfortunately default/current cannot be considered to be 100% compatible with conda. For example, information in conda-meta may not be complete and scripts such as activate wont work. Also the environment will not appear in e.g. conda env list.

It should be possible to treat it 100% as an isolated python environment though, in the sense that everything relative to bin/python is where it should be for python to work as intended.

karthiknadig commented 2 years ago

@jamesp Thanks for the details. Can you tell us how you create that environment?

@karrtikr in the conda detection code, I had added a logic that if the env dir has conda-meta then we treat it as a potential conda environment. I don't think we can entirely remove that. I think we need to add the ability to say skip conda-run.

jamesp commented 2 years ago

@karthiknadig it was created using conda-rpms which is a conda environment packaging utility. What specific information/files do you need in place to make the debugger workflow operate? We have recently migrated off this tooling, but there are a number of other tools that do similar things - e.g. conda-pack - so it may be worth checking that your assumptions are broadly compatible with how they work. For example. it may not be safe to assume that the conda binary is always available with a conda-created environment.

karrtikr commented 2 years ago

@karrtikr in the conda detection code, I had added a logic that if the env dir has conda-meta then we treat it as a potential conda environment. I don't think we can entirely remove that. I think we need to add the ability to say skip conda-run.

I think the easier solution would be to just not identify these as conda environments instead of this. Is there a quick way to check that, other than the fact that conda env list does not return it?

karrtikr commented 2 years ago

@jamesp @tbombach @thomascrocker Can you provide the logs again? I'm interested in how we find such environments. Try setting python.logging.level to debug in User settings, reload, and please provide the logs as mentioned in the issue template.

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

``` XXX ```

thomascrocker commented 2 years ago

Can you provide the logs again?

@karrtikr OK, here are debug level logs from the Python Output panel. FYI, the lines after 10:24:29.403 just seemed to repeat every time I clicked away from that window and then back into it.

Experiment 'pythonaacf' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'pythonSurveyNotification' is active
Experiment 'PythonPyTorchProfiler' is active
Experiment 'pythonDeprecatePythonPath' is active
Experiment 'pythonInterpreterInfoPinnedcf' is active
[DEBUG 2022-1-23 10:24:22.735]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.738]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.738]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.749]: Testing: Setting up watcher for /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[INFO 2022-1-23 10:24:22.754]: [
  'Display locator refreshing progress, Class name = p, completed in 1ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-23 10:24:22.755]: Searching for conda.
[DEBUG 2022-1-23 10:24:22.757]: Probing conda binary: conda
[DEBUG 2022-1-23 10:24:22.768]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.768]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
> conda info --json
[DEBUG 2022-1-23 10:24:22.813]: Searching for workspace virtual envs in: /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:24:22.814]: Getting roots
[DEBUG 2022-1-23 10:24:22.814]: Found roots
[DEBUG 2022-1-23 10:24:22.895]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.895]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.896]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:24:22.897]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.897]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:22.898]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-1-23 10:24:23.163]: Found: /bin/python --> /bin/python2.7
[INFO 2022-1-23 10:24:23.300]: Found: /bin/python2 --> /bin/python2.7
[INFO 2022-1-23 10:24:23.302]: Found: /bin/python2.7 --> /bin/python2.7
[INFO 2022-1-23 10:24:23.302]: Found: /bin/python3 --> /bin/python3.6
[INFO 2022-1-23 10:24:23.302]: Found: /bin/python3.4 --> /bin/python3.4
[INFO 2022-1-23 10:24:23.302]: Found: /bin/python3.6 --> /bin/python3.6
[DEBUG 2022-1-23 10:24:23.326]: Getting roots
[DEBUG 2022-1-23 10:24:23.401]: Found roots
[DEBUG 2022-1-23 10:24:23.402]: Start watching root /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog for globs ["python","*/python","*/bin/python"]
[DEBUG 2022-1-23 10:24:23.402]: Start watching: /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog with pattern python using VSCode API
[DEBUG 2022-1-23 10:24:23.403]: Start watching: /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog with pattern */python using VSCode API
[DEBUG 2022-1-23 10:24:23.403]: Start watching: /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog with pattern */bin/python using VSCode API
[DEBUG 2022-1-23 10:24:23.469]: conda info --json: {
  "GID": 1000,
  "UID": 11113,
  "active_prefix": null,
  "active_prefix_name": null,
  "av_data_dir": "/opt/conda/etc/conda",
  "av_metadata_url_base": null,
  "channels": [
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-forge/linux-64",
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-forge/noarch",
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-main/linux-64",
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-main/noarch",
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-mo-internal/linux-64",
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-mo-internal/noarch",
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-r/linux-64",
    "https://metoffice.jfrog.io/metoffice/api/conda/conda-r/noarch"
  ],
  "conda_build_version": "not installed",
  "conda_env_version": "4.11.0",
  "conda_location": "/opt/conda/lib/python3.9/site-packages/conda",
  "conda_prefix": "/opt/conda",
  "conda_private": false,
  "conda_shlvl": 0,
  "conda_version": "4.11.0",
  "config_files": [
    "/etc/conda/condarc",
    "/home/h02/tcrocker/.condarc"
  ],
  "default_prefix": "/opt/conda",
  "env_vars": {
    "CIO_TEST": "<not set>",
    "CONDA_EXE": "/data/users/tcrocker/miniconda3/bin/conda",
    "CONDA_PYTHON_EXE": "/data/users/tcrocker/miniconda3/bin/python",
    "CONDA_ROOT": "/opt/conda",
    "CONDA_SHLVL": "0",
    "CPATH": "/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mkl/include",
    "CURL_CA_BUNDLE": "<not set>",
    "INFOPATH": "/project/ukmo/rhel7/LaTeX/texlive/2017/texmf-dist/doc/info",
    "JUPYTER_PATH": "/project/ukmo/rhel7/R/R-3.6.3/share/jupyter",
    "LD_LIBRARY_PATH": "/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/compiler/lib/intel64:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mkl/lib/intel64:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mpi/intel64/lib:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/daal/lib/intel64_lin:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/debugger_2017/libipt/intel64/lib:/project/ukmo/rhel7/fortran/opt/pgi/linux86-64/16.10/lib:/project/ukmo/rhel7/LaTeX/packages/poppler/0.61.1/lib64:/project/ukmo/rhel7/LaTeX/packages/tiff/4.0.9/lib64:/project/ukmo/rhel7/LaTeX/packages/pixman/0.34.0/lib:/project/ukmo/rhel7/LaTeX/packages/openjpeg/2.3.0/lib:/project/ukmo/rhel7/LaTeX/packages/lcms/2.9/lib:${LD_LIBRARY_PATH}:/project/ukmo/rhel7/fortran/opt/gfortran/packages/gcc/8.1.0/lib64:/opt/ukmo/share/lib:/project/ukmo/rhel7/R/R-3.6.3/lib64/R/lib:/project/ukmo/rhel7/R/R-3.6.3/lib:/usr/lib/oracle/12.2/client64/lib",
    "LD_RUN_PATH": "/project/ukmo/rhel7/R/R-3.6.3/lib",
    "LIBRARY_PATH": "/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/compiler/lib/intel64:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mkl/lib/intel64",
    "MANPATH": "/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/documentation_2017/en:/project/ukmo/rhel7/fortran/opt/NAGWare/6.1.0/x86_64/man:/project/ukmo/rhel7/fortran/opt/pgi/linux86-64/16.10/man:/project/ukmo/rhel7/LaTeX/texlive/2017/texmf-dist/doc/man:/project/ukmo/rhel7/LaTeX/packages/poppler/0.61.1/share/man:/project/ukmo/rhel7/LaTeX/packages/tiff/4.0.9/share/man:/project/ukmo/rhel7/LaTeX/packages/lcms/2.9/share/man:/project/ukmo/rhel7/R/R-3.6.3/share/man:/opt/ukmo/utils/man:/project/ukmo/rhel7/maple/2021/man:/opt/moose-man/man:/opt/puppetlabs/puppet/share/man:",
    "MODULEPATH": "/usr/share/Modules/modulefiles:/etc/modulefiles:/project/ukmo/rhel7/fortran/opt/gfortran/modulefiles:/project/ukmo/rhel7/R/modulefiles:/project/ukmo/scitools/conda/modulefiles:/project/ukmo/rhel7/LaTeX/modulefiles:/home/h01/frum/modules/modulefiles",
    "NLSPATH": "/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/compiler/lib/intel64/locale/%l_%t/%N:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mkl/lib/intel64/locale/%l_%t/%N:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/debugger_2017/gdb/intel64/locale/%l_%t/%N",
    "PATH": "/home/h02/tcrocker/perl5/bin:/home/h02/tcrocker/.local/bin/:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/bin/intel64:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mkl/bin/intel64:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mpi/intel64/bin:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/daal/bin:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/debugger_2017/gdb/intel64/bin/:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/debugger_2017/gdb/targets/intel64/linux/bin:/project/ukmo/rhel7/fortran/opt/NAGWare/6.1.0/x86_64/bin:/project/ukmo/rhel7/fortran/opt/pgi/linux86-64/16.10/bin:/project/ukmo/rhel7/LaTeX/packages/texstudio/2.12.6/bin:/project/ukmo/rhel7/LaTeX/texlive/2017/bin/x86_64-linux:/project/ukmo/rhel7/LaTeX/packages/poppler/0.61.1/bin:/project/ukmo/rhel7/LaTeX/packages/tiff/4.0.9/bin:/project/ukmo/rhel7/LaTeX/packages/openjpeg/2.3.0/bin:/project/ukmo/rhel7/LaTeX/packages/lcms/2.9/bin:/project/ukmo/rhel7/R/rstudio-1.4.1106/bin/pandoc:/project/ukmo/rhel7/R/rstudio-1.4.1106/bin:/project/ukmo/rhel7/R/R-3.6.3/bin:/home/h02/tcrocker/perl5/bin:/home/h02/tcrocker/.local/bin/:/usr/lib64/qt-3.3/bin:/opt/conda/condabin:/project/precis/grace/ncl/bin:/opt/ukmo/avd/cdo/linux32/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/h01/frum/bin:/opt/ukmo/utils/bin:/opt/ecaccess-webtoolkit-4.0.2/client:/opt/ukmo/idl/ukmo/bin:/project/ukmo/rhel7/maple/2021/bin:/opt/moose-client-wrapper/bin:/opt/puppetlabs/bin:/home/h02/tcrocker/bin:/home/h02/tcrocker/bin",
    "PKG_CONFIG_PATH": "/project/ukmo/rhel7/LaTeX/packages/poppler/0.61.1/lib64/pkgconfig:/project/ukmo/rhel7/LaTeX/packages/tiff/4.0.9/lib64/pkgconfig:/project/ukmo/rhel7/LaTeX/packages/pixman/0.34.0/lib/pkgconfig:/project/ukmo/rhel7/LaTeX/packages/openjpeg/2.3.0/lib/pkgconfig:/project/ukmo/rhel7/LaTeX/packages/lcms/2.9/lib/pkgconfig:/project/ukmo/rhel7/R/R-3.6.3/lib/pkgconfig",
    "PYTHONIOENCODING": "utf-8",
    "PYTHONPATH": "/home/h02/tcrocker/code/CATNIP/lib",
    "PYTHONUNBUFFERED": "1",
    "REQUESTS_CA_BUNDLE": "<not set>",
    "SANDBOX_LD_LIBRARY_PATH": "${LD_LIBRARY_PATH}:/project/ukmo/rhel7/fortran/opt/gfortran/packages/gcc/8.1.0/lib64",
    "SANDBOX_NLSPATH": "/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/compiler/lib/intel64/locale/%l_%t/%N:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/compilers_and_libraries_2017.7.259/linux/mkl/lib/intel64/locale/%l_%t/%N:/project/ukmo/rhel7/fortran/opt/intel/composer_xe_2017.7.259/debugger_2017/gdb/intel64/locale/%l_%t/%N",
    "SSL_CERT_FILE": "<not set>",
    "VSCODE_CODE_CACHE_PATH": "/home/h02/tcrocker/.config/Code/CachedData/899d46d82c4c95423fb7e10e68eba52050e30ba3",
    "WINDOWPATH": "1",
    "ftp_proxy": "<set>",
    "http_proxy": "<set>",
    "https_proxy": "<set>",
    "no_proxy": "<set>"
  },
  "envs": [
    "/data/users/tcrocker/miniconda3",
    "/data/users/tcrocker/miniconda3/envs/esmvaltool",
    "/data/users/tcrocker/miniconda3/envs/esmvaltool_dev",
    "/home/h02/tcrocker/.conda/envs/cdo",
    "/home/h02/tcrocker/.julia/conda/3",
    "/opt/conda",
    "/opt/scitools/conda/environments/esmvaltool-2.4.0"
  ],
  "envs_dirs": [
    "/home/h02/tcrocker/.conda/envs",
    "/opt/scitools/conda/environments",
    "/opt/conda/envs"
  ],
  "netrc_file": "/home/h02/tcrocker/.netrc",
  "offline": false,
  "pkgs_dirs": [
    "/home/h02/tcrocker/.conda/pkgs"
  ],
  "platform": "linux-64",
  "python_version": "3.9.7.final.0",
  "rc_path": "/home/h02/tcrocker/.condarc",
  "requests_version": "2.27.1",
  "root_prefix": "/opt/conda",
  "root_writable": false,
  "site_dirs": [
    "~/.local/lib/python2.7",
    "~/.local/lib/python3.6"
  ],
  "sys.executable": "/opt/conda/bin/python",
  "sys.prefix": "/opt/conda",
  "sys.version": "3.9.7 (default, Sep 16 2021, 13:09:58) \n[GCC 7.5.0]",
  "sys_rc_path": "/opt/conda/.condarc",
  "user_agent": "conda/4.11.0 requests/2.27.1 CPython/3.9.7 Linux/3.10.0-1160.53.1.el7.x86_64 rhel/7.9 glibc/2.17",
  "user_rc_path": "/home/h02/tcrocker/.condarc",
  "virtual_pkgs": [
    [
      "__linux",
      "3.10.0",
      "0"
    ],
    [
      "__glibc",
      "2.17",
      "0"
    ],
    [
      "__unix",
      "0",
      "0"
    ],
    [
      "__archspec",
      "1",
      "x86_64"
    ]
  ]
}

[DEBUG 2022-1-23 10:24:23.470]: Found conda via filesystem probing: conda
[DEBUG 2022-1-23 10:24:23.470]: Searching for conda environments using conda
[DEBUG 2022-1-23 10:24:23.470]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoCached-Args="conda"
[DEBUG 2022-1-23 10:24:23.470]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoCached-Args="conda"
[DEBUG 2022-1-23 10:24:23.470]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:23.470]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:23.470]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:23.475]: Cached data exists getEnvironmentVariables, <No Resource>
> /opt/scitools/environments/default/next/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:23.598]: Found conda environment: /data/users/tcrocker/miniconda3/bin/python
[DEBUG 2022-1-23 10:24:23.599]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[INFO 2022-1-23 10:24:23.746]: Found interpreter for /opt/scitools/environments/default/next/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
Python interpreter path: /opt/scitools/environments/default/next/bin/python
[INFO 2022-1-23 10:24:23.764]: Found: /usr/bin/python --> /usr/bin/python2.7
[DEBUG 2022-1-23 10:24:23.769]: Found conda environment: /data/users/tcrocker/miniconda3/envs/esmvaltool/bin/python
[DEBUG 2022-1-23 10:24:23.812]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[INFO 2022-1-23 10:24:23.817]: Found: /usr/bin/python2 --> /usr/bin/python2.7
[INFO 2022-1-23 10:24:23.817]: Found: /usr/bin/python2.7 --> /usr/bin/python2.7
[INFO 2022-1-23 10:24:23.818]: Found: /usr/bin/python3 --> /usr/bin/python3.6
[INFO 2022-1-23 10:24:23.818]: Found: /usr/bin/python3.4 --> /usr/bin/python3.4
[INFO 2022-1-23 10:24:23.819]: Found: /usr/bin/python3.6 --> /usr/bin/python3.6
[DEBUG 2022-1-23 10:24:23.823]: Cached data exists getEnvironmentVariables, <No Resource>
> /data/users/tcrocker/miniconda3/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:23.835]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-23 10:24:23.879]: Found conda environment: /data/users/tcrocker/miniconda3/envs/esmvaltool_dev/bin/python
[INFO 2022-1-23 10:24:23.912]: [
  'Get Conda File from interpreter, Class name = p, completed in 100ms, has a falsy return value, Arg 1: "/opt/scitools/environments/default/next/bin/python", Arg 2: "next", Return Value: undefined'
]
[DEBUG 2022-1-23 10:24:23.921]: Activation Commands received source activate next for shell bash
[DEBUG 2022-1-23 10:24:23.921]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-23 10:24:23.921]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-23 10:24:23.921]: Has Custom Env Vars
[DEBUG 2022-1-23 10:24:23.921]: Activating Environment to capture Environment variables, . activate next && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/printEnvVariables.py
> . activate next && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/printEnvVariables.py
[ERROR 2022-1-23 10:24:24.4]: getActivatedEnvironmentVariables [Error: Command failed: . activate next && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/printEnvVariables.py
bash: activate: No such file or directory

    at ChildProcess.exithandler (child_process.js:317:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: ". activate next && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/printEnvVariables.py"
}
[INFO 2022-1-23 10:24:24.6]: [
  `getActivatedEnvironmentVariables, Class name = P, completed in 257ms, has a falsy return value, Arg 1: undefined, Arg 2: {"sysPrefix":"/opt/scitools/environments/default/next","envType":"Conda","envName":"next","envPath":"/opt/scitools/environments/default/next","path":"/opt/scitools/environments/default/next/bin/python","architecture":3,"sysVersion":"3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:53) \\n[GCC 9.4.0]","version":{"raw":"3.7.12","major":3,"minor":7,"patch":12,"build":[],"prerelease":["final","0"]},"displayName":"Python 3.7.12 ('next')","detailedDisplayName":"Python 3.7.12 ('next': conda)"}, Arg 3: false`
]
[INFO 2022-1-23 10:24:24.23]: Found interpreter for /data/users/tcrocker/miniconda3/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.51]: Cached data exists getEnvironmentVariables, <No Resource>
> /data/users/tcrocker/miniconda3/envs/esmvaltool/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.77]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-23 10:24:24.104]: Found conda environment: /home/h02/tcrocker/.julia/conda/3/bin/python
[DEBUG 2022-1-23 10:24:24.173]: Cached data exists getEnvironmentVariables, <No Resource>
> /data/users/tcrocker/miniconda3/envs/esmvaltool_dev/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.189]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-23 10:24:24.208]: Found conda environment: /opt/conda/bin/python
[DEBUG 2022-1-23 10:24:24.238]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[DEBUG 2022-1-23 10:24:24.242]: Found conda environment: /opt/scitools/conda/environments/esmvaltool-2.4.0/bin/python
[DEBUG 2022-1-23 10:24:24.344]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=
[INFO 2022-1-23 10:24:24.465]: Found interpreter for /data/users/tcrocker/miniconda3/envs/esmvaltool/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.466]: Cached data exists getEnvironmentVariables, <No Resource>
> ~/.julia/conda/3/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.511]: Found interpreter for /data/users/tcrocker/miniconda3/envs/esmvaltool_dev/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.511]: Cached data exists getEnvironmentVariables, <No Resource>
> /opt/conda/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.577]: Found interpreter for /opt/conda/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.578]: Cached data exists getEnvironmentVariables, <No Resource>
> /opt/scitools/conda/environments/esmvaltool-2.4.0/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.705]: Found interpreter for /home/h02/tcrocker/.julia/conda/3/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.706]: Cached data exists getEnvironmentVariables, <No Resource>
> /bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.780]: Found interpreter for /bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.781]: Cached data exists getEnvironmentVariables, <No Resource>
> /bin/python3 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.811]: Found interpreter for /opt/scitools/conda/environments/esmvaltool-2.4.0/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.812]: Cached data exists getEnvironmentVariables, <No Resource>
> /bin/python3.4 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.886]: Found interpreter for /bin/python3.4,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.887]: Cached data exists getEnvironmentVariables, <No Resource>
> /usr/bin/python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.902]: Found interpreter for /bin/python3,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.903]: Cached data exists getEnvironmentVariables, <No Resource>
> /usr/bin/python3 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:24.938]: Found interpreter for /usr/bin/python,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[DEBUG 2022-1-23 10:24:24.938]: Cached data exists getEnvironmentVariables, <No Resource>
> /usr/bin/python3.4 /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:25.3]: Found interpreter for /usr/bin/python3,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:25.23]: Found interpreter for /usr/bin/python3.4,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py,/net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/interpreterInfo.py
[INFO 2022-1-23 10:24:25.24]: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"/bin/python","sysPrefix":"/usr","ctime":-1,"mtime":-1},"display":"Python 2.7.5 64-bit","version":{"major":2,"minor":7,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"2.7.5 (default, Aug 13 2020, 02:51:10) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]"},"arch":3,"distro":{"org":""},"source":["path env var"],"detailedDisplayName":"Python 2.7.5 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/bin/python3","sysPrefix":"/usr","ctime":-1,"mtime":-1},"display":"Python 3.6.8 64-bit","version":{"major":3,"minor":6,"micro":8,"release":{"level":"final","serial":0},"sysVersion":"3.6.8 (default, Aug 13 2020, 07:46:32) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]"},"arch":3,"distro":{"org":""},"source":["path env var"],"detailedDisplayName":"Python 3.6.8 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python","sysPrefix":"/usr","ctime":-1,"mtime":-1},"display":"Python 2.7.5 64-bit","version":{"major":2,"minor":7,"micro":5,"release":{"level":"final","serial":0},"sysVersion":"2.7.5 (default, Aug 13 2020, 02:51:10) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]"},"arch":3,"distro":{"org":""},"source":["path env var"],"detailedDisplayName":"Python 2.7.5 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3","sysPrefix":"/usr","ctime":-1,"mtime":-1},"display":"Python 3.6.8 64-bit","version":{"major":3,"minor":6,"micro":8,"release":{"level":"final","serial":0},"sysVersion":"3.6.8 (default, Aug 13 2020, 07:46:32) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]"},"arch":3,"distro":{"org":""},"source":["path env var"],"detailedDisplayName":"Python 3.6.8 64-bit"},{"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python3.4","sysPrefix":"/usr","ctime":-1,"mtime":-1},"display":"Python 3.4.10 64-bit","version":{"major":3,"minor":4,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.4.10 (default, Jun 23 2021, 22:06:51) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]"},"arch":3,"distro":{"org":""},"source":["path env var"],"detailedDisplayName":"Python 3.4.10 64-bit"},{"name":"","location":"/data/users/tcrocker/miniconda3","kind":"virt-conda","executable":{"filename":"/data/users/tcrocker/miniconda3/bin/python","sysPrefix":"/data/users/tcrocker/miniconda3","ctime":-1,"mtime":-1},"display":"Python 3.9.9","version":{"major":3,"minor":9,"micro":9,"release":{"level":"final","serial":0},"sysVersion":"3.9.9 | packaged by conda-forge | (main, Dec 20 2021, 02:40:17) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"detailedDisplayName":"Python 3.9.9 (conda)"},{"name":"","location":"/data/users/tcrocker/miniconda3/envs/esmvaltool","kind":"virt-conda","executable":{"filename":"/data/users/tcrocker/miniconda3/envs/esmvaltool/bin/python","sysPrefix":"/data/users/tcrocker/miniconda3/envs/esmvaltool","ctime":-1,"mtime":-1},"display":"Python 3.9.7","version":{"major":3,"minor":9,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.9.7 | packaged by conda-forge | (default, Sep 23 2021, 07:28:37) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"detailedDisplayName":"Python 3.9.7 (conda)"},{"name":"","location":"/data/users/tcrocker/miniconda3/envs/esmvaltool_dev","kind":"virt-conda","executable":{"filename":"/data/users/tcrocker/miniconda3/envs/esmvaltool_dev/bin/python","sysPrefix":"/data/users/tcrocker/miniconda3/envs/esmvaltool_dev","ctime":-1,"mtime":-1},"display":"Python 3.8.12","version":{"major":3,"minor":8,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.8.12 | packaged by conda-forge | (default, Sep 29 2021, 19:52:28) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"detailedDisplayName":"Python 3.8.12 (conda)"},{"name":"","location":"/home/h02/tcrocker/.julia/conda/3","kind":"virt-conda","executable":{"filename":"/home/h02/tcrocker/.julia/conda/3/bin/python","sysPrefix":"/home/h02/tcrocker/.julia/conda/3","ctime":-1,"mtime":-1},"display":"Python 3.8.3","version":{"major":3,"minor":8,"micro":3,"release":{"level":"final","serial":0},"sysVersion":"3.8.3 (default, May 19 2020, 18:47:26) \n[GCC 7.3.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"detailedDisplayName":"Python 3.8.3 (conda)"},{"name":"base","location":"/opt/conda","kind":"virt-conda","executable":{"filename":"/opt/conda/bin/python","sysPrefix":"/opt/conda","ctime":-1,"mtime":-1},"display":"Python 3.9.7 ('base')","version":{"major":3,"minor":9,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.9.7 (default, Sep 16 2021, 13:09:58) \n[GCC 7.5.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"detailedDisplayName":"Python 3.9.7 ('base': conda)"},{"name":"esmvaltool-2.4.0","location":"/opt/scitools/conda/environments/esmvaltool-2.4.0","kind":"virt-conda","executable":{"filename":"/opt/scitools/conda/environments/esmvaltool-2.4.0/bin/python","sysPrefix":"/opt/scitools/conda/environments/esmvaltool-2.4.0","ctime":-1,"mtime":-1},"display":"Python 3.9.7 ('esmvaltool-2.4.0')","version":{"major":3,"minor":9,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:20:46) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"detailedDisplayName":"Python 3.9.7 ('esmvaltool-2.4.0': conda)"},{"name":"current","location":"/opt/scitools/environments/default/current","kind":"virt-conda","executable":{"filename":"/opt/scitools/environments/default/current/bin/python","sysPrefix":"/opt/scitools/environments/default/current","ctime":-1,"mtime":-1},"display":"Python 3.6.10 64-bit ('current': conda)","version":{"major":3,"minor":6,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.6.6 |Anaconda, Inc.| (default, Oct  9 2018, 12:34:16) \n[GCC 7.3.0]"},"arch":3,"distro":{"org":""},"source":[],"hasCompleteInfo":true},{"name":"","location":"","kind":"global-other","executable":{"filename":"/bin/python3.4","sysPrefix":"/usr","ctime":-1,"mtime":-1},"display":"Python 3.4.10 64-bit","version":{"major":3,"minor":4,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.4.10 (default, Jun 23 2021, 22:06:51) \n[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]"},"arch":3,"distro":{"org":""},"source":["path env var"],"detailedDisplayName":"Python 3.4.10 64-bit"},{"name":"2021_03_18-1","location":"/net/project/ukmo/scitools/opt_scitools/environments/default/2021_03_18-1","kind":"virt-conda","executable":{"filename":"/net/project/ukmo/scitools/opt_scitools/environments/default/2021_03_18-1/bin/python","sysPrefix":"/net/project/ukmo/scitools/opt_scitools/environments/default/2021_03_18-1","ctime":-1,"mtime":-1},"display":"Python 3.6.6 64-bit ('2021_03_18-1': conda)","version":{"major":3,"minor":6,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.6.6 |Anaconda, Inc.| (default, Oct  9 2018, 12:34:16) \n[GCC 7.3.0]"},"arch":3,"distro":{"org":""},"source":[],"hasCompleteInfo":true},{"name":"2021_03_18-1","location":"/opt/scitools/environments/default/2021_03_18-1","kind":"virt-conda","executable":{"filename":"/opt/scitools/environments/default/2021_03_18-1/bin/python","sysPrefix":"/opt/scitools/environments/default/2021_03_18-1","ctime":-1,"mtime":-1},"display":"Python 3.6.6 64-bit ('2021_03_18-1': conda)","version":{"major":3,"minor":6,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.6.6 |Anaconda, Inc.| (default, Oct  9 2018, 12:34:16) \n[GCC 7.3.0]"},"arch":3,"distro":{"org":""},"source":[],"hasCompleteInfo":true},{"name":"2020_10_12","location":"/opt/scitools/environments/default/2020_10_12","kind":"virt-conda","executable":{"filename":"/opt/scitools/environments/default/2020_10_12/bin/python","sysPrefix":"/opt/scitools/environments/default/2020_10_12","ctime":-1,"mtime":-1},"display":"Python 3.6.10 64-bit ('2020_10_12': conda)","version":{"major":3,"minor":6,"micro":10,"release":{"level":"final","serial":0},"sysVersion":"3.6.10 |Anaconda, Inc.| (default, Mar 23 2020, 23:13:11) \n[GCC 7.3.0]"},"arch":3,"distro":{"org":""},"source":[],"hasCompleteInfo":true},{"name":"esmvaltool-2.4.0","location":"/net/project/ukmo/scitools/opt_scitools/conda/environments/esmvaltool-2.4.0","kind":"virt-conda","executable":{"filename":"/net/project/ukmo/scitools/opt_scitools/conda/environments/esmvaltool-2.4.0/bin/python","sysPrefix":"/net/project/ukmo/scitools/opt_scitools/conda/environments/esmvaltool-2.4.0","ctime":-1,"mtime":-1},"display":"Python 3.9.7 64-bit ('esmvaltool-2.4.0': conda)","version":{"major":3,"minor":9,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:20:46) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":""},"source":[],"hasCompleteInfo":true},{"name":"next","location":"/opt/scitools/environments/default/next","kind":"virt-conda","executable":{"filename":"/opt/scitools/environments/default/next/bin/python","sysPrefix":"/opt/scitools/environments/default/next","ctime":-1,"mtime":-1},"display":"Python 3.7.12 ('next')","version":{"major":3,"minor":7,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:53) \n[GCC 9.4.0]"},"arch":3,"distro":{"org":""},"source":[],"detailedDisplayName":"Python 3.7.12 ('next': conda)","hasCompleteInfo":true}]
[INFO 2022-1-23 10:24:25.25]: [
  'Hide locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-23 10:24:25.26]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.27]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.27]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.29]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.29]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.81]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.81]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.83]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog/diagnostics/summary_boxplots.py
[DEBUG 2022-1-23 10:24:25.83]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.83]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.84]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog/diagnostics/summary_boxplots.py
[DEBUG 2022-1-23 10:24:25.91]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:25.91]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
Starting Pylance language server.
[DEBUG 2022-1-23 10:24:25.669]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[INFO 2022-1-23 10:24:25.743]: [
  'Starting language server, Class name = r, completed in 649ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-1-23 10:24:25.746]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.746]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.747]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog/diagnostics/summary_boxplots.py
[DEBUG 2022-1-23 10:24:25.768]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:25.778]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.778]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.779]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog/diagnostics/summary_boxplots.py
[DEBUG 2022-1-23 10:24:25.780]: [object Object]. Shell identified as undefined 
[DEBUG 2022-1-23 10:24:25.780]: Shell path 'bash', base path 'bash'
[DEBUG 2022-1-23 10:24:25.780]: Shell path identified as shell 'bash'
[DEBUG 2022-1-23 10:24:25.780]: Terminal shell path 'bash' identified as shell 'bash'
[DEBUG 2022-1-23 10:24:25.780]: [object Object]. Shell identified as bash 
[DEBUG 2022-1-23 10:24:25.781]: Shell identified as 'bash'
[DEBUG 2022-1-23 10:24:25.781]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:25.781]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.781]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.782]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-1-23 10:24:25.816]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:25.816]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:25.827]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.827]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:25.828]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:26.292]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:26.292]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:26.293]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog/diagnostics/summary_boxplots.py
[DEBUG 2022-1-23 10:24:26.296]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
> conda run -n next --no-capture-output --live-stream python /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/get_output_via_markers.py /net~/.vscode/extensions/ms-python.python-2022.0.1814523869/pythonFiles/linter.py -m flake8 max-line-length=120 ./diagnostics/summary_boxplots.py
cwd: .
##########Linting Output - flake8##########

[DEBUG 2022-1-23 10:24:29.403]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:29.403]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:29.404]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
[DEBUG 2022-1-23 10:24:29.408]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:33.254]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:33.255]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:33.255]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:24:33.265]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:24:59.831]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:59.831]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:24:59.833]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
[DEBUG 2022-1-23 10:24:59.841]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:25:19.643]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:19.643]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:19.644]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:25:19.653]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:25:21.75]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:21.75]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:21.76]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:25:21.175]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:25:24.564]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:24.564]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:24.566]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:25:24.612]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:25:37.27]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:37.27]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:37.29]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
[DEBUG 2022-1-23 10:25:37.34]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:25:42.540]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:42.541]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:42.542]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:25:42.545]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:25:47.243]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:47.243]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:47.244]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
[DEBUG 2022-1-23 10:25:47.245]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:25:48.269]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:48.269]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:25:48.270]: Cached data exists getEnvironmentVariables, /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog
[DEBUG 2022-1-23 10:25:48.271]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-1-23 10:26:3.480]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:26:3.481]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_/home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog"-Arg-Separator-undefined
[DEBUG 2022-1-23 10:26:3.482]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
[DEBUG 2022-1-23 10:26:3.484]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
PALuczak commented 2 years ago

I also have this issue. Since I have created the env in a devcontainer, I can share the exact environment specification needed to reproduce the problem. Hope that it helps!

devcontainer.json

// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.4/containers/python-3-miniconda
{
    "name": "MYPROJECT-dev",
    "build": {
        "context": "..",
        "dockerfile": "Dockerfile",
    },
    "mounts": [
        "source=/mnt/d/SOMEDIR,target=/SOMEDIR,type=bind,consistency=cached"
    ],
    "runArgs": [
        "--gpus",
        "all"
    ],
    // Set *default* container specific settings.json values on container create.
    "settings": {
        "python.defaultInterpreterPath": "/opt/conda/bin/python",
        "python.pythonPath": "/opt/conda/bin/python",
        "python.formatting.provider": "black",
        "python.linting.pylintEnabled": true,
        "python.linting.enabled": true,
        "python.linting.mypyEnabled": true,
        "python.linting.flake8Enabled": true,
        "terminal.integrated.env.linux": {
            "PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}"
        },
    },
    "containerEnv": {
        "PYTHONPATH": "/workspaces/MYDIR"
    },
    // Add the IDs of extensions you want installed when the container is created.
    "extensions": [
        "ms-python.python@2021.12.1559732655",
        "ms-python.vscode-pylance",
        "ms-python.anaconda-extension-pack",
        "ms-python.gather",
        "donjayamanne.python-environment-manager",
        "visualstudioexptteam.vscodeintellicode",
        "ms-toolsai.jupyter",
        "eamodio.gitlens"
    ],
    // Use 'forwardPorts' to make a list of ports inside the container available locally.
    // "forwardPorts": [],
    // Use 'postCreateCommand' to run commands after the container is created.
    // "postCreateCommand": "python --version",
    // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
    "remoteUser": "vscode",
    "updateRemoteUserUID": true
}

environment.yml

channels:
  - pytorch
  - plotly
  - conda-forge
  - defaults
dependencies:
  - pytorch-lightning=1.5.5
  - h5py=3.6.0
  - imageio=2.9.0
  - jedi=0.18.0
  - matplotlib=3.3.4
  - mypy=0.750
  - ninja=1.10.2
  - pandas=1.2.4
  - plotly=5.2.2
  - python-kaleido=0.2.1
  - pyflakes=2.3.1
  - pylint=2.8.3
  - scikit-learn=1.0.1
  - scipy=1.7.3
  - seaborn=0.11.2
  - mypy
  - pylint
  - flake8
  - black
  - ipykernel
  - parso
  - isort
  - ptvsd
  - pyparsing
  - six
  - packaging
  - pip=21.2.4
  - pip:
      - comet-ml==3.26.1
      - opencv-python-headless==4.5.4.60
      - torchinfo==1.6.3
      - einops==0.4.0

Dockerfile


ARG USERNAME=vscode
ARG USER_UID=4242
ARG USER_GID=$USER_UID
# Create the user
RUN groupadd --gid $USER_GID $USERNAME \
    && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
    #
    # [Optional] Add sudo support. Omit if you don't need to install software after connecting.
    && apt-get update \
    && apt-get install -y sudo \
    && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
    && chmod 0440 /etc/sudoers.d/$USERNAME

# Copy environment.yml (if found) to a temp location so we update the environment. Also
# copy "noop.txt" so the COPY instruction does not fail if no environment.yml exists.
COPY .devcontainer/environment.yml* .devcontainer/noop.txt /tmp/conda-tmp/
RUN if [ -f "/tmp/conda-tmp/environment.yml" ]; then umask 0002 && /opt/conda/bin/conda env update -n base -f /tmp/conda-tmp/environment.yml; fi \
    && rm -rf /tmp/conda-tmp

# [Optional] Uncomment this section to install additional\ OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get -y install --no-install-recommends git openssh-client

USER $USERNAME
daholste commented 2 years ago

When I create any environment in a fresh installation of Miniconda, then activate that environment, then type "code" from the terminal in that activated environment, then try to debug, I get this issue. @karrtikr -- feel free to ping me if you need a repro

karrtikr commented 2 years ago

Hey @daholste, the issue you face is different, likely a dup of https://github.com/microsoft/vscode-python/issues/18847 which was introduced in the latest version of the extension. This issue is for special type of conda-like environments.

karrtikr commented 2 years ago

@thomascrocker Can you try installing https://github.com/karrtikr/vscode-python/suites/5930400930/artifacts/202870711 and see if it fixes the issue? Use Extension: Install from VSIX command to install the VSIX.

thomascrocker commented 2 years ago

@thomascrocker Can you try installing https://github.com/karrtikr/vscode-python/suites/5930400930/artifacts/202870711 and see if it fixes the issue? Use Extension: Install from VSIX command to install the VSIX.

Hiya,

I've not installed the VSIX. A recent batch of centrally installed system updates updated my python extension to v2022.4.1. Using this version the debugger appears to work correctly. I get the output below in the debugging terminal that launches, and the use of breakpoints, stepping through code etc. works as expected in the IDE.


source activate
conda activate default-2022_03_22
 /usr/bin/env /net/project/ukmo/scitools/opt_scitools/conda/deployments/default-2022_03_22/bin/python /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.4.1/pythonFiles/lib/python/debugpy/launcher 40739 -- diagnostics/summary_boxplots.py recipe_GCM_and_RCM_pan_Caribbean_20220307_115447 pr DJF recipe_GCM_global_tas_20220301_092144 /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog/summary_plots/test "French Guiana" --shape_file=/home/h02/tcrocker/code/EUCP_WP5_Lines_of_Evidence/shape_files/ne_50m_admin_0_map_units/ne_50m_admin_0_map_units.shp --no_lsm 
12:42:31 [tcrocker@vld372 Lines-of-evidence-catalog]$ source activate
bash: activate: No such file or directory
12:42:31 [tcrocker@vld372 Lines-of-evidence-catalog]$ conda activate default-2022_03_22
Could not find conda environment: default-2022_03_22
You can list all discoverable environments with `conda info --envs`.

12:42:31 [tcrocker@vld372 Lines-of-evidence-catalog]$  /usr/bin/env /net/project/ukmo/scitools/opt_scitools/conda/deployments/default-2022_03_22/bin/python /net/home/h02/tcrocker/.vscode/extensions/ms-python.python-2022.4.1/pythonFiles/lib/python/debugpy/launcher 40739 -- diagnostics/summary_boxplots.py recipe_GCM_and_RCM_pan_Caribbean_20220307_115447 pr DJF recipe_GCM_global_tas_20220301_092144 /home/h02/tcrocker/code/EUCP_WP5_Data_Catalogue/Lines-of-evidence-catalog/summary_plots/test "French Guiana" --shape_file=/home/h02/tcrocker/code/EUCP_WP5_Lines_of_Evidence/shape_files/ne_50m_admin_0_map_units/ne_50m_admin_0_map_units.shp --no_lsm