-
Notifications
You must be signed in to change notification settings - Fork 55
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
Error writing grammar tables #10
Comments
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 I seem to experience the same issue on Ubuntu 16.04, so it appears to be OS independent. |
Did you use your system's python to install jupyterlab or virtualenv/conda? |
I actually use pyenv. Could that have something to do with the issue? |
Hmm not that familiar with pyenv, but possibly. I think this is because the jupyterlab server is spawned with user that doesn't have privilege to create the cache needed for black. Did it work for you in the end? You could try creating the cache dir youself and chown to you user if not 🤔 |
Same issue on Manjaro, using virtualenv.
And, there is no |
Interesting.. What does the directory ownership look like for |
|
Can't reproduce the error myself unfortunately.. Could you try manually creating the I understand this is a bit shitty but I can't think of why it would not write the pickle in the cache 🤔 |
No error after I created the directory
And then if I reboot jupyterlab it will not show infos about |
Ah good. I assume it's working as expected now? |
Yes, except have to mkdir by myself. |
Had the same issue, manually created |
I can confirm, that this bug is present for Linux, too ( #82 ). |
Linking root cause: psf/black#1223 |
Thanks for the fix @AlJohri ! |
Same here on a Mac OSX with a clean environment and brand new installation of the code formatter. |
Same issue here as @andreamoro with new Mac OS X Catalina. |
Same here with MacOS BigSur |
I get an error upon launching Jupyter Lab with this extension enabled:
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).The text was updated successfully, but these errors were encountered: