Google Cloud SDK installer fails on Windows 7 (gcloud crashed (UnicodeDecodeError)) - windows

My OS is win7. I want to install the clould SDK.
But it "Failed to install". The ERROR message is:
Output folder: C:\Program Files (x86)\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat
Installing components.
Welcome to the Google Cloud SDK!
ERROR: gcloud crashed (UnicodeDecodeError): 'ascii' codec can't decode byte 0xa4 in position 9: 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
ERROR: Cannot use bundled Python installation to update Cloud SDK in
non-interactive mode. Please run again in interactive mode.
If you really want to run in non-interactive mode, please run the
following command before re-running this one:
FOR /F "delims=" %i in ( '""C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd"" components copy-bundled-python'
) DO (
SET CLOUDSDK_PYTHON=%i
)
(Substitute `%%i` for `%i` if in a .bat script.)
Failed to install.
Can someone help me?

I Fixed it by re-installing google cloud sdk. (if you can't uninstall just rename folder: C:\Program Files (x86)\Google\Cloud SDK to something else and try installer)
And by setting the CLOUDSDK_PYTHON environment variable to C:\Python27\python.exe (installation folder of python v2.7)
Now installing the app-engine components worked again.
option 2
Check your config: gcloud config list if you see: disable_prompts = True. this is probably why google says the inter-active mode is disabled. if you remove this value it might remove this error.

I also had error on Windows 8
ERROR: gcloud failed to load: 'ascii' codec can't decode byte...
I checked my installation path. And it contained non-ascii symbol. So I restarted installer and changed installation path to C:\Program Files\Google\Cloud SDK
Afterwards I've got error
To use the Google Cloud SDK, you must have Python installed and on your PATH.
As an alternative, you may also set the CLOUDSDK_PYTHON environment variable
to the location of your Python executable.
Failed to install.
despite the checked option "Bundled Python" as manual proposes.
I downloaded from https://www.python.org/downloads/release/python-2714/ and installed latest Python 2.7.14 (Google SDK doesn't work with Python 3)
The default path to executable was C:\Python27\python.exe, so added it as CLOUDSDK_PYTHON system variable in my Control panel and started again.
Finally it is installed.

My local account name contains non-ASCII characters.
I workarounded this issue by creation of new local account with name of ASCII characters only.

Related

Getting KeyError: 'WINDOWSSDKDIR' while running Chromium browser source code on Windows

MAIN OBJECTIVE: I'm trying to build and run Chromium browser source code on my Windows. I want to create my own browser. The doc I'm following: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
PROBLEM: I'm trying to follow every step and command as mentioned in the doc. I'm having trouble while running this command gn gen out/Default. I'm getting the following error (see the screenshot):
KeyError: 'WINDOWSSDKDIR'
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
Here is vs_toolchain.py: https://github.com/arkadee/demo_files/blob/master/vs_toolchain.py
I'm using the latest version of VS Code. I've tried finding the solution myself, but, there are limited resources on the internet about Chromium. Any help will be appreciated, thanks!
Looks like WindowsSdkDir env variable is missing on your computer. You should install Visual Studio (VS Code is different) and the Window SDK, though it doesn't use VC compiler or linker anymore but GN build system needs the path of Windows SDK to copy all the relevant files to the build folder. Go to command prompt and type set, do you see WindowsSdkDir env variable? If not then either the SDK is missing or the env variable has been wiped out

Google Cloud SDK failed to install '.exe;.bat;.com' is not a recognized command

I'm trying to install google cloud SDK on a windows 10 laptop. I tried removing the whitespace in the install folder, and added the path to my environmental variables. The full error is:
Output folder: C:\Users\user\Documents
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Users\user\Documents\cloud_env.bat
Installing components.
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' is not recognized as an internal or external command,
operable program or batch file.
Failed to install.
my environmental variables path :
C:\Users\user\Documents
C:\windows\system32
edit: I believe my problem is caused by the google SDK installation process trying to run a batch file. The batch file is not being recognized for some reason (although I verified it exists) so I'm thinking something is wrong with my path, or my network admin disabled batch files.
In this case, you need to add the variables to your windows environmental variables configuration.
To do that, press WIN + X and then click on System.
On the left side, select the Advanced System Settings. Click on Environment Variables.
At the system variables panel, choose Path and then click the Edit button.
You can add the Environmental variables along with their path from there.

Installing android emulator for android-skd-tools

I am trying to setup android development environment without Android Studio on Windows system. I will be developing an application using nativescript so I followed their tutorial and was able to setup things as mentioned on their page(link). And tns doctor gives "No issues were detected".
Note: I haven't used Chocolatey to manage the installation. I have manually installed the packages that were mentioned on the page.
I created avd using:
avdmanager create avd -n nvDev -k "system-images;android-25;google_apis;x86" -b google_apis/x86
which is also listed by(emulator is under 'tools' folder)
emulator -list-avds
--------------------------
nvDev
Now when I try to start emulator it is giving me error:
emulator.exe -avd nvDev
--------------------------
[3708]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ..\emulator\lib64\qt\lib
Could not launch '..\emulator/qemu/windows-x86_64/qemu-system-i386.exe': No such file or directory
As emulator folder was not found I tried to install emulator using the sdkmanager but it gives me a warning:(sdkmanager is under tools/bin)
sdkmanager "emulator"
Warning: File C:\Users\CES_Arion\.android\repositories.cfg could not be loaded.
Warning: Failed to read or create install properties file.
There was no "done" message. And even the emulator folder was not created alongside tools.
Wow, I feel so foolish now. The problem was I did not run the command prompt as an Admin so the files could not be created.

Google Cloud SDK installer fails to complete component installation on Windows 7

During installation I get a message:
Unfortunately, the component installation did not complete successfully. Please check the detailed logs for the error message.
I tried installing to all users, single user, many destinations and names.
Details:
Output folder: C:\Program Files (x86)\Google\Cloud SDK
Downloading Google Cloud SDK core.
Extracting Google Cloud SDK core.
Create Google Cloud SDK bat file: C:\Program Files (x86)\Google\Cloud SDK\cloud_env.bat
Installing components.
The filename, directory name, or volume label syntax is incorrect.
Failed to install.
What to do?
for some reason it seems it doesn't like the spaces in the path. Change to other path without spaces: like C:/some/folder/with/no/spaces/cloud-sdk
The 'find' command is a standard Windows command which has been around since the days of DOS. If it doesn't exist on your system, this usually means your PATH is broken or someone has deleted 'find.exe' from C:\Windows\System32. In either case it's not an issue with the Cloud SDK installer.
If you still have 'find.exe' in C:\Windows\System32, you can check your PATH variable and add 'C:\Windows\System32' back to it if it's not included.
Source: https://issuetracker.google.com/issues/35907845
I got the same error when installing it yesterday and I tried a different sets of solutions for this.
I created a find.exe path in my PATH variable
I also created a CLOUDSDK_PYTHON path in my environment variable
I tried uninstalling Python (2.7.14, I think) and re-installing it.
I redirected the path where the SDK is going to be installed to. The default path was C:\Program Files (x86)\Google\Cloud SDK\. I just removed the space on CloudSDK and it installed right after.
Hope this helps.
It is a space issue in Cloud SDK folder/directory path, google cloud sdk installer adds default path as
C:\{USER_DIR}\Google\Cloud SDK
So remove space between Cloud and SDK or change path to different folder without spaces, it should work fine.

Install Play Framework Windows 8.1

I'm trying to install the Play! Framework on Windows 8.1, I added path and I've tried to run 'play' command, and the output is:
Error during sbt execution: Could not find configuration file
'file:////c:/Program%20Files%20(x86)/play-2.2.2/framework/sbt/play.boot.properties'.
Searched:
file:/C:/Program%20Files%20(x86)/play-2.2.2/
file:/C:/Users/Username/
file:/C:/Program%20Files%20(x86)/play-2.2.2/framework/sbt/
What can I do?
You should try to install play in a directory that doesn't include spaces (= not Program Files). This can be the cause of your problem.
copy the play framework folder to c:\ it worked for me

Resources