jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

TypeError: 'module' object is not callable with starting `jupyter notebook` Python3.7 #457

Closed RaghuMurugesan closed 5 years ago

RaghuMurugesan commented 5 years ago

Recently installed python3.7.1 in my mac. After this, when I try to start jupyter, I am getting TypeError. Refer to the below snapshot.

$$$ jupyter notebook

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/jupyter-notebook", line 7, in <module> from notebook.notebookapp import main File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/notebook/__init__.py", line 25, in <module> from .nbextensions import install_nbextension File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/notebook/nbextensions.py", line 31, in <module> from .config_manager import BaseJSONConfigManager File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/notebook/config_manager.py", line 15, in <module> from traitlets.config import LoggingConfigurable File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/traitlets/config/__init__.py", line 6, in <module> from .application import * File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/traitlets/config/application.py", line 77, in <module> @decorator TypeError: 'module' object is not callable

$$$

RaghuMurugesan commented 5 years ago

Looks like python kernel didn't like the init.py files that I created in directory sub directories from where I started jupyter notebook. Delete those init.py files fixed the kernel crash issue