Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

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

Open makoluka opened this issue 1 year ago • 1 comments

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!

makoluka avatar Oct 16 '24 12:10 makoluka

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?

vgrem avatar Oct 16 '24 19:10 vgrem