jupyter / jupyter/notebook

AttributeError: 'module' object has no attribute 'create_default_context'

Open
#4,483 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

MyLap-MBP:~ sh$ jupyter notebook
Traceback (most recent call last):
File "/anaconda2/bin/jupyter-notebook", line 7, in
from notebook.notebookapp import main
File "/anaconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 60, in
from tornado import httpserver
File "/anaconda2/lib/python2.7/site-packages/tornado/httpserver.py", line 33, in
from tornado.http1connection import HTTP1ServerConnection, HTTP1ConnectionParameters
File "/anaconda2/lib/python2.7/site-packages/tornado/http1connection.py", line 30, in
from tornado import iostream
File "/anaconda2/lib/python2.7/site-packages/tornado/iostream.py", line 40, in
from tornado.netutil import ssl_wrap_socket, _client_ssl_defaults, _server_ssl_defaults
File "/anaconda2/lib/python2.7/site-packages/tornado/netutil.py", line 44, in
_client_ssl_defaults = ssl.create_default_context(
AttributeError: 'module' object has no attribute 'create_default_context'
MyLap-MBP:~ sh$

export PATH="/usr/local/opt/jpeg-turbo/bin:$PATH"
MyLap-MBP:~ sh$ /anaconda2/bin/jupyter_mac.command ; exit;
Traceback (most recent call last):
File "/anaconda2/bin/jupyter-notebook", line 7, in
from notebook.notebookapp import main
File "/anaconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 60, in
from tornado import httpserver
File "/anaconda2/lib/python2.7/site-packages/tornado/httpserver.py", line 33, in
from tornado.http1connection import HTTP1ServerConnection, HTTP1ConnectionParameters
File "/anaconda2/lib/python2.7/site-packages/tornado/http1connection.py", line 30, in
from tornado import iostream
File "/anaconda2/lib/python2.7/site-packages/tornado/iostream.py", line 40, in
from tornado.netutil import ssl_wrap_socket, _client_ssl_defaults, _server_ssl_defaults
File "/anaconda2/lib/python2.7/site-packages/tornado/netutil.py", line 44, in
_client_ssl_defaults = ssl.create_default_context(
AttributeError: 'module' object has no attribute 'create_default_context'
logout
Saving session...completed.

[Process completed]

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by running the mentioned jupyter notebook entry point in the reported Anaconda Python 2.7 environment, then trace imports through notebook/notebookapp.py and tornado/netutil.py. Done means the notebook command starts without the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.