issue-tracker icon indicating copy to clipboard operation
issue-tracker copied to clipboard

Enabling jupyter lab kite: Validation failed: [Errno 13] Permission denied

Open ThamuMnyulwa opened this issue 4 years ago • 4 comments

Can you try running

jupyter server extension enable jupyter_kite

Also, ensure you have the Kite Engine process active.

I am trying to enable the kite server using jupyter lab 3.0.6. The enabling process is giving me an error as shown below.

thamu@thamu-PC:~$ jupyter server extension enable jupyter_kite
Enabling: jupyter_kite
- Writing config: /usr/etc/jupyter
    - Validating jupyter_kite...
      jupyter_kite 2.0.2 OK
      X Validation failed: [Errno 13] Permission denied: '/usr/etc'

How can I resolve this issue? Originally posted by @ThamuMnyulwa in https://github.com/kiteco/issue-tracker/issues/601#issuecomment-789431533

ThamuMnyulwa avatar Mar 06 '21 10:03 ThamuMnyulwa

When I run jupyter lab I get this error message: build1

After I try to build I get this message: build2

I followed the instructions and tried to build it in the terminal. I get an error message then go and look at the log file which is below.

build3

The log file then looks like this:

[]([]([LabBuildApp] Building in /home/thamu/.local/share/jupyter/lab [LabBuildApp] Node v15.6.0

[LabBuildApp] Yarn configuration loaded. [LabBuildApp] Building jupyterlab assets (production, minimized) [LabBuildApp] WARNING | The extension "@jupyter-widgets/jupyterlab-manager" is outdated.

[LabBuildApp] > node /home/thamu/.local/lib/python3.8/site-packages/jupyterlab/staging/yarn.js install --non-interactive [LabBuildApp] yarn install v1.21.1 [1/5] Validating package.json... [2/5] Resolving packages... warning kite > [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) warning kite > selenium-launcher > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning kite > zombie > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning kite > cukestall > [email protected]: The npm package has moved to @cucumber/cucumber warning kite > cukestall > cucumber > [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) warning kite > cukestall > [email protected]: Critical security bugs fixed in 2.5.5 warning kite > zombie > [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 warning kite > cukestall > cucumber > [email protected]: jasmine-node 1.x & 2.x are deprecated, with known vulnerability in jasmine-growl-reporter pre-2.0.0 warning kite > cukestall > cucumber > jasmine-node > [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) warning kite > zombie > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning kite > zombie > html5 > jsdom > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 warning kite > cukestall > [email protected]: express 2.x series is deprecated warning kite > cukestall > cucumber > [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) warning kite > cukestall > express > [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) warning kite > cukestall > cucumber > [email protected]: connect 2.x series is deprecated warning kite > cukestall > express > [email protected]: connect 1.x series is deprecated warning kite > zombie > html5 > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 warning kite > cukestall > browserify > [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) warning kite > zombie > jsdom > request > [email protected]: this library is no longer supported warning kite > cukestall > cucumber > rimraf > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js warning kite > cukestall > express > connect > [email protected]: Old versions of Formidable are not compatible with the current Node.js; Upgrade to 1.2.0 or later warning kite > cukestall > browserify > [email protected]: Package not maintained. Recent browserify uses https://github.com/feross/buffer warning kite > cukestall > browserify > deputy > [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.) [3/5] Fetching packages... warning [email protected]: The engine "vscode" appears to be invalid. error [email protected]: The engine "node" is incompatible with this module. Expected version "0.6 || 0.7 || 0.8". Got "15.6.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[LabBuildApp] npm dependencies failed to install [LabBuildApp] Traceback (most recent call last):

[LabBuildApp] File "/home/thamu/.local/lib/python3.8/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging yield

[LabBuildApp] File "/home/thamu/.local/lib/python3.8/site-packages/jupyterlab/labapp.py", line 168, in start raise e

[LabBuildApp] File "/home/thamu/.local/lib/python3.8/site-packages/jupyterlab/labapp.py", line 164, in start build(name=self.name, version=self.version,

[LabBuildApp] File "/home/thamu/.local/lib/python3.8/site-packages/jupyterlab/commands.py", line 463, in build return handler.build(name=name, version=version, static_url=static_url,

[LabBuildApp] File "/home/thamu/.local/lib/python3.8/site-packages/jupyterlab/commands.py", line 663, in build raise RuntimeError(msg)

[LabBuildApp] RuntimeError: npm dependencies failed to install

[LabBuildApp] Exiting application: JupyterLab))

ThamuMnyulwa avatar Mar 06 '21 11:03 ThamuMnyulwa

Hi @ThamuMnyulwa, I'd advise you to go with the guidance given here. If you continue to experience issues with the Kite plugin specifically, please let us know.

edzkite avatar Mar 09 '21 18:03 edzkite

Can you try running

jupyter server extension enable jupyter_kite

Also, ensure you have the Kite Engine process active.

I am trying to enable the kite server using jupyter lab 3.0.6. The enabling process is giving me an error as shown below.

thamu@thamu-PC:~$ jupyter server extension enable jupyter_kite Enabling: jupyter_kite

  • Writing config: /usr/etc/jupyter
    • Validating jupyter_kite... jupyter_kite 2.0.2 OK X Validation failed: [Errno 13] Permission denied: '/usr/etc' How can I resolve this issue? Originally posted by @ThamuMnyulwa in #601 (comment)

I encountered the same problem. But then I moved all the permission from the folder where the "Validation failed" occured using: sudo chmod 777 [folder_name] or as in your case sudo chmod 777 etc

Then I opened the jupyter lab from the terminal and now kite-plugin works fine.

I do not know what kind of consequences this action will have in the future having removed all the permission from the folder.

Absolute7070 avatar Dec 30 '21 17:12 Absolute7070

I mean after you have removed the permission, you should run again the following code: jupyter server extension enable jupyter_kite

Absolute7070 avatar Dec 30 '21 17:12 Absolute7070