minio / minio-py

MinIO Client SDK for Python
https://docs.min.io/docs/python-client-quickstart-guide.html
Apache License 2.0
822 stars 318 forks source link

fput_object() raise TypeError: md5() takes at most 1 argument (2 given) in some windows pc #1377

Closed KiTiler closed 8 months ago

KiTiler commented 8 months ago

Dear all, In my computer,the function client.fput_object works fine.When i pack my software and run on some windows,it works too. image

But on some pc,it always raise the TypeError: File "src\packages\platform_tool\test_terminal\Task.py", line 461, in upload File "src\packages\platform_tool\test_terminal\MinioTool.py", line 82, in upload File "src\packages\platform_tool\test_terminal\MinioTool.py", line 49, in upload_minio File "minio\api.py", line 998, in fput_object File "minio\api.py", line 1789, in put_object File "minio\api.py", line 1774, in put_object File "minio\api.py", line 1567, in _complete_multipart_upload File "minio\helpers.py", line 276, in md5sum_hash File "hashlib.py", line 136, in py_new TypeError: md5() takes at most 1 argument (2 given) My version of minio is 7.2.0.Cound you lend me a hand?

balamurugana commented 8 months ago

What is your MS Windows version and python version?

KiTiler commented 8 months ago

Two PCs occurs. One is 22H2(19045.3693), and the another is 22H2(19045.3803). However, my pc is 22H2(19045.3693), it works just fine. My python version is 3.7.11.

balamurugana commented 8 months ago

Looks like you have local issue on those two MS Windows machines. You would need to check accordingly.

KiTiler commented 8 months ago

I figure it out! When I upgrade my python from 3.7 to 3.9, and package my project, it was fine. If it happens, have a try.