Open RoeePeleg opened 4 years ago
Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended label(s): Example
@mxnet-label-bot , add [Bug]
Use s = b'...'
@RoeePeleg
You can learn the difference of string between python2 and python3 (encoding).
Use
s = b'...'
@RoeePeleg You can learn the difference of string between python2 and python3 (encoding).
@tuanzhangCS i know i can use bytes instead of str in order to make it work. i just wanted to note that the example and the documentation of the method are not correct. https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/recordio.py#L370-L371 https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/recordio.py#L378-L386
Description
when running the example from mxnet.recordio.pack using python3 it fails: TypeError: can't concat str to bytes
Environment info (Required)
Package used (Python/R/Scala/Julia): I'm using Python, Mxnet
Error Message:
Minimum reproducible example
i'm running this example (as coded here: https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/recordio.py#L378-L386):
Steps to reproduce
(Paste the commands you ran that produced the error.)
download the following zip rec_pack_example.py.zip
run:
python3 rec_pack_example.py