ipython-contrib / jupyter_contrib_nbextensions

A collection of various notebook extensions for Jupyter
http://jupyter-contrib-nbextensions.readthedocs.io/en/latest
Other
5.22k stars 806 forks source link

Jupyter totally broken after installing nb extension configurator #1441

Open kaburelabs opened 5 years ago

kaburelabs commented 5 years ago

Hi, I am facing a problem that broke my jupyter after trying to install nbextension-configurator with conda-forge.

My conda also was removed and I got many problems that even I tried to remove nbextension I keep having the same problem.

The Jupyter are running but with this warnings on prompt and all my custom enviroments of my kernels is gone... Could someone help me please?

I saw this problem in many issues but nothing worked to me.

The problem:

 [W 00:05:38.829 NotebookApp] Error loading server extension ipyparallel.nbextension
    Traceback (most recent call last):
      File "/home/leonardo/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1615, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/home/leonardo/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'ipyparallel'
[W 00:05:38.829 NotebookApp] Error loading server extension jupyterlab
    Traceback (most recent call last):
      File "/home/leonardo/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1615, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/home/leonardo/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'jupyterlab'
[W 00:05:38.829 NotebookApp] Error loading server extension nbextensions
    Traceback (most recent call last):
      File "/home/leonardo/anaconda3/lib/python3.7/site-packages/notebook/notebookapp.py", line 1615, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/home/leonardo/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'nbextensions'
[I 00:05:38.830 NotebookApp] Serving notebooks from local directory: /home/leonardo
[I 00:05:38.830 NotebookApp] The Jupyter Notebook is running at:
[I 00:05:38.830 NotebookApp] http://localhost:8888/?token=982763f675454460acfb7b70eec0070091df0076338eff27
[I 00:05:38.830 NotebookApp]  or http://127.0.0.1:8888/?token=982763f675454460acfb7b70eec0070091df0076338eff27
[I 00:05:38.830 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 00:05:38.845 NotebookApp] 

    To access the notebook, open this file in a browser:
        file:///run/user/1000/jupyter/nbserver-6243-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=982763f675454460acfb7b70eec0070091df0076338eff27
     or http://127.0.0.1:8888/?token=982763f675454460acfb7b70eec0070091df0076338eff27
[E 00:05:40.152 NotebookApp] Could not open static file ''
[W 00:05:40.177 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 5.79ms referer=http://localhost:8888/tree?token=982763f675454460acfb7b70eec0070091df0076338eff27
[W 00:05:40.427 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (127.0.0.1) 1.08ms referer=http://localhost:8888/tree?token=982763f675454460acfb7b70eec0070091df0076338eff27
[W 00:05:40.703 NotebookApp] 404 GET /clusters?_=1565147140473 (127.0.0.1) 1.02ms referer=http://localhost:8888/tree
gmseabra commented 5 years ago

I confirm I'm having probably the same issue here. I'm using miniconda on Windows10, and have just created a brand new env with the latest available versions of all packages. I get similar error messages, that start with the same: Could not open static file '':

>jupyter notebook
[I 18:45:19.948 NotebookApp] [nb_conda_kernels] enabled, 4 kernels found
[I 18:45:20.542 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 18:45:20.542 NotebookApp] [nb_conda] enabled
[I 18:45:20.542 NotebookApp] Serving notebooks from local directory: C:\Users\gmseabra
[I 18:45:20.542 NotebookApp] The Jupyter Notebook is running at:
[I 18:45:20.542 NotebookApp] http://localhost:8888/?token=07e3911178dd121fee23726bbce23dddf67f48c30392d0b0
[I 18:45:20.542 NotebookApp]  or http://127.0.0.1:8888/?token=07e3911178dd121fee23726bbce23dddf67f48c30392d0b0
[I 18:45:20.542 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 18:45:20.605 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/gmseabra/AppData/Roaming/jupyter/runtime/nbserver-928-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=07e3911178dd121fee23726bbce23dddf67f48c30392d0b0
     or http://127.0.0.1:8888/?token=07e3911178dd121fee23726bbce23dddf67f48c30392d0b0
[E 18:45:23.183 NotebookApp] Could not open static file ''
[W 18:45:23.512 NotebookApp] 404 GET /static/components/react/react-dom.production.min.js (::1) 31.24ms referer=http://localhost:8888/tree?token=07e3911178dd121fee23726bbce23dddf67f48c30392d0b0
[E 18:46:02.895 NotebookApp] Uncaught exception GET /conda/environments?_=1565819123754 (::1)
    HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/conda/environments?_=1565819123754', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\tornado\web.py", line 1697, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\tornado\web.py", line 3174, in wrapper
        return method(self, *args, **kwargs)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\notebook\base\handlers.py", line 786, in wrapper
        return method(self, *args, **kwargs)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\nb_conda\handlers.py", line 51, in get
        self.finish(json.dumps(self.env_manager.list_envs()))
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\nb_conda\envmanager.py", line 67, in list_envs
        info = self.clean_conda_json(self._execute('conda info --json'))
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\nb_conda\envmanager.py", line 53, in _execute
        output = check_output(cmdline)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\subprocess.py", line 395, in check_output
        **kwargs).stdout
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\subprocess.py", line 472, in run
        with Popen(*popenargs, **kwargs) as process:
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\subprocess.py", line 775, in __init__
        restore_signals, start_new_session)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\subprocess.py", line 1178, in _execute_child
        startupinfo)
    FileNotFoundError: [WinError 2] O sistema não pode encontrar o arquivo especificado
[W 18:46:03.019 NotebookApp] Unhandled error
[E 18:46:03.019 NotebookApp] {
      "Referer": "http://localhost:8888/tree",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763",
      "Accept": "application/json, text/javascript, */*; q=0.01",
      "Accept-Language": "en-US,en;q=0.8,pt-BR;q=0.5,pt;q=0.3",
      "X-Requested-With": "XMLHttpRequest",
      "X-Xsrftoken": "2|4d7b6e95|168291585c18cfe8c80e01d34ca169fe|1564511392",
      "Accept-Encoding": "gzip, deflate",
      "Host": "localhost:8888",
      "Connection": "Keep-Alive",
      "Cookie": "_xsrf=2|4d7b6e95|168291585c18cfe8c80e01d34ca169fe|1564511392; username-localhost-8888=\"2|1:0|10:1565819123|23:username-localhost-8888|44:ZTFmY2UyMjk4YmRkNDMxZjg4ZDA1Y2I4MjYxZWYxYWM=|2f7a0faacb7522183c83525fafb8b442e13e1c0ddba3e863fb28cd975aec36aa\""
    }
[E 18:46:03.019 NotebookApp] 500 GET /conda/environments?_=1565819123754 (::1) 124.70ms referer=http://localhost:8888/tree
[E 18:46:03.019 NotebookApp] Uncaught exception GET /conda/packages/available?_=1565819123755 (::1)
    HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/conda/packages/available?_=1565819123755', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\tornado\web.py", line 1697, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\tornado\web.py", line 3174, in wrapper
        return method(self, *args, **kwargs)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\notebook\base\handlers.py", line 786, in wrapper
        return method(self, *args, **kwargs)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\nb_conda\handlers.py", line 230, in get
        data = searcher.list_available(self)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\site-packages\nb_conda\handlers.py", line 213, in list_available
        bufsize=4096)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\subprocess.py", line 775, in __init__
        restore_signals, start_new_session)
      File "C:\Users\gmseabra\Miniconda3\envs\unc\lib\subprocess.py", line 1178, in _execute_child
        startupinfo)
    FileNotFoundError: [WinError 2] O sistema não pode encontrar o arquivo especificado
[W 18:46:03.019 NotebookApp] Unhandled error
[E 18:46:03.019 NotebookApp] {
      "Referer": "http://localhost:8888/tree",
      "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763",
      "Accept": "application/json, text/javascript, */*; q=0.01",
      "Accept-Language": "en-US,en;q=0.8,pt-BR;q=0.5,pt;q=0.3",
      "X-Requested-With": "XMLHttpRequest",
      "X-Xsrftoken": "2|4d7b6e95|168291585c18cfe8c80e01d34ca169fe|1564511392",
      "Accept-Encoding": "gzip, deflate",
      "Host": "localhost:8888",
      "Connection": "Keep-Alive",
      "Cookie": "_xsrf=2|4d7b6e95|168291585c18cfe8c80e01d34ca169fe|1564511392; username-localhost-8888=\"2|1:0|10:1565819123|23:username-localhost-8888|44:ZTFmY2UyMjk4YmRkNDMxZjg4ZDA1Y2I4MjYxZWYxYWM=|2f7a0faacb7522183c83525fafb8b442e13e1c0ddba3e863fb28cd975aec36aa\""
    }
[E 18:46:03.019 NotebookApp] 500 GET /conda/packages/available?_=1565819123755 (::1) 0.00ms referer=http://localhost:8888/tree

The notebook loads, but all extensions are disabled as possibly incompatible. (See an image here.)