Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter Lab build fails after installing extension: path names too long for Windows #30

Closed
jmbejara opened this issue Nov 6, 2017 · 6 comments

Comments

@jmbejara
Copy link

jmbejara commented Nov 6, 2017

I'm not sure where this issue belongs. I tried running these commands (from here #9 (comment)):

pip install jupyterlab==0.28.11 ipympl==0.0.8
jupyter labextension install @jupyter-widgets/jupyterlab-manager@^0.28 jupyter-matplotlib@^0.1
jupyter lab

The step jupyter labextension install @jupyter-widgets/jupyterlab-manager@^0.28 jupyter-matplotlib@^0.1 would fail on the check step. When I listed the installed extensions, they appeared to be installed, but when I would start up jupyter lab, it would recommend that I rebuild. When I would try to build, it would fail, saying that the "The system cannot find the path specified."

The path in question was

C:\Users\Jeremy\Anaconda3\share\jupyter\lab\staging\node_modules\jupyter-matplotlib\node_modules\@jupyter-widgets\base\node_modules\@jupyterlab\services\node_modules\@jupyterlab\coreutils\node_modules\ajv\node_modules\json-schema-traverse\spec\fixtures\schema.js

I figured out that the problem was that problem was that the path name was too long. See here: https://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpat . I fixed the problem by changing the option in my system registry to allow longer path names. After doing this and performing a clean install, everything worked as expected. I figured I should report this potential problem.

@blink1073
Copy link
Member

Hi @jmbejara, thanks for the report! Which version of npm are you using? npm.com -v

@blink1073
Copy link
Member

Also, this is Windows 10 I assume?

@jmbejara
Copy link
Author

jmbejara commented Nov 6, 2017

Thanks. No problem! It's npm version 5.0.3 on Windows 10.

@blink1073
Copy link
Member

FWIW I just tried on Windows 10 with npm@5.0.3 with the above commands and it worked. I also verified that I don't have LongPathsEnabled set in my registry.

@jmbejara
Copy link
Author

jmbejara commented Nov 7, 2017

Hmm. I can't replicate it myself. I reset LongPathsEnabled and rebooted, uninstalled nodejs and jupyterlab et al, and then started from scratch. However, everything seems to be working fine this time. A possible reason is that when I was first trying to get it to work, I realized I had two copies of nodejs installed---one that I installed a year and a half ago (4.4.7 with npm v. 2.15.8) and the other freshly from conda. I removed the old version while I was tinkering and proceeded to try things to get it to work. Maybe that had something to do with it? While I was trying to replicate the error, I tried with this older version of npm and everything still seemed to work fine. So, I don't really know what happened. I don't see the directory @jupyter-widgets being created (or at least persisting) after the build this time.

So, anyway, sorry to bother with this one. I guess it's probably not worth looking into further. Thanks for checking it though!

@blink1073
Copy link
Member

blink1073 commented Nov 7, 2017

Ah, I recently added a check (not in that version of JLab) that verifies node 5+ before trying to install an extension, because it installs maximally flat, which allows use to dedupe packages and avoids the long path problem on Windows.

Let's call this one closed, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants