Skip to content

command 'python.setInterpreter' not found #1818

Closed

Description

@syci

In a new environment, and with the ms-python.python-2020.6.88468 extension, when selecting the pyhton interpreter I get this error:

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

  • Web Browser: Edge 84.0.522.20
  • Local OS: Windows 10
  • Remote OS: Ubuntu 18 LTS
  • Remote Architecture: x64
  • code-server --version: 3.4.1
  • Python 2.7 & Python 3.6

Logs:

[2020-06-19 11:55:18.245] [exthost] [info] ExtensionService#_doActivateExtension ms-python.python {"startup":false,"extensionId":{"value":"ms-python.python","_lower":"ms-python.python"},"activationEvent":"onCommand:python.setInterpreter"}
[2020-06-19 11:55:18.245] [exthost] [info] ExtensionService#loadCommonJSModule file:///home/code/.local/share/code-server/extensions/ms-python.python-2020.6.88468/out/client/extension

Activity

  1. syci commented on Jun 19, 2020

    @syci
    Author

    I've also tried creating a virutal environment and selecting it in the preferences and it seems that everything to do with python.XXXXX fails.

    '${config:python.interpreterPath}' can not be resolved because setting 'python.interpreterPath' not found.

  2. raulhsant commented on Jun 19, 2020

    @raulhsant

    @syci I was having the same problem.
    Solved it by rolling the python extension back to 2020.5.86806

  3. frozen-icecube commented on Jun 20, 2020

    @frozen-icecube

    @syci I was having the same problem.
    Solved it by rolling the python extension back to 2020.5.86806

    Are you able to debug any pytests?

    It started giving this error to me : Error: The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class.

    Here is a jira for same : microsoft/vscode-python#12465

  4. nhooyr commented on Jun 22, 2020

    @nhooyr
    Contributor
  5. added
    extensionThe issue needs to be fixed in the extension
    on Jun 22, 2020
  6. cmoog commented on Jun 22, 2020

    @cmoog
    Contributor

    Closing as this is cannot be fixed within code-server. Please reference microsoft/vscode-python#12465

  7. cchi-nuro commented on Jun 24, 2020

    @cchi-nuro

    Hi @raulhsant, could you provide some instruction on how to roll back the python extension?

  8. syci commented on Jun 25, 2020

    @syci
    Author

    Hello, first you have to change the option to automatically update the extensions, otherwise it will go to the latest version again.

    pref

    Then uninstall the extension and proceed to install it manually from the file.

    code-server --install-extension file.vsix 

    You can download the version from here https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

  9. rosarioema2020 commented on Jan 7, 2021

    @rosarioema2020

    Hxhx Chi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensionThe issue needs to be fixed in the extension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions