-
Notifications
You must be signed in to change notification settings - Fork 210
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
Installing environment for https://github.com/igorshubovych/markdownlint-cli fails with AttributeError: 'bytes' object has no attribute 'tell' #328
Comments
Related with #329, in case of network glitch, nodeenv may receive a partial tar file when downloading node from official source. When it does so, it doesn't fail immediatly but propagate the partial archive (which turns out to be bytes instead of str) later on in the code, resulting in this error. |
Related using https://github.com/RobertCraigie/prisma-client-py
|
Did you came to a mitigation meanwhile @bagerard ? |
not really, we're using this library through pre-commit hooks so once it is installed, it gets cached and we are good for a while but I'm still hoping #329 will get merged soon |
Also getting the same error as @c3b5aw. Feels like a separate issue to the original one posted though. |
Same thing for us. Any hotfix available? |
I'm getting the same error for:
I tried the latest code from The issue indeed seems to be network related. On my home network, it happens 100% of the times. On other I tried, it doesn't happen at all. Strangely, this issue appeared out of nowhere about at about the time of this GitHub issue being created. So I don't think this is an issue with my network in particular. |
Recently (or recently enough that I've just begun noticing it), the nodeenv dependency had troubles installing. Sometimes. It wasn't very reliably failing. This is related to <ekalinin/nodeenv#328>. By explicitly setting the Python version to something <=3.10, we can safely pretend the problem doesn't exist. Ideally the Python versions match up to the ones used in test.yml, but they don't, and I fear it might be too intrusive to fix that in this commit. Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
I was wrong. |
Hi,
I am using
Sometimes, pre-commit fails with the following error.
It looks like
nodeenv-1.7.0
is used.The text was updated successfully, but these errors were encountered: