question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error writing grammar tables

See original GitHub issue

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).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jmbenedettocommented, Dec 17, 2020

Same here with MacOS BigSur

2reactions
kavanasecommented, Mar 30, 2020

Same issue here as @andreamoro with new Mac OS X Catalina.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Improve the the blib2to3 grammar caching mechanism #1143
I get an error upon launching Jupyter Lab with the ... ichard26 changed the title Error writing grammar tables Improve the the blib2to3 ......
Read more >
User-Guide - Logging — ploomber 0.21.8dev documentation
Tutorial showing how to add logging to a pipeline. Sample pipeline¶. The pipeline we'll be using for this guide contains two tasks (a...
Read more >
31 Types of Writing Errors: Grammar, Spelling, Punctuation ...
A writing error is a mistake in the form of grammar, spelling, punctuation, or word choice that makes your paper less readable and...
Read more >
python-sphinx: Generating grammar tables problem
Package: python-sphinx. Version: 0.6.6-3. Severity: normal. hello,. when I am generating the documentaiton of one of my prospective package,
Read more >
No problem with Black per se - it's my default linter
... /usr/local/lib/python3.10/site-packages/blib2to3/Grammar.txt Writing grammar tables to /root/.cache/black/21.12b0/Grammar3.10.1.final.0.pickle Writing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found