-
Notifications
You must be signed in to change notification settings - Fork 431
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 when executing notebook with papermill 2.0.0 and higher #498
Comments
What python version are you using? This looks like a low-level conda packaging issue trying to load the black library. I expect building a new conda environment or forcing a reinstall of black will fix the issue here. |
Oh also I believe the 2.0 build had an issue with the black dependency -- try using 2.1.0 or 2.1.1 instead of 2.0.0. |
That looks like something wrong in black. Perhaps this issue: psf/black#1223. What version of black are you using? Try upgrading that if it's an older version. |
using latest black version 19.10b0 |
Alright. I'd open an issue on the https://github.com/python/black repo. I'm not sure why this error is occurring for you but I can't reproduce it. As a last try for fixing from my idea pool is to try creating a new conda environment and reinstalling everything there. Conda can sometimes get a damaged installation that causes issues with more complicated recipes. |
I'm having the same error on a clean install with the same black version as @VDEHans . |
@willingc Do you think you could get some eyes from black to look at the issues made there on this topic? |
Also having the same error. papermill 2.1.0 |
Maybe try an older version of black -- I'm waiting to hear from the issue linked above because there's not a lot papermill can do about fixing the error afaik. |
I got the error to go away after generating the black cache. No need to downgrade black. For me it was running black <PATH TO BLACK>/lib/python3.8/site-packages/black.py and it works like a charm :) |
I am having the same issue btw. |
If I run as you suggested: |
When running a jupiter notebook with papermill 2.0.0 following error is generated:
Writing grammar tables to /home/AD/hvd1v2w/.cache/black/19.10b0/Grammar3.7.7.final.0.pickle
Writing failed: [Errno 2] No such file or directory: '/home/AD/hvd1v2w/.cache/black/19.10b0/tmp6jo8l_ml'
Generating grammar tables from /home/AD/hvd1v2w/.conda/envs/stuks-productiviteit-refactor/lib/python3.7/site-packages/blib2to3/PatternGrammar.txt
Writing grammar tables to /home/AD/hvd1v2w/.cache/black/19.10b0/PatternGrammar3.7.7.final.0.pickle
Writing failed: [Errno 2] No such file or directory: '/home/AD/hvd1v2w/.cache/black/19.10b0/tmpy8vr4ksk'
Except reverting to a previous version of papermill is there a fix for this ?
The text was updated successfully, but these errors were encountered: