Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Jupyter on Mac (Silicon) Monterey #8295

Closed
DonJayamanne opened this issue Nov 17, 2021 · 3 comments
Closed

Unable to start Jupyter on Mac (Silicon) Monterey #8295

DonJayamanne opened this issue Nov 17, 2021 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded
Milestone

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Nov 17, 2021

OS: Mac Silicon (M1) Monterey

Problem

  • Unable to run a cell as Jupyter fails to start

Logs

File "/opt/homebrew/lib/python3.9/site-packages/traitlets/config/loader.py", line 933, in __call__
namespace._flags.append(self.flag)
AttributeError: 'Namespace' object has no attribute '_flags'

We believe this could resolved by updating traitlets to the latest version as follows python -m pip install 'traitlets>=5.1.1.

More information on this can be found here https://discourse.jupyter.org/t/attributeerror-namespace-object-has-no-attribute-flags-when-running-jupyter-kernelspec-list-json/11690

@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Nov 17, 2021
@DonJayamanne DonJayamanne changed the title Unable to start Jupyter on Moterey Unable to start Jupyter on Mac (Silicon) Moterey Nov 17, 2021
@DonJayamanne
Copy link
Contributor Author

DonJayamanne commented Nov 17, 2021

Work around:

  • Update traitlets to the latest version as follows python -m pip install 'traitlets>=5.1.1
  • Please ensure you install traitlets into the Python enviornment used to start Jupyter
  • To determine the Python environment used to start Jupyter, please do the following
    • Select the command 'Jupyter: Select Interpreter to start Jupyter Server`
    • In the quickpick the currently selected interrpeter will be displayed in the intput box as a placeholder.
    • Please install traitlets into this environment

@DonJayamanne DonJayamanne added kernel-crash notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) labels Nov 17, 2021
@DonJayamanne DonJayamanne self-assigned this Nov 17, 2021
@DonJayamanne DonJayamanne pinned this issue Nov 18, 2021
@DonJayamanne DonJayamanne changed the title Unable to start Jupyter on Mac (Silicon) Moterey Unable to start Jupyter on Mac (Silicon) Monterey Nov 18, 2021
@greazer greazer added this to the November 2021 milestone Nov 18, 2021
@DonJayamanne
Copy link
Contributor Author

Please test using this test plan #8357

@rchiodo rchiodo added the verified Verification succeeded label Dec 3, 2021
@rchiodo
Copy link
Contributor

rchiodo commented Dec 3, 2021

/verified with testplan

@greazer greazer unpinned this issue Dec 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants