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 stuck on bad cache(?) #903

Closed
dimaqq opened this issue Jun 24, 2019 · 5 comments
Closed

Black stuck on bad cache(?) #903

dimaqq opened this issue Jun 24, 2019 · 5 comments
Labels
R: duplicate This issue or pull request already exists

Comments

@dimaqq
Copy link

dimaqq commented Jun 24, 2019

After running black from Python3.8 virtualenv, I am unable to run black from Python3.7 virtualenv on the same codebase, even on completely new files:

> black x.py
error: cannot format x.py: unsupported pickle protocol: 5
All done! 💥 💔 💥
1 file failed to reformat.

Howdy! Sorry you're having trouble. To expedite your experience,
provide some basics for me:

Operating system: macOS
Python version: 3.8b + 3.7
Black version: 19.3b0
Does also happen on master: dunno

@dimaqq
Copy link
Author

dimaqq commented Jun 24, 2019

Probably duplicate of #875

@dimaqq
Copy link
Author

dimaqq commented Jun 24, 2019

TL;DR, on Mac, do rm -rf ~/Library/Caches/black/*

@zsol
Copy link
Collaborator

zsol commented Jun 24, 2019

Yes, let's keep the discussion in #875

@zsol zsol closed this as completed Jun 24, 2019
@adam505hq
Copy link

On linux: rm -rf ~/.cache/black/*

@ichard26 ichard26 added the R: duplicate This issue or pull request already exists label Apr 13, 2021
@Marco-Sulla
Copy link

On windows, the dir is located in C:\Users\USERNAME\AppData\Local\black\black\Cache

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
Projects
None yet
Development

No branches or pull requests

5 participants