You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xusen Yin (JIRA)" <ji...@apache.org> on 2015/12/03 04:36:11 UTC
[jira] [Commented] (SPARK-7379) pickle.loads expects a string
instead of bytes in Python 3.
[ https://issues.apache.org/jira/browse/SPARK-7379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15037189#comment-15037189 ]
Xusen Yin commented on SPARK-7379:
----------------------------------
I also hit the error in the PR: https://github.com/apache/spark/pull/10007, stack trace here: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/46802/consoleFull The Python3 failed the pyspark test.
> pickle.loads expects a string instead of bytes in Python 3.
> -----------------------------------------------------------
>
> Key: SPARK-7379
> URL: https://issues.apache.org/jira/browse/SPARK-7379
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 1.4.0
> Reporter: Xiangrui Meng
> Assignee: Davies Liu
>
> In PickleSerializer, we call pickle.loads in Python 3. However, the input obj could be bytes, which works in Python 2 but not 3.
> The error message is
> {code}
> File "/home/jenkins/workspace/SparkPullRequestBuilder@3/python/pyspark/serializers.py", line 418, in loads
> return pickle.loads(obj, encoding=encoding)
> TypeError: must be a unicode character, not bytes
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org