Skip to content

Reading from Blob data stream results in ValueError exception when run under ipython #1627

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

Closed
uzytkownik opened this issue Aug 4, 2023 · 1 comment

Comments

@uzytkownik
Copy link

Unfortunately I cannot share stacktrace as it contains confidential information. I run into strange error - when I run following code from under ipython, GitPython throws ValueError saying it cannot decode SHA and a line from beginning of file. It seems to work when run as script:

repo = git.Repo(...)
blob = git.Blob(repo, b'...')
print(str(blob.data_stream.read()))
@Byron
Copy link
Member

Byron commented Sep 7, 2023

I don't think with the amount of provided information that a fix is possible. Thanks for your understanding.

@Byron Byron closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants