FS#68953 - [s3cmd] base64 import error on Python 3.9

Attached to Project: Community Packages
Opened by Alan Orth (stickyboy) - Saturday, 12 December 2020, 12:20 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 18 December 2020, 09:37 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Another Python 3.9 error:

Invoked as: /usr/bin/s3cmd sync --limit-rate=150k --rexclude .?\.(NEF|NEF.xmp|dng|mov|mp4|DS_Store|photoslibrary) --delete-removed --reduced-redundancy /home/xxxx/Pictures/ s3://xxxx
Problem: <class 'AttributeError: module 'base64' has no attribute 'encodestring'
S3cmd: 2.1.0
python: 3.9.0 (default, Oct 7 2020, 23:09:01)
[GCC 10.2.0]
environment LANG=en_US.UTF-8

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Upstream report: https://github.com/s3tools/s3cmd/issues/1161

Fixed in commit: https://github.com/s3tools/s3cmd/commit/44cc1a996658eb6d150973018fece5b6d6e1f5bf
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 18 December 2020, 09:37 GMT
Reason for closing:  Fixed
Comment by Alan Orth (stickyboy) - Thursday, 17 December 2020, 10:22 GMT
Tested applying the patch myself and s3cmd sync works again:

https://github.com/s3tools/s3cmd/pull/1144
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 18 December 2020, 00:49 GMT
Alright. Patch applied. Check now.
Comment by Alan Orth (stickyboy) - Friday, 18 December 2020, 09:07 GMT
Perfect. Working now! Thanks.

Loading...