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

black on windows failed to write to Cache #1703

Closed
raybellwaves opened this issue Sep 14, 2020 · 2 comments
Closed

black on windows failed to write to Cache #1703

raybellwaves opened this issue Sep 14, 2020 · 2 comments
Labels
R: duplicate This issue or pull request already exists T: bug Something isn't working

Comments

@raybellwaves
Copy link
Contributor

raybellwaves commented Sep 14, 2020

Isntalled black via a conda yaml file

name: test_env
channels:
  - conda-forge
dependencies:
  - python=3.8
  - black
  - ...

When opening jupyter lab I see

Generating grammar tables from C:\Users\XXXXXX\AppData\Local\Continuum\anaconda3\envs\test_env\lib\site-packages\blib2to3\Grammar.txt
Writing grammar tables to C:\Users\XXXXXX\AppData\Local\black\black\Cache\20.8b1\Grammar3.8.5.final.0.pickle
Writing failed: [Errno 2] No such file or directory: 'C:\\Users\\XXXXXX\\AppData\\Local\\black\\black\\Cache\\20.8b1\\tmp2h8c2bh_'
Generating grammar tables from C:\Users\XXXXXX\AppData\Local\Continuum\anaconda3\envs\test_env\lib\site-packages\blib2to3\PatternGrammar.txt
Writing grammar tables to C:\Users\XXXXXX\AppData\Local\black\black\Cache\20.8b1\PatternGrammar3.8.5.final.0.pickle
Writing failed: [Errno 2] No such file or directory: 'C:\\Users\\XXXXXX\\AppData\\Local\\black\\black\\Cache\\20.8b1\\tmp2saxt6p8'

Looking in C:\Users\XXXXXX\AppData\Local\black\black\Cache I see 19.10b0 but no 20.8b1. I believe last time it was able to add that folder so unsure what happened this time.

  • Version: 20.8b1
  • OS and Python version: Windows 10. Python 3.8.
@raybellwaves raybellwaves added the T: bug Something isn't working label Sep 14, 2020
@raybellwaves
Copy link
Contributor Author

Manually added the 20.8b1 folder to the Cache folder and worked fine next time I opened jupyter lab

@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label Sep 16, 2020
@ichard26
Copy link
Collaborator

Duplicate of #1143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R: duplicate This issue or pull request already exists T: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants