Skip to content

Python extension is broken #2341

Closed
Closed

Description

@abhishekkrthakur

It seems like the python interpreter cannot be selected in 3.7.1

Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)

Activity

  1. vnijs commented on Nov 20, 2020

    @vnijs

    Things were working nicely in 3.6.2 but not in 3.7.1 or 3.7.2. With the latest version of the python extension it is trying to also load a jupyter extension and dying there.

    image

  2. code-asher commented on Nov 20, 2020

    @code-asher
    Member
  3. vnijs commented on Nov 21, 2020

    @vnijs

    @zhizheng-1 Thanks! I can confirm that the 2020.10 version (link below) does indeed work with code-server 3.7.2

    https://github.com/microsoft/vscode-python/releases/tag/2020.10.332292344

  4. bruwozniak commented on Nov 23, 2020

    @bruwozniak

    The problem I believe is that you are shipping the 2020.12.0-dev version of the Jupyter extension in your extension gallery (presumably automatically built from https://github.com/Microsoft/vscode-jupyter), whereas in Microsoft's gallery the versions are different: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter, the latest one being 2020.11.372831992

  5. code-asher commented on Nov 23, 2020

    @code-asher
    Member

    Ahhhhhh I see. It doesn't look like they use GitHub releases or tags so our builder must just be continually building off master and breaking all the time as a consequence.

  6. ttthree commented on Nov 25, 2020

    @ttthree

    Any timeline to get this fixed or is there any workaround ? :)

  7. code-asher commented on Nov 25, 2020

    @code-asher
    Member
  8. vnijs commented on Nov 25, 2020

    @vnijs

    @ttthree I installed the latest extension versions of jupyter and python from marketplace (link below for jupyter) and that seems to work.

    https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter

  9. jhallas commented on Dec 1, 2020

    @jhallas

    I build code-server into a Docker image I use. I got it working by first installing the python extension (which now automatically installs the 2020.12.0-dev jupyter extension mentioned above from code-server. I then install the jupyter vsix linked above with --force because it sees it as an older version. I then add "extensions.autoUpdate": false to my settings.json file so it doesn't automatically update to the incompatible version upon startup.

  10. changed the title [-]Python interpreter broken in 3.7.1[/-] [+]Python extension broken[/+] on Dec 2, 2020
  11. changed the title [-]Python extension broken[/-] [+]Python extension is broken[/+] on Dec 2, 2020
  12. gogobd commented on Dec 3, 2020

    @gogobd

    @jhallas Could you eventually share the Dockerfile you are using? I've been downgrading to 3.4.1 and for quite a long time now...

  13. benz0li commented on Dec 6, 2020

    @benz0li
    Contributor

    @gogobd I'm currently using the following code in a Dockerfile with code-server 3.7.4:

    [...]
    && code-server --install-extension ms-toolsai.jupyter-2020.11.399280825.vsix || true \
    && code-server --install-extension ms-python.python \
    [...]

    See #2355 (comment) about standard bash ignore error || true.

  14. 57 remaining items

  15. phisanti commented on Mar 18, 2021

    @phisanti

    I totally agree with @Ki6an, but the problem is I cannot run ipython widgets in that version. More precisely, I would like to run the nglview plug-in for my work. Do you know how I could run that widget in the 2020.5.86806 version? Moreover, what is the difference between the two versions so that the 2020.5.86806 works but 2020.10.332292344 doesn't? Is there any "debug" option that we could activate to see how each version runs?

  16. oxy commented on Mar 18, 2021

    @oxy

    Alright, latest versions that work for me are Python v2021.2.633441544 and Jupyter 2021.2.0 - and they should be the latest on our gallery.

  17. phisanti commented on Mar 18, 2021

    @phisanti

    I have just tried Python v2021.2.633441544 and Jupyter 2021.2.0 (using code-server 3.9.1) as @oxy says and I can confirm that it works. However, I might seem a bit thick but I don't understand why. I thought that code-server depended on open-vsix and they have not released a new version, so why is that suddenly now works?

  18. abhishekkrthakur commented on Mar 18, 2021

    @abhishekkrthakur
    Author

    doesnt work for me. im on 3.9.1 and updated python extension to 2021.2.633.....

  19. rushtehrani commented on Mar 18, 2021

    @rushtehrani

    It's also working for me with code-server 3.9.1 and ms-python 2021.3.658691958.

  20. oxy commented on Mar 20, 2021

    @oxy

    I have just tried Python v2021.2.633441544 and Jupyter 2021.2.0 (using code-server 3.9.1) as @oxy says and I can confirm that it works. However, I might seem a bit thick but I don't understand why. I thought that code-server depended on open-vsix and they have not released a new version, so why is that suddenly now works?

    We were hoping that we could switch from our internal gallery to OpenVSX and then hope upstream/OpenVSX could sort out the versioning issues; but then I decided to just manually override the versions we're serving right now, since we're blocked on web extension support for OpenVSX.

    I didn't expect 2021.3 to work as that depends on VSCode 1.54, which we're yet to update to.

  21. wzrzt commented on Mar 22, 2021

    @wzrzt

    It's also working for me with code-server 3.9.1 and ms-python 2021.3.658691958.
    May I know how to install ms-python 2021.3.658691958 into code-server 3.9.1, please?
    I can't see this version on my code-server 3.9.1. And I downloaded it from vscode-extension-market and it can't be installed and told me not compitable with vscode v1.53.2.

  22. rushtehrani commented on Mar 22, 2021

    @rushtehrani

    May I know how to install ms-python 2021.3.658691958 into code-server 3.9.1, please?
    I can't see this version on my code-server 3.9.1. And I downloaded it from vscode-extension-market and it can't be installed and told me not compitable with vscode v1.53.2.

    I went back and checked and it looks like even though I explicitly set the version to 2021.3.658691958 in my Dockerfile:

    RUN code-server --install-extension ms-python.python@2021.3.658691958

    The extension page in the IDE is showing that 2021.2.633441544 is installed:

    image

    So --install-extension probably fell back to the latest supported version.

    The good news is 2021.2.633441544 is working.

  23. ddurham2 commented on Mar 23, 2021

    @ddurham2

    @rushtehrani, that's probably due to #2626

  24. DavidTWynn commented on Mar 27, 2021

    @DavidTWynn

    After I set an env variable to install python3 I could install 2021.3 of the ms-python extension.

    https://github.com/linuxserver/docker-mods/tree/code-server-python3
    DOCKER_MODS=linuxserver/mods:code-server-python3

  25. gogobd commented on Apr 23, 2021

    @gogobd

    it's weird but all the previous workarounds don't work for me any more... I get ChunkLoadError with 2020.10.332292344/ms-python-release.vsix and everything else I tried didn't work either. Is there a known working solution for docker currently?
    I'm trying to get Jupyter Notebooks to work again.

  26. MarcSkovMadsen commented on Jun 2, 2021

    @MarcSkovMadsen

    I can get ms-python v2021.5.842923320 and ms-toolsai.jupyter v2021.3.0 working.

    But using the latest version ms-toolsai.jupyter v2021.5.0 does not work.

    image

  27. gogobd commented on Jun 2, 2021

    @gogobd

    I can get ms-python v2021.5.842923320 and ms-toolsai.jupyter v2021.3.0 working.

    But using the latest version ms-toolsai.jupyter v2021.5.0 does not work.

    image

    Is that with 3.10.x? (I’m asking because I completely downgraded to 3.9.x because Jupyter didn’t work.)

  28. MarcSkovMadsen commented on Jun 2, 2021

    @MarcSkovMadsen

    I can get ms-python v2021.5.842923320 and ms-toolsai.jupyter v2021.3.0 working.
    But using the latest version ms-toolsai.jupyter v2021.5.0 does not work.
    image

    Is that with 3.10.x? (I’m asking because I completely downgraded to 3.9.x because Jupyter didn’t work.)

    What is 3.10.x referring to?

  29. jsjoeio commented on Jun 2, 2021

    @jsjoeio
    Contributor

    What is 3.10.x referring to?

    The code-server version I believe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingextensionThe issue needs to be fixed in the extensionhigh-priorityThis issue needs to be resolved ASAP

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions