Skip to content

Installing Python and Jupyter on fresh macOS multiple prompts #20635

Description

@rebornix

On a freshly installed macOS, the very moment we install Python and Jupyter extension per kernel source suggestion (Select Kernel -> Install Recommended Extensions), I got a prompt from the system and an error notification from Jupyter

image

  • Error from Python extension saying it's not recommended to use
  • Prompt from macOS, it's probably triggered by the access of Python interpreter

Not sure who is initiating the Python environment access so let's start the investigation from here. If it's not recommended to use the default Python on macOS, I expect not to see any prompt from system or Python extension.

Activity

  1. added
    bugIssue identified by VS Code Team member as probable bug
    on Jan 27, 2023
  2. rebornix commented on Jan 27, 2023

    @rebornix
    Author

    Clicking on Select Interpreter shows a quick pick, which tells me there is Python is not installed

    image

    Picking the option opens the walkthrough, which suggests to brew install, and it fails as I don't have brew yet.

    image

  3. DonJayamanne commented on Jan 28, 2023

    @DonJayamanne

    Peng Lyu (@rebornix) please could you file issues related to python extension in their repo
    Eg the walk through and interpreter picker is clearly on issue in python extension

  4. DonJayamanne commented on Jan 28, 2023

    @DonJayamanne

    Not sure who is initiating the Python environment access so let's start the investigation from here

    Peng Lyu (@rebornix)

    please could you share the debug logs with the latest insider release and pre/release

  5. karrtikr commented on Mar 2, 2023

    @karrtikr

    If it's not recommended to use the default Python on macOS, I expect not to see any prompt from system or Python extension.

    This is a bug, can be fixed.

    Prompt from macOS, it's probably triggered by the access of Python interpreter

    It happens when extension attempts to check whether usr/bin/python is a valid interpreter or not by running the file, so not sure what we can do there. Once Jupyter handles microsoft/vscode-jupyter#12719 which ensures discovery no longer happens at startup, the prompt should start appearing.

    Picking the option opens the walkthrough, which suggests to brew install, and it fails as I don't have brew yet.

    We can recommend python.org in the text stating to use that if brew is not installed.

  6. added
    area-environmentsFeatures relating to handling interpreter environments
    needs PRReady to be worked on
    feature-requestRequest for new features or functionality
    and removed
    triage-neededNeeds assignment to the proper sub-team
    on Mar 2, 2023
  7. added
    debtCode quality issues
    and removed
    feature-requestRequest for new features or functionality
    on Mar 2, 2023
  8. karrtikr commented on Mar 20, 2023

    @karrtikr

    Verification steps:

  9. locked as resolved and limited conversation to collaborators on Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentsdebtCode quality issuesneeds PRReady to be worked on

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions