Having an issue installing IBM Cloud CLI on Windows 10 - ibm-cloud

I am following the instructions to install IBM Cloud CLI on a Windows 10 virtual machine found here https://console.bluemix.net/docs/cli/index.html#overview and I am coming across this error on Step 1. I am unsure why it is looking for a config.json file on my H drive and the ibm cloud install fails because of the error. It also states "ibmcloud already installed" probably due to multiple attempts to install but they all fail. I try to confirm the installation with "Ibmcloud dev help" after a reboot of the machine but get the same error.
Has anyone come across this?
Steps I am taking:
I am using a Windows 10 Enterprise virtual machine and I am an administrator. I also ran PowerShell as an administrator.
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
PS C:\> Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer
')
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
[main] --==[ IBM Cloud Developer Tools - Installer for Windows, v1.2.0 ]==--
[install] Starting Installation/Update...
[install_deps] Checking for external dependency: git
[install_deps] Checking for external dependency: docker
[install_deps] Installing/updating external dependency: docker
[install_deps] Install/update completed for: docker
[install_deps] Checking for external dependency: kubectl
[install_deps] Checking for external dependency: helm
ibmcloud already installed
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_bx] IBM Cloud CLI version:
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Installing/updating IBM Cloud CLI plugins used by IDT...
[install_plugins] Checking status of plugin: Cloud-Functions
[install_plugins] Installing plugin 'Cloud-Functions'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: container-registry
[install_plugins] Installing plugin 'container-registry'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: container-service
[install_plugins] Installing plugin 'container-service'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: dev
[install_plugins] Installing plugin 'dev'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Checking status of plugin: sdk-gen
[install_plugins] Installing plugin 'sdk-gen'
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Running 'ibmcloud plugin list'...
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.
[install_plugins] Finished installing/updating plugins
Creating 'idt' script to act as shortcut to 'bx dev' command...
Out-File : Illegal characters in path.
At line:325 char:29
+ Write-Output $idt_batch | Out-File -Encoding ascii $idt_command
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], ArgumentException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
[install] Install finished.
[quit] --==[ Finished. Total time: 00:00:04 seconds ]==--
A system restart is required. Would you like to restart now (y/N)?:y
I reboot and then “Verify the installation”
Ibmcloud dev help
FAILED
Configuration error: open H:\.bluemix\plugins\config.json: The system cannot find the path specified.

I had the same problem, insanely annoying!
Just run:
C:\Users\MyUser> $env:HOMEDRIVE="c:"
C:\Users\MyUser> $env:HOMEPATH="\Users\MyUser"
The run the IBM commands. You have to run the setting in each new console!

I had this problem and was able to fix it by setting env variable IBMCLOUD_HOME to the directory I installed ibm cloud cli to.

Check the user home directory of your Win10 VM. IBM cloud CLI keeps some configuration files under ~/.bluemix.
From the error message, H:\ was treated as the user home, which seems abnormal since normally user home is not the root folder.

Related

Load JAGS to cluster

I would like to install jagsUI on the cluster that I am using. However, this requires me to load JAGS4.3.0 module which I have installed on my computer. This is the error I get when installing jagsUI:
During startup - Warning message:
Setting LC_CTYPE failed, using "C"
* installing *source* package 'rjags' ...
** package 'rjags' successfully unpacked and MD5 sums checked
** using non-staged installation
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: pkg-config file for jags 4 unavailable
configure: WARNING: Consider adding the directory containing `jags.pc`
configure: WARNING: to the PKG_CONFIG_PATH environment variable
configure: Attempting legacy configuration of rjags
checking for jags... no
configure: error: "automatic detection of JAGS failed. Please use pkg-config to locate the JAGS library. See the INSTALL file for details."
ERROR: configuration failed for package 'rjags'
* removing '/home/cltane002/Rlibs/rjags'
During startup - Warning message:
Setting LC_CTYPE failed, using "C"
ERROR: dependency 'rjags' is not available for package 'jagsUI'
* removing '/home/cltane002/Rlibs/jagsUI'
The downloaded source packages are in
'/tmp/RtmpyIUv3r/downloaded_packages'
Warning messages:
1: In install.packages("jagsUI", "~/Rlibs", "http://ftp.ussg.iu.edu/CRAN") :
installation of package 'rjags' had non-zero exit status
2: In install.packages("jagsUI", "~/Rlibs", "http://ftp.ussg.iu.edu/CRAN") :
installation of package 'jagsUI' had non-zero exit status
I have checked on my terminal whether jags has been installed. The module file for jags is not showing when I do module in the terminal connected to the cluster. I do I load the JAGS software to the cluster?
I would check the documentation page of the hpc cluster. The cluster I used before from my university have already compiled and installed the JAGS module on the cluster. All I needed to do is simply load the module. Usually, the hpc documentation website has a page on what modules are available and also example scripts to load and run them.

I tried installing yarn package using powershell. First I typed npm install -g yarn then I typed yarn install. but I got the following error

I tried opening Powershell with Administrative rights and typed
set-executionpolicy remote signed
then tried this again and I still am getting below error.
yarn install
yarn install v1.22.11
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning react-scripts > webpack-dev-server > sockjs > uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/#material-ui/icons/-/icons-4.9.1.tgz: ESOCKETTIMEDOUT".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\Win8\\Documents\\Masters Software Engineering\\upstac-ui\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
This worked for me, I made a file and named it
.yarnrc
and put this inside of it
network-timeout 500000
Have a look:
https://github.com/mui/material-ui/issues/12432

Jupyter Labs: "RuntimeError: npm dependencies failed to install" When Building

I'm new to using Anaconda and recently installed jupyter labs on my computer. However, any time I try to build on my local Jupyter Labs instance I get the following error:
Code run in jupyter labs terminal:
PS C:\Users\briakeit> jupyter lab build
Output:
[LabBuildApp] JupyterLab 1.2.5
[LabBuildApp] Building in C:\Users\briakeit\AnacondaFiles\share\jupyter\lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: npm dependencies failed to install
See the log file for details: C:\Users\briakeit\AppData\Local\Temp\jupyterlab-debug-0b5ejkfm.log
Log file:
[LabBuildApp] Building in C:\Users\briakeit\AnacondaFiles\share\jupyter\lab
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Node v13.7.0
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node C:\Users\briakeit\AnacondaFiles\lib\site-packages\jupyterlab\staging\yarn.js install --non-interactive
[LabBuildApp] yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/#jupyterlab/application-extension/-/application-extension-1.2.1.tgz: read ECONNRESET".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\briakeit\\AnacondaFiles\\share\\jupyter\\lab\\staging\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[LabBuildApp] npm dependencies failed to install
[LabBuildApp] Traceback (most recent call last):
[LabBuildApp] File "C:\Users\briakeit\AnacondaFiles\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
yield
[LabBuildApp] File "C:\Users\briakeit\AnacondaFiles\lib\site-packages\jupyterlab\labapp.py", line 98, in start
command=command, app_options=app_options)
[LabBuildApp] File "C:\Users\briakeit\AnacondaFiles\lib\site-packages\jupyterlab\commands.py", line 459, in build
command=command, clean_staging=clean_staging)
[LabBuildApp] File "C:\Users\briakeit\AnacondaFiles\lib\site-packages\jupyterlab\commands.py", line 660, in build
raise RuntimeError(msg)
[LabBuildApp] RuntimeError: npm dependencies failed to install
[LabBuildApp] Exiting application: JupyterLab
This happens anytime I try using this command (e.g. after installing anew extension). I have npm v6.4.1, nodejs v10.13.0, and yarn v1.22.0 installed in this environment according to conda. I'm running Jupyter lab 1.2.6.
Any feedback, suggestions or help would be greatly appreciated.
I believe I have found the problem. I consult for a company and I was using the computer they provided me (I'm an admin on the computer). When I followed the same steps on my personal computer, it worked with no issues.
I then switched over to a different, more open network at work and the build was able to complete without errors. Clearly there is something in the firewall or something that was preventing me from doing the build.
Not sure if you've fixed it, if not you may try the solutions below.
info There appears to be trouble with your network connection. Retrying...
This is a yarn related error that seems to suggest something wrong with your network. This can happen if the yarn was trying to connect via a proxy. You can try the following if this is the case.
npm config rm proxy
npm config rm https-proxy
It can also happen if your network is too slow. You can try increasing Yarn timeout.
yarn add <yourPackage> --network-timeout 100000
Source: https://github.com/yarnpkg/yarn/issues/4890
As indicated above this might be due to the fact that your company forces you to download everything over the proxy. Yarn (which is used to install npm) does not know your proxy details by default, so you need to create a .yarnrc file in your home directory (usually C:\Users\Username where you need to fill in your own username in windows, or simply ~/ on ubuntu).
In that file you need to specify your proxy settings as follows:
https-proxy "http://username:password#proxy.address.com:port"
strict-ssl false
Note no = sign in there and quotes around the address.
Then you'll be able to download the packages through your proxy.
I had the same issue. I have tried different versions of nodejs with different environments but couldn't solve the issue. I have checked the log files and found out that there was a problem with yarn cache so clearing the yarn cache solved my problem.
From the logs you can see:
info There appears to be trouble with your network connection.
Retrying...
I had the same issue, and disabling the firewall temporarily helped me to sort out part of the the issue, but then I finally got it with:
jupyter lab build --dev-build=False --minimize=False
I had a similar issue associated with Norton notification blocking jupyter.exe and some other programs while running 'jupyter lab build'. I resolved this issue by 'Turn off or turn on Data Protector' in Norton or disabling Auto-protect and smart-firewall each time running 'jupyter lab build'.
I faced similar issues and here are the solutions that works for me:
Installed latest version of nodejs and npm.
Manually installed latest version of yarn (download its msi installer instead of via cmd--> npm install --global yarn)
remove npm proxy via cmd:
npm config rm proxy
npm config rm https-proxy
Restarting the laptop
jupyter lab build --dev-build=False --minimize=False
Voila, it works flawlessly.

Error to get local fabric runtime to work

I am trying out the IBM BLockchain Extension for VSCode and going through the tutorial. I am able to create a smart contract project, add a workplace, and create a smart contract package. At the local fabric ops part - When I click start local fabric runtime I get an error:
[5/19/2019 10:17:44 AM] [INFO] startFabricRuntime [5/19/2019 10:17:44
AM] [INFO] 'generate.cmd' is not recognized as an internal or external
command, [5/19/2019 10:17:44 AM] [INFO] operable program or batch
file.
I am using:
VSCode
Windows 10 Enterprise
Docker Desktop for Windows
Uninstall ibm blockchain extension from extension
Delete runtime folder from vscode directory.
You can find vscode directory in home directory
path to runtime package
$ cd .fabric-vscode
$ ls
local_fabric_wallet packages runtime
$ rm packages
Reinstall the ibm blockchain extension in vscode

Installing VMware Workstation issue (Failed to load module "canberra-gtk-module")

all! Just trying to install VMware Workstation 10 at Kali linux and get the following error:
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory
where troubleshooting should be started?
From https://communities.vmware.com/thread/453282
As for the GTK errors re: canberra-gtk-module, they're innocuous. You may ignore them.
I got the same Gtk-message, but the installation seems to be still proceeding.