Skip to content

Python extension fails to activate #1837

Closed

Description

@davegaulke

Edit: the error is

The number of constructor arguments in the derived class s must be >= than the number of constructor arguments of its base class

  • Web Browser: Chrome 83.0.4103.116 (Official Build) (64-bit)
  • Local OS: macOS 10.13.6
  • Remote OS: Clear Linux version 33420
  • Remote Architecture: x86_64
  • code-server --version: 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259

I've loaded the Microsoft python extension. Syntax coloring works, but code completion does not. I also get the error "command 'python.setInterpreter' not found" when clicking on the python interpreter at the bottom of the window. Remote server python is 3.8.3.

Activity

  1. Anjum48 commented on Jul 3, 2020

    @Anjum48

    I'm having the same issue. I've tried reinstalling the extension and rolling back to an older version. No luck 😢

  2. ProgrammingPleb commented on Jul 4, 2020

    @ProgrammingPleb

    This is actually an extension problem and this version works https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

    Mine works after installing this one.

    Source: Issue #1818

  3. szho42 commented on Jul 28, 2020

    @szho42

    @EzzPrograms that works for me. Reverting to an old version enables the intellisense. thanks

  4. changed the title [-]python extension intellisense not working[/-] [+]Python extension fails to start[/+] on Jul 29, 2020
  5. changed the title [-]Python extension fails to start[/-] [+]Python extension fails to activate[/+] on Jul 29, 2020
  6. code-asher commented on Jul 29, 2020

    @code-asher
    Member
  7. vumaasha commented on Aug 2, 2020

    @vumaasha

    @EzzPrograms can you post the version of the code server and python version you are using. I have downgraded still pylint shows import error

  8. ProgrammingPleb commented on Aug 3, 2020

    @ProgrammingPleb

    @EzzPrograms can you post the version of the code server and python version you are using. I have downgraded still pylint shows import error

    This is the python extension version I’m using: https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

    For code-server, it should be the latest one.

  9. vumaasha commented on Aug 3, 2020

    @vumaasha

    @EzzPrograms can you post the version of the code server and python version you are using. I have downgraded still pylint shows import error

    This is the python extension version I’m using: https://github.com/microsoft/vscode-python/releases/tag/2020.5.86806

    For code-server, it should be the latest one.

    finally I got the python extension to work by disabling Jedi (jediEnabled:false) and by setting PYTHONPATH env var . The PYTHONPATH was not getting picked up from the .env file by linter

    Now both auto complete and linting works fine

  10. nhooyr commented on Aug 17, 2020

    @nhooyr
    Contributor

    @cmoog Lets revert this extension on the marketplace to the working version.

  11. ducalpha commented on Jan 14, 2021

    @ducalpha

    On code-server 3.8.0 I have to downgrade Python extension to version 2020.10 (the latest version is 2020.12) to make it work.

  12. blaylockbk commented on Feb 8, 2021

    @blaylockbk

    Same on code-server 3.8.1, have to downgrade to 2020.10. (Also the now latest 2021.1 still doesn't work).

  13. MaxG-Git commented on Mar 15, 2021

    @MaxG-Git

    On code-server 3.8.0 I have to downgrade Python extension to version 2020.10 (the latest version is 2020.12) to make it work.

    I have the same issue, Have been looking everywhere for a solution, This finally fixed it for me ~ Thank You!

  14. added this to the Backlog milestone on Apr 29, 2021
  15. oxy commented on Jun 18, 2021

    @oxy

    Hey there - this issue is stale and the latest versions of Python/Jupyter work as of v3.10.2; closing.

  16. jingw222 commented on Jun 25, 2021

    @jingw222

    Still an issue here. Activating the extension via the command Python: Select Interpreter does not show the window wherein I can select different Python executables. The status bar shows "Activating Extensions.." for a few seconds and disappears, but nothing happens after that.

    code-server: v3.10.2
    VS Code: v1.56.1
    Commit: 387b12ef4ca404ffd39d84834e1f0776e9e3c005
    Date: 2021-05-21T23:13:00Z
    Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
    
  17. jsjoeio commented on Jun 28, 2021

    @jsjoeio
    Contributor

    @jingw222 please open a new bug report issue with repro steps. Thanks!

  18. locked as resolved and limited conversation to collaborators on Jun 28, 2021
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

    bugSomething isn't workingupstreamNeeds to be fixed upstream

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions