(UnicodeEncodeError):' ascii'编解码器不能编码字符u' \ xa 0'位置0:序数不在范围内(128)"

时间:2016-12-12 23:54:59

标签: encoding google-cloud-ml

我遵循了云计算机学习的培训快速入门(在Google云平台云计算机学习中),但是在"在云上训练的项目中:单个工作人员"我收到了以下错误。

Welcome to Cloud Shell! Type "help" to get started.
dzf044@machine:~$ cd ~/google-cloud-ml/samples/mnist/trainable/
dzf044@machine:~/google-cloud-ml/samples/mnist/trainable$JOB_NAME=mnist_${USER}_$(date +%Y%m%d_%H%M%S)
dzf044@machine:~/google-cloud-ml/samples/mnist/trainable$PROJECT_ID=`gcloud config list project --format "value(core.project)"`
our active configuration is: [cloudshell-XXXXXX]

dzf044@machine:~/google-cloud-ml/samples/mnist/trainable$TRAIN_BUCKET=gs://machine-xxxxx-ml
dzf044@machine:~/google-cloud-ml/samples/mnist/trainable$ TRAIN_PATH=${TRAIN_BUCKET}/${JOB_NAME}
dzf044@machine:~/google-cloud-ml/samples/mnist/trainable$ gsutil rm -rf ${TRAIN_PATH}

CommandException: 1 files/objects could not be removed.
dzf044@machine:~/google-cloud-ml/samples/mnist/trainable$ gcloud beta ml jobs submit training ${JOB_NAME} \

>   --package-path=trainer \
>   --module-name=trainer.task \
>   --staging-bucket="gs://machine-xxxxx-ml"\
>   --region=asia-northeast1 \
>   -- \
>   --train_dir="${TRAIN_PATH}/train"
> 
  

错误:gcloud崩溃(UnicodeEncodeError):' ascii'编解码器不能对字符u' \ xa0'进行编码。位置0:序数不在范围内(128)

有什么想法吗?

0 个答案:

没有答案