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

Kernel Creation Issue with python 2.7 #6646

Closed
ahmadmahmood4040 opened this issue Nov 29, 2022 · 1 comment
Closed

Kernel Creation Issue with python 2.7 #6646

ahmadmahmood4040 opened this issue Nov 29, 2022 · 1 comment
Labels
status:Needs Triage Applied to issues that need triage

Comments

@ahmadmahmood4040
Copy link

While creating an kernel using the ipykernel command facing the below error. Need your kind and quick support.

(python2) [cdp.juphub@bipcdpe02acdfrp ~]$ python -m ipykernel install --user --name python2 --display-name "Python 2"
Traceback (most recent call last):
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/runpy.py", line 111, in _get_module_details
import(mod_name) # Do not catch exceptions initializing package
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/site-packages/ipykernel/init.py", line 2, in
from .connect import *
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/site-packages/IPython/init.py", line 48, in
from .core.application import Application
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/site-packages/IPython/core/application.py", line 23, in
from traitlets.config.application import Application, catch_config_error
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/site-packages/traitlets/config/init.py", line 6, in
from .application import *
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/site-packages/traitlets/config/application.py", line 17, in
from decorator import decorator
File "/data6/anaconda/anaconda3/envs/python2/lib/python2.7/site-packages/decorator.py", line 162
print('Error in generated code:', file=sys.stderr)
^
SyntaxError: invalid syntax

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to issues that need triage label Nov 29, 2022
@RRosio
Copy link
Collaborator

RRosio commented Dec 1, 2022

Hi @ahmadmahmood4040, thank you for submitting this issue. Python 2 reached end of life almost three years ago, it is no longer supported. Due to this I will go ahead and close this issue. If you do find places in the documentation that indicate Python 2 support, we would appreciate if you could let us know by opening up another issue! Thank you!

@RRosio RRosio closed this as completed Dec 1, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

2 participants