elyra icon indicating copy to clipboard operation
elyra copied to clipboard

Endpoint elyra/schemaspace not found.

Open nhpackard opened this issue 3 years ago • 8 comments

Just tried installing extension in jupyterlab, got the same result in a couple of different configurations, e.g.

$ jupyter --version
Selected Jupyter core packages...
IPython          : 8.3.0
ipykernel        : 6.13.0
ipywidgets       : 7.7.0
jupyter_client   : 7.3.1
jupyter_core     : 4.10.0
jupyter_server   : 1.17.0
jupyterlab       : 3.4.2
nbclient         : 0.6.3
nbconvert        : 6.5.0
nbformat         : 5.4.0
notebook         : 6.4.11
qtconsole        : 5.3.0
traitlets        : 5.2.0

It requested a rebuild, and upon starting after the build, I get Endpoint elyra/schemaspace not found.

nhpackard avatar Jul 28 '22 15:07 nhpackard

How exactly did you try to install Elyra? Since version 3.7 a rebuild of JupyterLab is no longer required, so I'm a bit surprised that you were requested to perfom one.

ptitzler avatar Jul 28 '22 17:07 ptitzler

setup for my most recent test:

$ python --version
Python 3.9.5

$ jupyter --version
Selected Jupyter core packages...
IPython          : 7.24.1
ipykernel        : 6.13.0
ipywidgets       : 7.6.3
jupyter_client   : 6.1.12
jupyter_core     : 4.10.0
jupyter_server   : 1.17.0
jupyterlab       : 3.4.2
nbclient         : 0.5.3
nbconvert        : 6.5.0
nbformat         : 5.4.0
notebook         : 6.4.0
qtconsole        : 5.1.0
traitlets        : 5.2.1.post0

Right after I hit the install button in jupyterlab extensions, I see image

nhpackard avatar Jul 28 '22 21:07 nhpackard

I tried updating all jupiter components in my python 3.9.5, with pip install component -U. Ended up with

$ jupyter --version
Selected Jupyter core packages...
IPython          : 8.4.0
ipykernel        : 6.15.1
ipywidgets       : 7.7.1
jupyter_client   : 7.3.4
jupyter_core     : 4.11.1
jupyter_server   : 1.18.1
jupyterlab       : 3.4.4
nbclient         : 0.5.13
nbconvert        : 6.5.0
nbformat         : 5.4.0
notebook         : 6.4.12
qtconsole        : 5.3.1
traitlets        : 5.3.0

Still wants a rebuild. and... after the rebuild:

Endpoint elyra/schemaspace not found.

nhpackard avatar Jul 28 '22 21:07 nhpackard

Elyra is not considered a core Jupyter application so its version will not show up using jupyter --version.

Please run pip freeze to capture the version information.

Missing endpoints are an indication that the Elyra server extension is not enabled. Please run the following:

jupyter server extension list

If you find elyra not enabled, you could try running:

jupyter server extension enable elyra

if, after confirming the extension's enablement, you still find the endpoint issue is occurring, replace the lab sub-command with elyra in your jupyter lab information (so invoke jupyter elyra) as this will ignore the status information and may provide a better datapoint.

kevin-bates avatar Jul 28 '22 22:07 kevin-bates

It sounds like you might be missing the server side package needed for most of our front end extensions to work properly.

Suggest installing Elyra via the python package as opposed to the extensions menu in JL, which will install all our extensions along with the requisite backend packages

pip install elyra[all]==3.10.1

akchinSTC avatar Jul 29 '22 16:07 akchinSTC

@ptitzler @akchinSTC and @kevin-bates : Thanks very much for your patience. I hit "install @elyra/metadata-extension" without having any idea that I needed to install the (rather substantial) server side package to make it work. (maybe a more informative error message indicating the need for installing the server side package would be nice?)

After horsing around with some conflicting version requirements, I now have elyra 3.10.1 installed and enabled as a server extension. jupyter elyra seems to work fine.

Thanks again for your patience, and I look forward to exploring elyra.

nhpackard avatar Jul 29 '22 17:07 nhpackard

Hi @nhpackard - thanks for the additional information.

(maybe a more informative error message indicating the need for installing the server side package would be nice?)

Yes, we discussed this very thing in our daily dev meeting today and thought it would be a good idea. We need to take a closer look at this since we have so many lab-extensions in the Elyra suite.

In general, it's probably a good idea to look at the docs as well - either via the README or Documentation.

I'm going to re-open this issue until we've taken a closer look as to whether it is viable to issue a warning message that the installation is not complete.

kevin-bates avatar Jul 29 '22 17:07 kevin-bates

My main difficulty was that I was trying to install an elyra extension (which was listed on my long list of possible jupyter lab extensions) without having installed the elyra server extension.

My main suggestion for a quick fix that would have put me on the right track is to put a check for elyra installation (ideally also for jupyter server extension enabled) right when the extension "install" button is hit.

Effectively, with the appropriate error message, you could enforce the suggestion of @akchinSTC, "Suggest installing Elyra via the python package as opposed to the extensions menu in JL" as policy, eliminating any possibility of extension installation without elyra installation.

nhpackard avatar Jul 30 '22 09:07 nhpackard