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

Fix ValueError with latest MP #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ThinkTransit
Copy link
Contributor

I seem to be having problem with the latest version of MP throwing a ValueError when untaring files.

Traceback (most recent call last):
  File "main.py", line 30, in <module>
  File "uota.py", line 185, in install_new_firmware
  File "tarfile/__init__.py", line 129, in __next__
  File "tarfile/__init__.py", line 107, in next
OSError: [Errno 22] EINVAL

I haven't been able to determine the exact cause but it seems to work fine when using the 'with' keyword on the deflate.

with deflate.DeflateIO(f1, deflate.GZIP) as f2

instead of

f2 = deflate.DeflateIO(f1, deflate.GZIP)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant