[Openstack] How to deal with this error ?

yewgang batmanustc at gmail.com
Thu May 5 05:10:29 UTC 2016


I Solve this problem by

import sys
reload(sys)
sys.setdefaultencoding('utf8')

2016-05-05 11:12 GMT+08:00 Remo Mattei <remo at italy1.com>:

> how? Distort? v2, v3 guys provide more data if you want people to answer
> your questions.
>
> my 2 cents.
> Remo
> > On May 4, 2016, at 20:00, yewgang <batmanustc at gmail.com> wrote:
> >
> > Hi all
> >
> > gateway at gateway-20150605:~$ keystone tenant-create --name admin
> > Traceback (most recent call last):
> >   File "/usr/bin/keystone", line 10, in <module>
> >     sys.exit(main())
> >   File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line
> 488, in main
> >     print(strutils.safe_encode(six.text_type(e)), file=sys.stderr)
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 39:
> ordinal not in range(128)
> >
> > Does any one get this error ? How to deal with it ?
> > Thank you.
> > !DSPAM:1,572ab956304169163817503!
> _______________________________________________
> > Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> > Post to     : openstack at lists.openstack.org
> > Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> >
> >
> > !DSPAM:1,572ab956304169163817503!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160505/29e009cf/attachment.html>


More information about the Openstack mailing list