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

Windows, error writing grammar tables #10

Open
EWouters opened this issue Feb 7, 2019 · 4 comments

Comments

Projects
None yet
3 participants
@EWouters
Copy link

commented Feb 7, 2019

I get an error upon launching Jupyter Lab with this extension enabled:

[I 10:37:25.686 LabApp] Node v10.8.0

[I 10:37:26.075 LabApp] Build is up to date
Generating grammar tables from C:\Users\%USERNAME%\Anaconda3\lib\site-packages\blib2to3\Grammar.txt
Writing grammar tables to C:\Users\%USERNAME%\AppData\Local\black\black\Cache\18.9b0\Grammar3.7.1.final.0.pickle
Writing failed: [Errno 2] No such file or directory: 'C:\\Users\\%USERNAME%\\AppData\\Local\\black\\black\\Cache\\18.9b0\\Grammar3.7.1.final.0.pickle'
Generating grammar tables from C:\Users\%USERNAME%\Anaconda3\lib\site-packages\blib2to3\PatternGrammar.txt
Writing grammar tables to C:\Users\%USERNAME%\AppData\Local\black\black\Cache\18.9b0\PatternGrammar3.7.1.final.0.pickle
Writing failed: [Errno 2] No such file or directory: 'C:\\Users\\%USERNAME%\\AppData\\Local\\black\\black\\Cache\\18.9b0\\PatternGrammar3.7.1.final.0.pickle'

After manually creating the folder C:\\Users\\%USERNAME%\\AppData\\Local\\black\\black\\Cache\\18.9b0 and relaunching Jupyter lab the error disappears (even though the folder seems to stay empty).

@ryantam626

This comment has been minimized.

Copy link
Owner

commented Feb 16, 2019

Hey! This seems to be Python in Windows shenanigans, this is something that this package will not aim to fix/workaround, thanks for the heads up though 👍 , shall put it in the readme

@ryantam626 ryantam626 closed this Feb 16, 2019

@bjtho08

This comment has been minimized.

Copy link

commented Jun 3, 2019

@ryantam626 I seem to experience the same issue on Ubuntu 16.04, so it appears to be OS independent.

@ryantam626

This comment has been minimized.

Copy link
Owner

commented Jun 3, 2019

Did you use your system's python to install jupyterlab or virtualenv/conda?

@ryantam626 ryantam626 reopened this Jun 3, 2019

@bjtho08

This comment has been minimized.

Copy link

commented Jun 4, 2019

I actually use pyenv. Could that have something to do with the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.