notebook icon indicating copy to clipboard operation
notebook copied to clipboard

Missing or misshapen translation settings schema

Open taktikal17 opened this issue 11 months ago • 71 comments

I am getting an error when launching jupyter. I uninstalled everything including python (with brew) and still not solving the issue.

The folder /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/ doesn't contain the jupyter folder.

[I 2023-07-20 23:41:40.032 ServerApp] Package notebook took 0.0000s to import
[I 2023-07-20 23:41:40.034 ServerApp] notebook | extension was successfully linked.
[I 2023-07-20 23:41:40.077 ServerApp] notebook | extension was successfully loaded.
[I 2023-07-20 23:41:40.078 ServerApp] Serving notebooks from local directory: /Users/<>/dev
[I 2023-07-20 23:41:40.078 ServerApp] Jupyter Server 2.7.0 is running at:
[I 2023-07-20 23:41:40.078 ServerApp] http://localhost:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
[I 2023-07-20 23:41:40.078 ServerApp]     http://127.0.0.1:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
[I 2023-07-20 23:41:40.078 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-07-20 23:41:40.086 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///Users/<>/Library/Jupyter/runtime/jpserver-6423-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
        http://127.0.0.1:8888/tree?token=f9035f29fdb2ce27b7c4664295b20b6ad5aa3315937fecc5
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[W 2023-07-20 23:41:42.105 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-07-20 23:41:42.106 JupyterNotebookApp] Settings directory does not exist at /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas
[W 2023-07-20 23:41:42.146 JupyterNotebookApp] Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)
[W 2023-07-20 23:41:42.146 ServerApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1689910902143 (::1): Schema not found: /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json
[W 2023-07-20 23:41:42.146 JupyterNotebookApp] wrote error: 'Schema not found: /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json'
    Traceback (most recent call last):
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 1784, in _execute
        result = method(*self.path_args, **self.path_kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/tornado/web.py", line 3290, in wrapper
        return method(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_handler.py", line 48, in get
        result, warnings = get_settings(
                           ^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 370, in get_settings
        schema, version = _get_schema(schemas_dir, schema_name, overrides, labextensions_path)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/homebrew/lib/python3.11/site-packages/jupyterlab_server/settings_utils.py", line 47, in _get_schema
        raise web.HTTPError(404, notfound_error % path)
    tornado.web.HTTPError: HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json)
[W 2023-07-20 23:41:42.149 JupyterNotebookApp] 404 GET /lab/api/settings/@jupyter-notebook/application-extension:shell?1689910902143 (7f80a9c368014c73b2be2492888a488c@::1) 3.94ms referer=http://localhost:8888/tree

Here the lib I am ussing:

ipykernel==6.24.0
notebook==7.0.0
notebook_shim==0.2.3
Python 3.11.4

Jupyter lab would work using jupyter lab --app-dir /opt/homebrew/share/jupyter/lab

How do I change the path to run jupyter notebook?

Thank you

taktikal17 avatar Jul 21 '23 03:07 taktikal17

Thanks @taktikal17 for reporting the issue :+1:

Jupyter lab would work using

Just to confirm: does JupyterLab work without specifying the --app-dir option?

jtpio avatar Jul 25 '23 09:07 jtpio

I am seeing something similar, also possibly with some weird interactions with jupyterlab. (I think on one of my machines it is failing at a different *.json schema than in this traceback, but I don't have access right now.)

Also possibly related:

  • the “Open in…” (used to be called “Interface”, I think?) menu does not appear
  • In the file list window which opens from jupyter notebook, the “File” menu ends with “Save and export notebook as…” – it is missing “Trust notebook”, “Close and Shut Down Notebook”, “Log out” and “Shut Down”.

defjaf avatar Jul 25 '23 10:07 defjaf

same issue here, notebook version 6.5.4 had no issue.

❯ jupyter --version Selected Jupyter core packages... IPython : 8.14.0 ipykernel : 6.24.0 ipywidgets : 8.0.7 jupyter_client : 8.3.0 jupyter_core : 5.3.1 jupyter_server : 2.7.0 jupyterlab : 4.0.3 nbclient : 0.8.0 nbconvert : 7.7.2 nbformat : 5.9.1 notebook : 7.0.0 qtconsole : 5.4.3 traitlets : 5.9.0

ssh352 avatar Jul 26 '23 01:07 ssh352

cc @andrii-i @RRosio @ericsnekbytes @echarles @afshin

If one of you has a Mac and would be able to look into this that would be great, thanks :pray:

jtpio avatar Jul 27 '23 10:07 jtpio

A further possibly useful bit of info:

On my setup, Python 3.11 is installed by homebrew, but all packages, including jupyter, notebook, etc. are installed with pip.

defjaf avatar Jul 27 '23 11:07 defjaf

I note that

JUPYTER_PATH=/opt/homebrew/share/jupyter JUPYTER_CONFIG_PATH=/opt/homebrew/etc/jupyter jupyter notebook

is a partial fix: it still gives error messages in the terminal, but the interface issues mentioned above seem to be better.

So it is possible that this is an issue of "miscommunication" between the homebrew build and jupyter?

defjaf avatar Jul 27 '23 16:07 defjaf

Further to my previous partial fix using JUPYTER_PATH and JUPYTER_CONFIG_PATH

I note that in fact jupyter lab behaves better with those environment variables set as above: without them, it does not seem to correctly recognise extensions. (To be precise, app-dir does not solve these problems.) So I wonder if we need to make this a broader issue?

In detail: without the variables set, the "Installed" list is empty and, for example, there is no sidebar entry for ipyparallel even when installed:

Screenshot 2023-07-29 at 16 49 09

When run with those variables set, I get:

Screenshot 2023-07-29 at 16 50 45

defjaf avatar Jul 29 '23 15:07 defjaf

Things seem a little different with the just-released Notebook 7.0.1.

Now, jupyter notebook just gives a blank screen at http://localhost:8888/tree, with our without the environment variables JUPYTER_PATH=/opt/homebrew/share/jupyter JUPYTER_CONFIG_PATH=/opt/homebrew/etc/jupyter. However, there are no longer any "schema" error messages...

On the other hand jupyter lab shows more or less the same behaviour as before: shows extension-related errors without the environment variables set; seems to work fine with them set. Now, however, if you try to "Open in..." notebook with 7.0.1, you get the same blank-screen behaviour as jupyter notebook.

defjaf avatar Jul 31 '23 14:07 defjaf

Now, jupyter notebook just gives a blank screen at http://localhost:8888/tree

Could this be similar to https://github.com/jupyter/notebook/issues/6952, which would happen when updating notebook in an existing environment?

I tried creating a new environment, installing notebook==7.0.0, then pip install -U notebook to grab 7.0.1 but everything went fine and couldn't reproduce the issue.

Would you be able to try install notebook==7.0.1 in a clean environment just to make sure it loads properly?

jtpio avatar Jul 31 '23 19:07 jtpio

My experience replicating this issue was as follows:

I installed Python 3.11 with homebrew and then the Notebook package with pip. In this case, Notebook 6.5 worked well.

With Notebook 7.0.1 Same behavior with and without environment variables:

  • jupyter notebook
    • blank page with only the jupyter logo; console and terminal error messages about the schema
  • jupyter lab
    • page displays the following:
JupyterLab Error
JupyterLab application assets not found in "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab"
Please run `jupyter lab build` or use a different app directory

Indeed, Jupyterlab works well using jupyter lab --app-dir /opt/homebrew/share/jupyter/lab, but I could not get a working version of Notebook 7


I have only encountered this issue with when using the python/pip installed with homebrew. All my installs of Notebook 7 with conda environments work well. This is not my regular workflow, I usually use conda environments, so I am not sure yet what could be the problem.

RRosio avatar Jul 31 '23 19:07 RRosio

(@RRosio, I'm glad you see the same (or very similar) issue!...)

@jtpio, Sorry if I wasn't clear -- this isn't in a venv, but in the "base" python environment (i.e., my homebrew install, but not in a venv; not the system python).

In fact, it look likes the blank page issue is indeed a local authentication or cache issue, which happens irrespective of whether I'm in a venv or the base environment. Clearing the browser cache seems to solve the problem.

So apologies for that red herring.

But the other problems described in this thread remain:

  • In the base environment, without setting JUPYTER_PATH or JUPYTER_CONFIG_PATH:
    • jupyter notebook runs, but there are UI issues:
      • the "file" menu ends at "Save and export notebook as..."
      • the console output shows various errors related to "Schema" (see the top of this issue)
    • jupyter nbclassic gives a 500 error in the browser (see this issue)
    • jupyter lab runs but doesn't seem to recognise extensions, and "Open in..." doesn't appear
  • In the base environment, but with environment variables set as JUPYTER_PATH=/opt/homebrew/share/jupyter JUPYTER_CONFIG_PATH=/opt/homebrew/etc/jupyter:
    • jupyter notebook runs but shows the same "schema" output in the console. Since this is a new UI, I'm not sure if there are issues related to this (e.g., I don't seem to have any access to a nice ipyparallel panel, but I'm not sure what that UI should like in the new notebook)
    • jupyter lab and jupyter nbclassic run fine (although "Open in..." > "notebook" runs but then shows the same behaviour as just above -- console errors, etc)
  • In a venv, everything seems to work as expected without setting JUPYTER_PATH or JUPYTER_CONFIG_PATH, and without any console or UI issyes for jupyter notebook.

Sorry for the confusion related to 7.0.1 -- but this list now seems like a summary of all the actual issues I am experiencing.... (nb. I am not sure when/if I ran jupyter lab build, although I do remember seeing that message at some point; at some point I deleted all of the ~/Library/jupyter, ~/.jupyter files as a test.)

defjaf avatar Jul 31 '23 20:07 defjaf

(I wonder if this — basically, the above list — should become a new/separate issue to highlight that it’s not only about the “schema” problem?)

defjaf avatar Aug 01 '23 05:08 defjaf

Thanks @defjaf for posting these details it will help reproduce the issue more easily :+1:

If this is also an issue with JupyterLab, would you be able to open an issue on the JupyterLab repo? https://github.com/jupyterlab/jupyterlab

Thanks!

jtpio avatar Aug 01 '23 05:08 jtpio

See also https://github.com/jupyterlab/jupyterlab/issues/14890

defjaf avatar Aug 01 '23 13:08 defjaf

Adding a data point, I had the same issue occur on macOS today, installing via pip pip3 install jupyterlab notebook. Trying to run jupyter lab with the environment patch gave me the error message:

JupyterLab Error

JupyterLab application assets not found in "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab"

Please run `jupyter lab build` or use a different app directory

Following command-line error logs, I was able to run build with --dev-build=False --minimize=False, which then complained about missing node.js and npm, which I then installed with brew and pip respectively, after which the build succeeded and jupyter lab worked, but notebook did not.

abhinavgolas avatar Aug 01 '23 16:08 abhinavgolas

My experience replicating this issue was as follows:

I installed Python 3.11 with homebrew and then the Notebook package with pip. In this case, Notebook 6.5 worked well.

With Notebook 7.0.1 Same behavior with and without environment variables:

  • jupyter notebook

    • blank page with only the jupyter logo; console and terminal error messages about the schema
  • jupyter lab

    • page displays the following:
JupyterLab Error
JupyterLab application assets not found in "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab"
Please run `jupyter lab build` or use a different app directory

Indeed, Jupyterlab works well using jupyter lab --app-dir /opt/homebrew/share/jupyter/lab, but I could not get a working version of Notebook 7

I have only encountered this issue with when using the python/pip installed with homebrew. All my installs of Notebook 7 with conda environments work well. This is not my regular workflow, I usually use conda environments, so I am not sure yet what could be the problem.

I am experiencing the same problems when running jupyter notebook and jupyter lab. I did the installation through pip.

hurricane642 avatar Aug 02 '23 22:08 hurricane642

-- Workaround -- I had the same issue on Mac. Was able to get notebook GUI showing by running notebooks through Anaconda:

  1. Download & install Anaconda
  2. Apply environment PATH changes Anaconda made to your shell config file by either: a. Exiting terminal and reopening it -or- b. Running source ~/.bashrc or source ~/.zshrc depending on which shell you use
  3. Activate Anaconda by running conda activate. Terminal should show '(base)' prefix. Exit with conda deactivate
  4. Run jupyter notebook after conda activate. GUI should now appear.

*Note - I don't think you need to uninstall Homebrew's python or notebook libraries since Anaconda runs its own instance of python and notebook libraries in a separate directory from Homebrew's.

stgreenman avatar Aug 03 '23 05:08 stgreenman

@stgreenman (et al):

I don't use (Ana)conda, but this should work.

However, if you just want to stick with homebrew, you should just be able to add the following to your .bashrc (or equivalent for other shells):

export JUPYTER_PATH=/opt/homebrew/share/jupyter 
export JUPYTER_CONFIG_PATH=/opt/homebrew/etc/jupyter

Alternately, you can also just create (and activate) a venv with homebrew python, and that should work as well (with no extra configuration).

(For clarity: setting the environment variables seems to fix the UI issues in notebook, but the schema console messages still appear on my configuration. Using a venv seems to fix the UI issues and the schema messages.)

defjaf avatar Aug 03 '23 09:08 defjaf

So, now that this (and the related jupyterlab and nbclassic issues) have been sitting here for a while, do we have a picture of whether this is deemed a proper, fixable (and fix-worthy) bug? If so, do we understand whether it's likely on the jupyter-* side, or is it possibly actually a homebrew issue? (I haven't reported it over there, and I don't think anyone else has either — although see this list of supposedly closed issues — but perhaps I or someone should?)

(I completely understand that we are discussing voluntary open-source contributions here, so timelines can be long, and that a perfectly acceptable response is: if this bothers you, fix it yourself! Although some pointers for where to look in the code-base would be great...)

defjaf avatar Aug 05 '23 10:08 defjaf

I'm having the same issue, can't seem to fix it with the workaround.

mberman84 avatar Aug 05 '23 16:08 mberman84

I'm seeing the same problem after installing. Python is installed with homebrew and jupyter with pip. On MacOS 12.3.1.

I'm seeing:

Missing or misshapen translation settings schema:
    HTTP 404: Not Found (Schema not found: /opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json)

and

/opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/share/jupyter/

does not seem to exist.

pgreenwood avatar Aug 07 '23 05:08 pgreenwood

Normally the data files should be copied to share/jupyter on pip install notebook:

https://github.com/jupyter/notebook/blob/b5133c67f1a5c9c87d99abc44b7b04e6214aca45/pyproject.toml#L80-L85

Same goes for JupyterLab:

https://github.com/jupyterlab/jupyterlab/blob/bddc378b72e8ee78be8b6e2ffb2b527a75f0471a/pyproject.toml#L130-L136

Does /opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/share/jupyter/ contain anything at all?

Also what does jupyter --paths output?

Additionally, what does jupyter labextension list output?

jtpio avatar Aug 07 '23 07:08 jtpio

Also maybe we could try to reproduce the issue on CI when running on macos-latest. Currently notebook is installed on macos-latest using actions/setup-python@v4 to install Python:

https://github.com/jupyter/notebook/blob/b5133c67f1a5c9c87d99abc44b7b04e6214aca45/.github/workflows/build.yml#L120

https://github.com/jupyter/notebook/blob/b5133c67f1a5c9c87d99abc44b7b04e6214aca45/.github/workflows/build.yml#L136-L141

The GitHub Actions runners have Homebrew installed by default: https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#package-management

So maybe opening a draft PR to install Python with brew, and then install notebook could help troubleshoot the issue.

jtpio avatar Aug 07 '23 07:08 jtpio

@jtpio

Does /opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/share/jupyter/ contain anything at all?

First, note that this is a very brittle path, since it contains the details of the minor version. On my machine, currently, it's .../3.11.4_1/.... However, opt/homebrew/Cellar/[email protected]/3.11.4_1 is linked to from /opt/homebrew/opt/[email protected]/

The 3.11.4_1 directory does exist, and contains only a lab/ subdirectory, which in turn contains extensions/ schemas/ settings/ staging/ static/ style.js themes/.

(FWIW, /opt/homebrew/share/jupyter/ contains all of kernels/ lab/ labextensions/ nbconvert/ nbextensions/ runtime/)

Also what does jupyter --paths output?

jupyter --paths
config:
    /Users/jaffe/.jupyter
    /Users/jaffe/Library/Python/3.11/etc/jupyter
    /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /Users/jaffe/Library/Jupyter
    /Users/jaffe/Library/Python/3.11/share/jupyter
    /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /Users/jaffe/Library/Jupyter/runtime 

(Note that the /opt/homebrew/opt/[email protected]/.../etc/... dir doesn't even exist...)

Additionally, what does jupyter labextension list output?

$ jupyter labextension list
JupyterLab v4.0.4

However, with the correct (?) paths put in by hand:

$ JUPYTER_PATH=/opt/homebrew/share/jupyter JUPYTER_CONFIG_PATH=/opt/homebrew/etc/jupyter jupyter labextension list
JupyterLab v4.0.4
/opt/homebrew/share/jupyter/labextensions
        jupyterlab_pygments v0.2.2 enabled  X (python, jupyterlab_pygments)
        ipyparallel-labextension v8.6.1 enabled  X
        @jupyter-notebook/lab-extension v7.0.2 enabled OK
        @jupyter-widgets/jupyterlab-manager v5.0.8 enabled OK (python, jupyterlab_widgets)

   The following extensions are outdated:
        jupyterlab_pygments
        ipyparallel-labextension

   Consider checking if an update is available for these packages.

defjaf avatar Aug 07 '23 08:08 defjaf

Possibly distilling things down:

It looks like all of these ancillary files are being installed by pip into directories with names defined by tool.hatch.build.targets.wheel.shared-data in pyproject.toml below

    /opt/homebrew/

However, jupyter is looking for the files below

    /opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11

where the latter is equivalent to both

    /opt/homebrew/opt/[email protected]/

and

/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11

Also, since the hatch docs for [tool.hatch.build.targets.wheel] mention sys.prefix:

$ python3 -c "import sys; print(sys.prefix)"
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11

as per the search by jupyter, but not the pip installation.

defjaf avatar Aug 07 '23 09:08 defjaf

Thanks @defjaf for looking into this and providing these details.

To check whether it could be an issue with the hatch config, would it be possible to try with JupyterLab 3.6.3 (which does not use hatch for packaging)? And see if it gives the same error as mentioned above:

JupyterLab Error
JupyterLab application assets not found in "/opt/homebrew/Cellar/[email protected]/3.11.4_1/Frameworks/Python.framework/Versions/3.11/share/jupyter/lab"
Please run `jupyter lab build` or use a different app directory

jtpio avatar Aug 09 '23 05:08 jtpio

@jtpio

To check whether it could be an issue with the hatch config, would it be possible to try with JupyterLab 3.6.3 (which does not use hatch for packaging)? And see if it gives the same error as mentioned above:

Ok, I tried that:

  • I did pip uninstall jupyterlab (probably unnecessary) and then pip install jupyterlab==3.6.3 which, as expected, also needed to downgrade several other packages:
Successfully installed aiofiles-22.1.0 jupyter-client-7.4.9 jupyter-ydoc-0.2.5 jupyterlab-3.6.3 notebook-6.5.5 pyzmq-24.0.1 ypy-websocket-0.8.4
  • I ran jupyter lab and got a bunch of expected messages:
[W 2023-08-09 09:06:34.233 LabApp] Build recommended
[W 2023-08-09 09:06:34.233 LabApp] @jupyterlab/collaboration-extension needs to be included in build
... more here ...
[W 2023-08-09 09:06:34.233 LabApp] @jupyterlab/application changed from ~4.0.4 to ~3.6.3
[W 2023-08-09 09:06:34.233 LabApp] @jupyterlab/application-extension changed from ~4.0.4 to ~3.6.3
[W 2023-08-09 09:06:34.233 LabApp] @jupyterlab/apputils-extension changed from ~4.0.4 to ~3.6.3
... more here ...

and a message in the browser requesting a build. After accepting, the console gave me

[I 2023-08-09 09:06:54.472 LabApp] Building jupyterlab assets (production, minimized)
  • Everything then seems to work, although the extensions manager tab in the sidebar says "UNDEFINED MANAGER" at the top, and nothing shows up under "INSTALLED" (but I don't know if there should be).

  • After quitting and restarting jupyterlab, the "UNDEFINED MANAGER" warning went away, but there are still no extensions listed. (I rarely ran jupyter lab prior to notebook 7, so I don't know if this is any different than before.) Clicking around in the sidebar does give some error messages related to the file browser: Failed validating settings (@jupyterlab/filebrowser-extension:browser): Additional properties are not allowed ('showFileCheckboxes', 'showFileSizeColumn', 'sortNotebooksFirst' were unexpected) followed by Failed validating 'additionalProperties' in schema: and then a bunch of json. Don't know if this is related to the notebook 7 issue, or just a version mismatch from downgrading.

  • Finally, if I run jupyter notebook, there are no unusual messages (and in particular, no "schema" messages).

defjaf avatar Aug 09 '23 08:08 defjaf

Opened https://github.com/jupyter/notebook/pull/7005 to investigate the issue on CI.

jtpio avatar Aug 09 '23 13:08 jtpio

I wanted to note here that I am also taking a look at this issue but haven't been able to identify what would fix it. I read on the Homebrew page that for Apple Silicon Macs Homebrew is installed in /opt/homebrew, where as for Intel Macs Homebrew is installed in /usr/local, and that this might affect where the packages get installed too. So in terms of replicating this issue in the CI, I am trying to get Homebrew installed in the /opt/homebrew directory in #7006 but I haven't been successful (please excuse the mess of commands there).

I am also trying to troubleshoot locally since I have an M1 but I am thinking if maybe it is a matter of updating how the jupyter --paths are grabbed, at least for the M1? As a short term solution I had tried simply copying the jupyter folder to the expected location and it solved the issue in JupyterLab and Notebook, not however for NbClassic (I was looking at this and thought that maybe that was due to a separate but related issue? I will dig a bit more and post in the NbClassic issue what I find).

RRosio avatar Aug 10 '23 06:08 RRosio

Having the same issue. Brew install python3.11, pip install notebook leads to a logo only page with javascript errors for missing files (such as tracker.json). Running jupyter lab build fixed the issue for me

joshdempster avatar Aug 11 '23 17:08 joshdempster