You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/12/02 03:28:12 UTC
[jira] [Commented] (LIBCLOUD-639) Python 3 Error: "Invalid argument
%r for b()" when using upload_object_via_stream
[ https://issues.apache.org/jira/browse/LIBCLOUD-639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14230854#comment-14230854 ]
ASF GitHub Bot commented on LIBCLOUD-639:
-----------------------------------------
GitHub user pzrq opened a pull request:
https://github.com/apache/libcloud/pull/408
Python 3 Error: "Invalid argument %r for b()" when using upload_object_via_stream
https://issues.apache.org/jira/browse/LIBCLOUD-639
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mathspace/libcloud 639_bytes_iterator
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/408.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #408
----
commit f73abb13436cc3cf51d4a2f7054c683312f0f51d
Author: Peter Schmidt <pe...@peterjs.com>
Date: 2014-12-01T06:28:20Z
[LIBCLOUD-639] Add erroring test for this Python 3 bytes issue so I don't need to explain as much magic in an earlier test.
commit 7eaa0a6447c1eb20e31595be6b60c446cef85a01
Author: Peter Schmidt <pe...@peterjs.com>
Date: 2014-12-01T06:28:58Z
Fix test under Python 3.4 at least.
http://stackoverflow.com/a/21017834
commit 776f6e5b5496f896f8b238d1d6b26d1d04a52e54
Author: Peter Schmidt <pe...@peterjs.com>
Date: 2014-12-01T07:48:49Z
Typo missing i.
commit fe6cca9405a8958db6a5f5b795792cbfef37df41
Author: Peter Schmidt <pe...@peterjs.com>
Date: 2014-12-02T01:56:11Z
Don't send one byte at a time, read the iterator in chunks and fill the chunks, otherwise it turns a 1.6MB file into more than 400MB (when I gave up and killed the request).
----
> Python 3 Error: "Invalid argument %r for b()" when using upload_object_via_stream
> ---------------------------------------------------------------------------------
>
> Key: LIBCLOUD-639
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-639
> Project: Libcloud
> Issue Type: Bug
> Components: Storage
> Reporter: Peter Schmidt
> Priority: Minor
>
> Workaround is to use upload_object() after saving the file to the local filesystem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)