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

print_upload_progress() missing 1 required positional argument: 'offset' #905

Open
makoluka opened this issue Oct 16, 2024 · 1 comment
Open

Comments

@makoluka
Copy link

Hello!

Looked at the example ´examples/sharepoint/files/upload_large.py´ and others in these repo, which are using the ´create_upload_session´ with ´print_upload_progress´ func as an argument, all examples are returning:

TypeError: print_upload_progress() missing 1 required positional argument: ´offset´.

Could you please check and verify example code?

Thank you!

@vgrem
Copy link
Owner

vgrem commented Oct 16, 2024

Greetings,

can't spot anything suspicious here, chunk_uploaded expects 1 mandatory argument starting from version 2.5.2.
and print_upload_progress signature appears to be correct. Perhaps you are utilizing older version?

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

No branches or pull requests

2 participants