Error loading server extension jupyterlab

Hi, I have problem with the server extension. When running jupyter serverextension list I get: config dir: C:Users####.jupyter jupyterlab_git enabled - Validating... Error loading server extensi...

Hi,

I have problem with the server extension. When running jupyter serverextension list I get:

config dir: C:Users####.jupyter
    jupyterlab_git enabled
    - Validating...
Error loading server extension jupyterlab_git
      X is jupyterlab_git importable?
config dir: C:Users####Anaconda3etcjupyter
    jupyterlab enabled
    - Validating...
      jupyterlab 2.2.9 ok
    nbdime enabled
    - Validating...
      nbdime 2.1.0 ok
    jupyter_nbextensions_configurator enabled
    - Validating...
      jupyter_nbextensions_configurator 0.4.1 ok

I have run pip install --upgrade jupyterlab jupyterlab-git and jupyter lab build and tested several different options. Here are some logs from when launching Jupyter Lab

[I 18:47:06.745 LabApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 18:47:07.099 LabApp] JupyterLab extension loaded from c:users####anaconda3libsite-packagesjupyterlab
[I 18:47:07.099 LabApp] JupyterLab application directory is c:users####anaconda3sharejupyterlab
[W 18:47:07.102 LabApp] Error loading server extension jupyterlab_git
    Traceback (most recent call last):
      File "c:users####anaconda3libsite-packagesnotebooknotebookapp.py", line 1670, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "c:usersfilip.bjornsjoanaconda3libimportlib__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_git 

What is a possible solution to my issue?

I am using a Macbook with OS Sierra, and running Python 3.6.1 and Jupyter Notebook Server 5.0.0
I installed Jupyter Notebook extensions, following the instructions as mentioned on https://github.com/ipython-contrib/jupyter_contrib_nbextensions

While the notebooks work fine on my system, I cannot view the nbextensions tab. The following is the error log I see on running jupyter notebook in terminal. I have seen some related problems posted here on SO, but they seem to be about installing specific extensions.

Further, one of the solutions seemed to be suggest pip install jupyter_nbextensions_configurator, but as can be seen from the output below, I already have the extension installed.

Requirement already satisfied: traitlets in /usr/local/lib/python3.6/site-packages (from jupyter_nbextensions_configurator)
Requirement already satisfied: tornado in /usr/local/lib/python3.6/site-packages (from jupyter_nbextensions_configurator)

However, in the logs, you will notice that ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator' is one of the error messages.

[W 08:44:49.973 NotebookApp] server_extensions is deprecated, use nbserver_extensions
[W 08:44:50.146 NotebookApp] Error loading server extension jupyter_nbextensions_configurator
    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/site-packages/notebook/notebookapp.py", line 1271, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 978, in _gcd_import
      File "<frozen importlib._bootstrap>", line 961, in _find_and_load
      File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'
[I 08:44:50.158 NotebookApp] Serving notebooks from local directory: /Users/sp
[I 08:44:50.158 NotebookApp] 0 active kernels
[I 08:44:50.158 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=c777a7ab5dc6cf416c238b7b37f58d10ebea9db0743b46ae
[I 08:44:50.158 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 08:44:50.163 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=c777a7ab5dc6cf416c238b7b37f58d10ebea9db0743b46ae
[I 08:44:51.633 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[W 08:44:54.407 NotebookApp] 404 GET /nbextensions/nbextensions_configurator/tree_tab/main.js?v=20170511084449 (::1) 25.76ms referer=http://localhost:8888/tree

What am I missing here? Thanks!

Содержание

  1. JupyterHub is started but not able to log in: Error loading server extension jupyterlab #2148
  2. Comments
  3. Error output when running tests #2101
  4. Comments
  5. Error loading server extension jupyter_nbextensions_configurator #2584
  6. Comments
  7. Error loading server extension jupyter_nbextensions_configurator #1396
  8. Comments
  9. Footer

JupyterHub is started but not able to log in: Error loading server extension jupyterlab #2148

I am having error below when I tried to use jupyterhub:

Spawning jupyterhub-singleuser —port=50928
[W 2018-09-13 22:41:17.283 SingleUserNotebookApp notebookapp:1554] Error loading server extension jupyterlab
Traceback (most recent call last):
File «/usr/lib/python3.6/site-packages/notebook/notebookapp.py», line 1546, in init_server_extensions
mod = importlib.import_module(modulename)
File «/usr/lib64/python3.6/importlib/init.py», line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 994, in _gcd_import
File «», line 971, in _find_and_load
File «», line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘jupyterlab’

Why there is error relates to jupyterlab?

I have previous jupyter (with three kernels) on this node, would that matter?

How can I completely uninstall the existing jupyter related tool?

Thank you very much.

The text was updated successfully, but these errors were encountered:

init_server_extensions should see these extension-loading errors and move on. Are there later errors that indicate why it’s not starting?

To disable the jupyterlab serverextension:

The following output is as below:

[I 2018-09-13 22:41:15.788 JupyterHub spawner:1100] Spawning jupyterhub-singleuser —port=50928
[W 2018-09-13 22:41:17.283 SingleUserNotebookApp notebookapp:1554] Error loading server extension jupyterlab
Traceback (most recent call last):
File «/usr/lib/python3.6/site-packages/notebook/notebookapp.py», line 1546, in init_server_extensions
mod = importlib.import_module(modulename)
File «/usr/lib64/python3.6/importlib/init.py», line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 994, in _gcd_import
File «», line 971, in _find_and_load
File «», line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘jupyterlab’
[I 2018-09-13 22:41:17.285 SingleUserNotebookApp singleuser:406] Starting jupyterhub-singleuser server version 0.9.3
[I 2018-09-13 22:41:17.291 JupyterHub log:158] 200 GET /hub/api (@127.0.0.1) 1.75ms
[I 2018-09-13 22:41:17.292 SingleUserNotebookApp notebookapp:1685] Serving notebooks from local directory: /home/rxie
[I 2018-09-13 22:41:17.292 SingleUserNotebookApp notebookapp:1685] The Jupyter Notebook is running at:
[I 2018-09-13 22:41:17.292 SingleUserNotebookApp notebookapp:1685] http://cedgedev02:50928/user/rxie/
[I 2018-09-13 22:41:17.293 SingleUserNotebookApp notebookapp:1686] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 2018-09-13 22:41:25.658 JupyterHub base:734] User rxie is slow to become responsive (timeout=10)
[I 2018-09-13 22:41:25.659 JupyterHub base:1056] rxie is pending spawn
[I 2018-09-13 22:41:25.670 JupyterHub log:158] 200 GET /hub/user/rxie/ (rxie@192.168.103.81) 10031.70ms
[W 2018-09-13 22:41:44.859 JupyterHub user:510] rxie’s server never showed up at http://127.0.0.1:50928/user/rxie/ after 30 seconds. Giving up
[I 2018-09-13 22:41:44.861 SingleUserNotebookApp notebookapp:1617] Shutting down 0 kernels
[E 2018-09-13 22:41:45.092 JupyterHub gen:974] Exception in Future exception=TimeoutError(«Server at http://127.0.0.1:50928/user/rxie/ didn’t respond in 30 seconds»,)> after timeout
Traceback (most recent call last):
File «/usr/lib64/python3.6/site-packages/tornado/gen.py», line 970, in error_callback
future.result()
File «/usr/lib/python3.6/site-packages/jupyterhub/handlers/base.py», line 626, in finish_user_spawn
await spawn_future
File «/usr/lib/python3.6/site-packages/jupyterhub/user.py», line 528, in spawn
raise e
File «/usr/lib/python3.6/site-packages/jupyterhub/user.py», line 502, in spawn
resp = await server.wait_up(http=True, timeout=spawner.http_timeout)
File «/usr/lib/python3.6/site-packages/jupyterhub/utils.py», line 197, in wait_for_http_server
timeout=timeout
File «/usr/lib/python3.6/site-packages/jupyterhub/utils.py», line 155, in exponential_backoff
raise TimeoutError(fail_message)
TimeoutError: Server at http://127.0.0.1:50928/user/rxie/ didn’t respond in 30 seconds

[I 2018-09-13 22:41:45.098 JupyterHub log:158] 200 GET /hub/api/users/rxie/server/progress (rxie@192.168.103.81) 19325.74ms
22:45:25.304 — info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 22:45:25.306 JupyterHub proxy:301] Checking routes
22:50:25.304 — info: [ConfigProxy] 200 GET /api/routes
[I 2018-09-13 22:50:25.306 JupyterHub proxy:301] Checking routes
22:55:25.304 — info: [ConfigProxy] 200 GET /api/routes

I followed your suggestion and disabled jupyterlab, though I seem to have started the JupyterHub successfully, and still not able to login:

[I 2018-09-14 08:46:14.406 JupyterHub app:1906] JupyterHub is now running at http://192.168.100.219:443/
[I 2018-09-14 08:46:26.099 JupyterHub log:158] 200 GET /hub/home (rxie@192.168.103.81) 94.00ms
[I 2018-09-14 08:46:29.126 JupyterHub log:158] 302 GET /hub/spawn -> /user/rxie/ (rxie@192.168.103.81) 15.09ms
[I 2018-09-14 08:46:29.146 JupyterHub log:158] 302 GET /user/rxie/ -> /hub/user/rxie/ (@192.168.103.81) 1.24ms
[W 2018-09-14 08:46:29.278 JupyterHub auth:642] Failed to open PAM session for rxie: [PAM Error 14] Cannot make/remove an entry for the specified session
[W 2018-09-14 08:46:29.278 JupyterHub auth:643] Disabling PAM sessions from now on.
[I 2018-09-14 08:46:29.295 JupyterHub spawner:1100] Spawning jupyterhub-singleuser —port=39851
[I 2018-09-14 08:46:30.756 SingleUserNotebookApp singleuser:406] Starting jupyterhub-singleuser server version 0.9.3
[I 2018-09-14 08:46:30.766 JupyterHub log:158] 200 GET /hub/api (@127.0.0.1) 2.03ms
[I 2018-09-14 08:46:30.768 SingleUserNotebookApp notebookapp:1685] Serving notebooks from local directory: /home/rxie
[I 2018-09-14 08:46:30.769 SingleUserNotebookApp notebookapp:1685] The Jupyter Notebook is running at:
[I 2018-09-14 08:46:30.769 SingleUserNotebookApp notebookapp:1685] http://cedgedev02:39851/user/rxie/
[I 2018-09-14 08:46:30.769 SingleUserNotebookApp notebookapp:1686] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 2018-09-14 08:46:39.187 JupyterHub base:734] User rxie is slow to become responsive (timeout=10)
[I 2018-09-14 08:46:39.187 JupyterHub base:1056] rxie is pending spawn
[I 2018-09-14 08:46:39.198 JupyterHub log:158] 200 GET /hub/user/rxie/ (rxie@192.168.103.81) 10031.61ms
[W 2018-09-14 08:47:00.644 JupyterHub user:510] rxie’s server never showed up at http://127.0.0.1:39851/user/rxie/ after 30 seconds. Giving up
[I 2018-09-14 08:47:00.646 SingleUserNotebookApp notebookapp:1617] Shutting down 0 kernels
[E 2018-09-14 08:47:00.873 JupyterHub gen:974] Exception in Future exception=TimeoutError(«Server at http://127.0.0.1:39851/user/rxie/ didn’t respond in 30 seconds»,)> after timeout
Traceback (most recent call last):
File «/usr/lib64/python3.6/site-packages/tornado/gen.py», line 970, in error_callback
future.result()
File «/usr/lib/python3.6/site-packages/jupyterhub/handlers/base.py», line 626, in finish_user_spawn
await spawn_future
File «/usr/lib/python3.6/site-packages/jupyterhub/user.py», line 528, in spawn
raise e
File «/usr/lib/python3.6/site-packages/jupyterhub/user.py», line 502, in spawn
resp = await server.wait_up(http=True, timeout=spawner.http_timeout)
File «/usr/lib/python3.6/site-packages/jupyterhub/utils.py», line 197, in wait_for_http_server
timeout=timeout
File «/usr/lib/python3.6/site-packages/jupyterhub/utils.py», line 155, in exponential_backoff
raise TimeoutError(fail_message)
TimeoutError: Server at http://127.0.0.1:39851/user/rxie/ didn’t respond in 30 seconds

[I 2018-09-14 08:47:00.878 JupyterHub log:158] 200 GET /hub/api/users/rxie/server/progress (rxie@192.168.103.81) 21576.49ms

Источник

Error output when running tests #2101

I’m seeing the following when running the Python tests:

The text was updated successfully, but these errors were encountered:

The following is my output when I run the js tests (it hangs indefinitely on the mockextension group):

Hmm, we’re importing SYSTEM_JUPYTER_PATH here, looks like we need to check if it is empty.

For the former, check that your jupyter_core is up to date. I don’t think that there should be any case where SYSTEM_JUPYTER_PATH is an empty list (unless conda packaging changes it?)

(Thomas’ answer makes more sense).

nbextensions are using the same pattern:

nbext = pjoin ( SYSTEM_JUPYTER_PATH [ 0 ], ‘nbextensions’ )

The second issue looks like a symptom of the first.

I tried pip install —upgrade jupyter-core but no luck.

I ran a conda list and I have a couple jupyter-cores:

jupyter_client 4.2.2 py35_0 jupyter_console 4.1.1 py35_0 jupyter_contrib_core 0.3.0 py35_0 conda-forge jupyter_core 4.1.0 py35_0 «>

That’s a bit disturbing that there are two different versions. Try uninstalling with both pip and conda, and then installing it again with just one.

Correction, three versions. Even worse.

Ok, I’m upgraded but still seeing the above errors:

I should mention that I’ve installed all extensions using —sys-prefix and cleared out any extension config in nbconfig and labconfig in my user directory.

Источник

Error loading server extension jupyter_nbextensions_configurator #2584

Apologies if a similar issue has been opened, but I wasn’t able to find it.

The notebook was working just fine yesterday, but now I get this error.

The effect of this error is that I cannot open new notebooks. The old notebooks work just fine.
I don’t know if this is relevant but I don’t have any extensions. I remember I installed an extension a while back but recall deleting it.
There are no files in

I’m using Linux Elementary OS Loki (based on Ubuntu16.04) 64-bit.

conda —version == 4.3.22
jupyter —version == 4.3.0

Edit: pip list shows that I’ve «widgetsnbextensions»

The text was updated successfully, but these errors were encountered:

An error loading an extension shouldn’t prevent you from creating a new notebook. 😕

The list of enabled extensions is in

Here’s the output from notebook.json

<
«load_extensions»: <
«nbextensions_configurator/config_menu/main»: true,
«collapsible_headings/main»: true
>,
«Notebook»: <
«Header»: false,
«Toolbar»: true
>
>

I’ve both deleted it and removed the lines inside load_extensions and still shows the error and prevents any new notebook. Any notebook made elsewhere is working just fine. Just no new ones.

An error loading an extension shouldn’t prevent you from creating a new notebook. 😕

I fully agree with this. It looks to me as though you have the jupyter_nbextensions_configurator serverextension enabled in config (this is in server config rather than frontend js config files, where JavaScript nbextensions are enabled, which is why the edit hasn’t fixed it for you), but you don’t have the required python package installed. In situations like this, I would expect notebook server to log the failed import as an error, but continue loading anyway. Is this not the specified behaviour? At any rate, since the extension code isn’t even present to load, it can’t be at fault directly :/

To fix this, you should hopefully be able to just run

I add the —sys-prefix flag since it’s the default for anaconda installs, but you may also want/need to run the same using the —user or —system flag instead, depending on how you enabled it in the forest place. Alternatively, you should be able to find the keys to manually remove in the jupyter_notebook_config.json (or .py ) file(s) in one or more of the config paths in the output of jupyter —paths .

Hope that makes sense? Let me know if not!

you have the jupyter_nbextensions_configurator serverextension enabled in config (this is in server config rather than frontend js config files,

Aha, thanks for spotting my mistake there.

In situations like this, I would expect notebook server to log the failed import as an error, but continue loading anyway. Is this not the specified behaviour?

That is indeed what it should be doing. I wonder if these are actually two separate issues that just happen to be showing up together.

jupyter serverextension disable —sys-prefix jupyter_nbextensions_configurator
Ran the command. Error is gone. Still can’t create new notebooks.

I don’t know if this was appearing before (most probably did) but now I’ve noticed this

404 GET /nbextensions/nbextensions_configurator/tree_tab/main.js?v=20170620173117 (127.0.0.1) 29.03ms referer=http://localhost:8888/tree

Error is gone. Still can’t create new notebooks.

Ok, my guess is that @takluyver is correct & you have another unrelated error that just happens to have shown up at the same time as the missing serverextension.

I don’t know if this was appearing before (most probably did) but now I’ve noticed this

This is another hangover from jupyter_nbextensio s_configurator, which you can get rid of by running

As before, you may also want/need to substitute the —sys-prefix flag for —system or —user . By default, the configurator also enables an nbextension with the require path nbextensions_configurator/config_menu/main , so you may also want/need to disable that one.

Источник

Error loading server extension jupyter_nbextensions_configurator #1396

I’m trying to install the extensions, after reading this post , however it seems not working as it should and I keep receiving the following error:

I read several issues here and on the web and came with nothing.
I’m not sure what’s the problem and can I solve it

The text was updated successfully, but these errors were encountered:

I got the same problem:
(gis) C:Usersromedareposendowment2019>jupyter notebook
[W 21:18:29.338 NotebookApp] Error loading server extension jupyter_nbextensions_configurator
Traceback (most recent call last):
File «c:programdataanaconda3envsgislibsite-packagesnotebooknotebookapp.py», line 1655, in init_server_extensions
mod = importlib.import_module(modulename)
File «c:programdataanaconda3envsgislibimportlib_init_.py», line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File «», line 1006, in _gcd_import
File «», line 983, in _find_and_load
File «», line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘jupyter_nbextensions_configurator’
[I 21:18:29.503 NotebookApp] JupyterLab extension loaded from c:programdataanaconda3envsgislibsite-packagesjupyterlab
[I 21:18:29.503 NotebookApp] JupyterLab application directory is c:programdataanaconda3envsgissharejupyterlab
[I 21:18:29.558 NotebookApp] Serving notebooks from local directory: C:Usersromedareposendowment2019
[I 21:18:29.558 NotebookApp] The Jupyter Notebook is running at:
[I 21:18:29.558 NotebookApp] http://localhost:8888/?token=27c3faf04e56da4835f91174c6640e035fdb021130e8f094
[I 21:18:29.558 NotebookApp] or http://127.0.0.1:8888/?token=27c3faf04e56da4835f91174c6640e035fdb021130e8f094
[I 21:18:29.558 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:18:29.714 NotebookApp]

I have the same problem as @darioromero.
Everything works but these errors are annoying.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Hi,
Please help us to resolve the issue, eventhough jupyter-serverextension is OK, i am getting this issue.

[root@master jupyterhub]# jupyter-labextension list
JupyterLab v2.2.0
Known labextensions:
   app dir: /share/apps/platform/ai/python_versions/python3/3_6_8/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        @jupyterlab/github v2.0.0  enabled  OK
        jupyterlab-control v1.1.1  enabled  OK
        jupyterlab-drawio v0.7.0  enabled  OK
        jupyterlab-lmod v0.8.1  enabled  OK
        jupyterlab-logout v0.5.0  enabled  OK
        jupyterlab-python-file v0.4.0  enabled  OK
        jupyterlab-topbar-extension v0.5.0  enabled  OK

[root@master jupyterhub]# jupyter-serverextension list
config dir: /share/apps/platform/ai/python_versions/python3/3_6_8/etc/jupyter
jupyterlab enabled
— Validating…
jupyterlab 2.2.0 OK
jupyterlmod enabled
— Validating…
jupyterlmod OK
nbresuse enabled
— Validating…
nbresuse OK
[root@master jupyterhub]#

and i have added below code with respect to the jupyterhub_lmod on  jupyterhub_config.py

c.Spawner.env_keep = [
‘LMOD_CMD’,
‘MODULEPATH’
‘PATH’
‘PYTHONPATH’,
‘CONDA_ROOT’,
‘CONDA_DEFAULT_ENV’,
‘VIRTUAL_ENV’,
‘LANG’,
‘LC_ALL’,
‘JUPYTERHUB_SINGLEUSER_APP’,
]

Sep 1 11:41:15 master jupyterhub: [I 2021-09-01 11:41:15.662 SingleUserNotebookApp extension:162] JupyterLab extension loaded from /share/apps/platform/ai/python_versions/python3/3_6_8/lib/python3.6/site-packages/jupyterlab
Sep 1 11:41:15 master jupyterhub: [I 2021-09-01 11:41:15.663 SingleUserNotebookApp extension:163] JupyterLab application directory is /share/apps/platform/ai/python_versions/python3/3_6_8/share/jupyter/lab
Sep 1 11:41:15 master jupyterhub: [W 2021-09-01 11:41:15.674 SingleUserNotebookApp notebookapp:1950] Error loading server extension jupyterlmod
Sep 1 11:41:15 master jupyterhub: Traceback (most recent call last):
Sep 1 11:41:15 master jupyterhub: File «/share/apps/platform/ai/python_versions/python3/3_6_8/lib/python3.6/site-packages/notebook/notebookapp.py», line 1942, in init_server_extensions
Sep 1 11:41:15 master jupyterhub: mod = importlib.import_module(modulename)
Sep 1 11:41:15 master jupyterhub: File «/share/apps/platform/ai/python_versions/python3/3_6_8/lib/python3.6/importlib/init.py», line 126, in import_module
Sep 1 11:41:15 master jupyterhub: return _bootstrap._gcd_import(name[level:], package, level)
Sep 1 11:41:15 master jupyterhub: File «», line 994, in _gcd_import
Sep 1 11:41:15 master jupyterhub: File «», line 971, in _find_and_load
Sep 1 11:41:15 master jupyterhub: File «», line 955, in _find_and_load_unlocked
Sep 1 11:41:15 master jupyterhub: File «», line 665, in _load_unlocked
Sep 1 11:41:15 master jupyterhub: File «», line 678, in exec_module
Sep 1 11:41:15 master jupyterhub: File «», line 219, in _call_with_frames_removed
Sep 1 11:41:15 master jupyterhub: File «/share/apps/platform/ai/python_versions/python3/3_6_8/lib/python3.6/site-packages/jupyterlmod/init.py», line 3, in
Sep 1 11:41:15 master jupyterhub: from . import handler
Sep 1 11:41:15 master jupyterhub: File «/share/apps/platform/ai/python_versions/python3/3_6_8/lib/python3.6/site-packages/jupyterlmod/handler.py», line 4, in
Sep 1 11:41:15 master jupyterhub: import lmod
Sep 1 11:41:15 master jupyterhub: File «/share/apps/platform/ai/python_versions/python3/3_6_8/lib/python3.6/site-packages/lmod/init.py», line 11, in
Sep 1 11:41:15 master jupyterhub: LMOD_CMD = os.environ[«LMOD_CMD»]
Sep 1 11:41:15 master jupyterhub: File «/share/apps/platform/ai/python_versions/python3/3_6_8/lib/python3.6/os.py», line 669, in getitem
Sep 1 11:41:15 master jupyterhub: raise KeyError(key) from None
Sep 1 11:41:15 master jupyterhub: KeyError: ‘LMOD_CMD’
Sep 1 11:41:15 master jupyterhub: [I 2021-09-01 11:41:15.729 SingleUserNotebookApp singleuser:561] Starting jupyterhub-singleuser server version 1.1.0
Sep 1 11:41:15 master jupyterhub: [I 2021-09-01 11:41:15.734 SingleUserNotebookApp log:174] 302 GET /user/zain/ -> /user/zain/lab? (@127.0.0.1) 2.42ms

At the bottom is the error dump I get every time I launch jupyter.

I was using Pycharm but decided to switch to Jupyter because that’s what the current video series I’m watching uses. Here is me trying to run the code at the beginning of said tutorial in Jupyter. I imported the libraries in that image (except struct, I have no idea what that is and can’t find it. :/) prior to installing Anaconda, so maybe it’s not finding them because it doesn’t know where they are?

Thanks for any help, and sorry for the text dump below. Things were going smooth before I decided to switch. :[

~~

[I 05:03:06.814 NotebookApp] JupyterLab beta preview extension loaded from F:programmingAnaconda3libsite-packagesjupyterlab [I 05:03:06.815 NotebookApp] JupyterLab application directory is F:programmingAnaconda3sharejupyterlab [W 05:03:06.819 NotebookApp] Error loading server extension jupyterlab Traceback (most recent call last): File «F:programmingAnaconda3libsite-packagesjupyterlabcommands.py», line 321, in init self._run([‘node’, ‘node-version-check.js’], cwd=HERE, quiet=True) File «F:programmingAnaconda3libsite-packagesjupyterlabcommands.py», line 1165, in _run proc = Process(cmd, **kwargs) File «F:programmingAnaconda3libsite-packagesjupyterlabprocess.py», line 73, in init self.proc = self._create_process(cwd=cwd, env=env) File «F:programmingAnaconda3libsite-packagesjupyterlabprocess.py», line 131, in _create_process cmd[0] = which(cmd[0], kwargs.get(‘env’)) File «F:programmingAnaconda3libsite-packagesjupyterlabjlpmapp.py», line 59, in which raise ValueError(msg) ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File «F:programmingAnaconda3libsite-packagesnotebooknotebookapp.py», line 1454, in init_server_extensions func(self) File «F:programmingAnaconda3libsite-packagesjupyterlabextension.py», line 111, in load_jupyter_server_extension info = get_app_info(app_dir) File «F:programmingAnaconda3libsite-packagesjupyterlabcommands.py», line 244, in get_app_info handler = _AppHandler(app_dir, logger) File «F:programmingAnaconda3libsite-packagesjupyterlabcommands.py», line 324, in init raise ValueError(msg) ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website. [I 05:03:06.869 NotebookApp] Serving notebooks from local directory: C:UsersSpruce Goose [I 05:03:06.869 NotebookApp] 0 active kernels [I 05:03:06.869 NotebookApp] The Jupyter Notebook is running at: [I 05:03:06.869 NotebookApp] http://localhost:8888/?token=a9996ca0f2cd09e89713abad733c19bae9433550c92fcbaf [I 05:03:06.869 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 05:03:06.872 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time, to login with a token: http://localhost:8888/?token=a9996ca0f2cd09e89713abad733c19bae9433550c92fcbaf [I 05:03:06.943 NotebookApp] Accepting one-time-token-authenticated connection from ::1

Я продолжаю получать такое же сообщение об ошибке и ошибка 404:

[I 01:37:29.009 LabApp] The port 8888 is already in use, trying another port.
[I 01:37:29.010 LabApp] The port 8889 is already in use, trying another port.
[I 01:37:29.010 LabApp] The port 8890 is already in use, trying another port.
[I 01:37:29.011 LabApp] The port 8891 is already in use, trying another port.
[I 01:37:29.011 LabApp] The port 8892 is already in use, trying another port.
[I 01:37:29.031 LabApp] JupyterLab beta preview extension loaded from C:UsersUtilizadorAnaconda3libsite-packagesjupyterlab
[I 01:37:29.031 LabApp] JupyterLab application directory is C:UsersUtilizadorAnaconda3sharejupyterlab
[W 01:37:29.036 LabApp] Error loading server extension jupyterlab
Traceback (most recent call last):
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabcommands.py", line 321, in __init__
self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabcommands.py", line 1165, in _run
proc = Process(cmd, **kwargs)
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabprocess.py", line 73, in __init__
self.proc = self._create_process(cwd=cwd, env=env)
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabprocess.py", line 131, in _create_process
cmd[0] = which(cmd[0], kwargs.get('env'))
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabjlpmapp.py", line 59, in which
raise ValueError(msg)
ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:UsersUtilizadorAnaconda3libsite-packagesnotebooknotebookapp.py", line 1454, in init_server_extensions
func(self)
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabextension.py", line 111, in load_jupyter_server_extension
info = get_app_info(app_dir)
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabcommands.py", line 244, in get_app_info
handler = _AppHandler(app_dir, logger)
File "C:UsersUtilizadorAnaconda3libsite-packagesjupyterlabcommands.py", line 324, in __init__
raise ValueError(msg)
ValueError: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.
[I 01:37:29.143 LabApp] Serving notebooks from local directory: C:UsersUtilizador
[I 01:37:29.143 LabApp] 0 active kernels
[I 01:37:29.143 LabApp] The Jupyter Notebook is running at:
[I 01:37:29.143 LabApp] http://localhost:8821/?token=3b91702d19818c1d66dc2965898bf2b91a24c5234e0cbd05
[I 01:37:29.143 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 01:37:29.145 LabApp] 
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8821/?token=3b91702d19818c1d66dc2965898bf2b91a24c5234e0cbd05
[I 01:37:29.244 LabApp] Accepting one-time-token-authenticated connection from ::1
[W 01:37:29.307 LabApp] 404 GET /lab?token=f8eabc16b28360868e8c304de5929a0d3b91126814057e49 (::1) 64.17ms referer=None

Первая часть, кажется, относится к проблемам с брандмауэром, но, похоже, в конце концов она подключится. Вторую часть я просто не понимаю.

Я пробовал переустановить Anaconda, но ошибка повторяется. Не могли бы вы сообщить мне, что мешает этому работать должным образом?

Спасибо

Я использую Macbook с ОС Sierra и запускаю Python 3.6.1 и Jupyter Notebook Server 5.0.0. Я установил расширения Jupyter Notebook, следуя инструкциям, указанным на https://github.com/ipython-contrib/jupyter_contrib_nbextensions

Хотя ноутбуки отлично работают в моей системе, я не могу просмотреть вкладку nbextensions. Ниже приведен журнал ошибок, который я вижу при запуске jupyter notebook в терминале. Я видел некоторые связанные проблемы, размещенные здесь на SO, но они, похоже, об установке определенных расширений.

Кроме того, одним из решений, казалось, было предложение pip install jupyter_nbextensions_configurator, но, как видно из приведенного ниже результата, у меня уже установлено расширение.

Requirement already satisfied: traitlets in /usr/local/lib/python3.6/site-packages (from jupyter_nbextensions_configurator)
Requirement already satisfied: tornado in /usr/local/lib/python3.6/site-packages (from jupyter_nbextensions_configurator)

Однако в журналах вы заметите, что ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator' является одним из сообщений об ошибках.

[W 08:44:49.973 NotebookApp] server_extensions is deprecated, use nbserver_extensions
[W 08:44:50.146 NotebookApp] Error loading server extension jupyter_nbextensions_configurator
    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/site-packages/notebook/notebookapp.py", line 1271, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 978, in _gcd_import
      File "<frozen importlib._bootstrap>", line 961, in _find_and_load
      File "<frozen importlib._bootstrap>", line 948, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator'
[I 08:44:50.158 NotebookApp] Serving notebooks from local directory: /Users/sp
[I 08:44:50.158 NotebookApp] 0 active kernels
[I 08:44:50.158 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=c777a7ab5dc6cf416c238b7b37f58d10ebea9db0743b46ae
[I 08:44:50.158 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 08:44:50.163 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=c777a7ab5dc6cf416c238b7b37f58d10ebea9db0743b46ae
[I 08:44:51.633 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[W 08:44:54.407 NotebookApp] 404 GET /nbextensions/nbextensions_configurator/tree_tab/main.js?v=20170511084449 (::1) 25.76ms referer=http://localhost:8888/tree

Что мне здесь не хватает? Благодарю!

неправильное описание:

При запускеjupyter notebookНесмотря на то, что я могу войти в Home, я все еще получаю ошибку в фоновом режиме, как показано ниже:

[W 11:03:21.011 NotebookApp] Error loading server extension jupyterlab
    Traceback (most recent call last):
      File "E:Anaconda3libsite-packagesjupyterlabcommands.py", line 321, in
 __init__
        self._run(['node', 'node-version-check.js'], cwd=HERE, quiet=True)
      File "E:Anaconda3libsite-packagesjupyterlabcommands.py", line 1165, i
n _run
        proc = Process(cmd, **kwargs)
      File "E:Anaconda3libsite-packagesjupyterlabprocess.py", line 73, in _
_init__
        self.proc = self._create_process(cwd=cwd, env=env)
      File "E:Anaconda3libsite-packagesjupyterlabprocess.py", line 131, in
_create_process
        cmd[0] = which(cmd[0], kwargs.get('env'))
      File "E:Anaconda3libsite-packagesjupyterlabjlpmapp.py", line 59, in w
hich
        raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation.
 nodejs may be installed using conda or directly from the nodejs website.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "E:Anaconda3libsite-packagesnotebooknotebookapp.py", line 1454,
in init_server_extensions
        func(self)
      File "E:Anaconda3libsite-packagesjupyterlabextension.py", line 111, i
n load_jupyter_server_extension
        info = get_app_info(app_dir)
      File "E:Anaconda3libsite-packagesjupyterlabcommands.py", line 244, in
 get_app_info
        handler = _AppHandler(app_dir, logger)
      File "E:Anaconda3libsite-packagesjupyterlabcommands.py", line 324, in
 __init__
        raise ValueError(msg)
    ValueError: Please install nodejs 5+ and npm before continuing installation.
 nodejs may be installed using conda or directly from the nodejs website.
[I 11:03:21.336 NotebookApp] Serving notebooks from local directory: C:UsersAd
ministratorDesktopshuju
[I 11:03:21.338 NotebookApp] 0 active kernels
[I 11:03:21.339 NotebookApp] The Jupyter Notebook is running at:
[I 11:03:21.340 NotebookApp] http://localhost:8888/?token=14172d7abed02b6a0b816a
51fa29f6b44929d2f96b8a1b7f
[I 11:03:21.342 NotebookApp] Use Control-C to stop this server and shut down all
 kernels (twice to skip confirmation).
[C 11:03:21.350 NotebookApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=14172d7abed02b6a0b816a51fa29f6b44929d2f96b8
a1b7f
[I 11:03:21.581 NotebookApp] Accepting one-time-token-authenticated connection f
rom ::1
[I 11:15:21.364 NotebookApp] Interrupted...
[I 11:15:21.366 NotebookApp] Shutting down 0 kernels

решение:

Потому что Anaconda установлена ​​на моем компьютере, поэтому, когда я открываю Anaconda

Дождитесь установки системы, а затем введите ее снова в командной строке cmdноутбук Jupyter, решение проблем

Понравилась статья? Поделить с друзьями:
  • Error loading resource file dota 2
  • Error loading resource 0x00003b01
  • Error loading python lib
  • Error loading python dll как исправить
  • Error loading python dll python39 dll не найден указанный модуль