Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gcloud crashed (UnicodeEncodeError): 'ascii' codec can't encode character u'\xe7' in position 13: ordinal not in range(128)

Tags:

gcloud

Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of

available commands.

C:\Program Files (x86)\Google\Cloud SDK>gcloud init Welcome! This command will take you through the configuration of gcloud.

Your current configuration has been set to: [default]

You can skip diagnostics next time by using the following flag:
gcloud init --skip-diagnostics

Network diagnostic detects and fixes local network connection issues. Checking network connection...done. Reachability Check passed. Network diagnostic (1/1 checks) passed.

ERROR: gcloud crashed (UnicodeEncodeError): 'ascii' codec can't encode character u'\xe7' in position 13: ordinal not in range(128)

If you would like to report this issue, please run the following command: gcloud feedback

To check gcloud for common problems, please run the following command: gcloud info --run-diagnostics

I don't know what to do... I just want to use the sdk but I can't init it...

like image 798
François ROSTKER Avatar asked Jul 18 '17 14:07

François ROSTKER


1 Answers

Have a look at the file which gave error , edit the .py file to add following lines

import sys
reload(sys)
sys.setdefaultencoding('utf8')
like image 145
Devendra Dora Avatar answered Oct 03 '22 05:10

Devendra Dora