Helm fails on Windows 10 - windows

I installed Helm (the package manager for Kubernetes) on Windows 10 pro through Chocolatey.
When I am trying to execute helm command on the command prompt (running as Administrator), I am seeing a prompt saying "this app can't run on pc". Closing the prompt is showing "Access Denied" on the command prompt.
I also tried downloading the zip from Helm's website and create a System environment variable under Path.
Any help is much appreciated.

Adding the resolution here.
I am able to resolve it by deleting the helm folder under C:\program files and reinstalling helm using Scoop. Chocolatey may also help here to install helm.
P.S. Scoop and Chocolatey are package managers for Windows. Just like Homebrew is for macOS

Related

Visual Studio Code installation with WSL 2

I have WSL 2 installed and running well and I am trying to install VSC to debug my code.
I already use (and have installed) Visual Studio Code on Windows 10.
The first thing I did was to install the .deb package provided on VSC (sudo apt install ./code_1.46.1-1592428892_amd64.deb. Everything went fine. When running code . I was prompted with
To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the 'Visual Studio Code' command in a WSL terminal just as you would in a normal command prompt.
I proceeded to uninstall VSC from my Ubuntu with sudo apt-get purge code and now I am a bit stuck.
On Windows side I installed the Remote - WSL extension and Remote Development on the existing VSC installation, but now I cannot launch it from WSL.
Any workaround?
Later edit : I know it might sound dumb, but it works by just closing all instances of WSL bash and starting all over again. Now I just have the curiosity of what did I install and what did I uninstall? And why is this non persistant?
when you run code . from inside WSL it should install a small vs code server in your home directory (~/.vscode-server) and then lunch vs code. If that doesn't work post the error message.

PyCharm: Anaconda installation is not found

I had Anaconda on Windows 10 installed in C:\ProgramData\Anaconda3 before using PyCharm. Now PyCharm displays: "Anaconda installation is not found" when I try using a conda env.
I also added Anaconda to PATH.
Is there a way to show PyCharm where Anaconda is installed?
There is an open bug, currently PyCharm and IDEA both seem to detect Conda installation only from %HOMEPATH%/anaconda. https://youtrack.jetbrains.com/issue/PY-26923
The easiest workaround is to create a symlink to $HOME/.anaconda
mklink /D %HOMEDRIVE%%HOMEPATH%\anaconda C:\ProgramData\Anaconda3
Note that C:\ProgramData\Anaconda3 should be replaced with the path to your Anconda installation. If you selected to installed it for "Just Me" instead of "All Users", your default location will be
C:\Users\<your_username>\AppData\Local\Continuum\anaconda3
UPDATE: This issue is now fixed in IDEA and PyCharm since version 2018.1. You can specify a custom path under Python Interpreter or SDK settings in Conda Environment section.
In #Ahti Kitsik's answer above, the following line did not work, and resulted in a an error:
mklink /D %HOMEPATH%\anaconda C:\ProgramData\Anaconda3
Because of a different install location, the following worked for me:
mklink /D "%HOMEPATH%\anaconda" "C:\Dev\Anaconda3"
"C:\Dev\Anaconda3" should be the anaconda installation folder on your PC.
Also, be sure to run the cmd with administrator privilege, otherwise you will get a permission error when trying to create the symlink.
You can't find anaconda python in your console at first.Click Configure Interpreters in blue.
Click the little gear under reset in blue(right + up corner), and chose 'add local'.
point to your python in anaconda
Here you are
I fixed this by:
Uninstalling the Anaconda that was installed with Visual Studio 2017. I did this by unticking the option within the VS2017 installer.
Installing Anaconda after downloading the official installer.
Rebooting my PC.
My theory is that VS2017 installs Anaconda in a non-default location, and PyCharm cannot find it. The Anaconda installer states that VS2017 should still work fine with Python, even after this change.
I faced the same issue on Ubuntu 16.04 where I had Anaconda installed under ~/.local/opt/anaconda3.
Creating a symlink under ~/anaconda3 solved the issue for me.
mklink /D %HOMEDRIVE%%HOMEPATH%\anaconda "C:\Program Files\Anaconda3"
I had a similar problem running linux (Ubuntu) because I installed anaconda to a custom location. Creating a symbolic link to anaconda in home directory solved the problem.
You can run the following command to do that:
ln -s /_my_custom_path_to_/anaconda3/ /home/_my_user_name_/anaconda3
* keep in mind _my_custom_path_to_ and _my_user_name_/ are your custom path to anaconda and user name correspondingly

Previously Installed Anaconda Site Packages Not Working

I am running into an issue where default site packages are no longer working in a jupyter notebook. However, when I send a script to the computer via windows cmd to install pip "package name", the package works again. Site Packages were working properly prior to yesterday. This is what changed:
Yesterday, I ran a script via windows cmd to install a few packages and to activate a few widget extension in the jupyter notebook. Because I ran the script within windows cmd, could windows shell be taking precedence over the anaconda shell?
Troubleshooting: For the default packages that were note working, I reran the install pip "package name" in a windows shell and the package started working again, along with the new packages I installed yesterday with windows cmd.
When I look in c:\Anaconda3\Lib\site-packages the modified date for the "reinstalled" packages shows the original date that I installed the software.
This software is very new to me and I am still trying to learn the logic of it along with the process. Any help or recommendations would be greatly appreciated!
OS: Windows 7 64-bit
Software: Python 3.5.2 (Anaconda3 4.1.1 64-Bit)

When installing Appcelerator CLI, appc setup command throws error

I am trying to install the appcelerator cli but keep running into an issue that I haven't been able to find a fix for.
When running the "appc setup" command I get the error "cannot find module 'C:\cyclic.js'"
link to full screen capture of error
I am running windows 7 64 bit and am following the directions here https://web.appcelerator.com/product/cli
*Edit: If you are facing this same issue. Uninstall Node, and Appcelerator. Then make sure you install JDK 32 Bit (if using windows). DELETE the NPM and Appcelerator folders in your C:\Users[username]\AppData\Roaming\ directory. Then reinstall Node (I had success with 32 bit) and the Appcelerator CLI. That worked for me.
Hello make sure you have node.js and JDK installed and environment variable set properly. For reference http://docs.appcelerator.com/platform/latest/#!/guide/Installation_and_Configuration. Now, As you already tried "appc setup". You need to delete all cache of previous installation try and try reinstalling again. Run,
sudo rm -rf ~/.appcelerator
sudo npm uninstall -g appcelerator
appc use latest
appc setup
To setup the Appcelerator CLI, install Node.js, install the appcelerator module using the NPM CLI, then run the appc setup command to download and setup the latest CLI package. You can follow the guide here. Also you can check this link, if you experience an issue installing any of the npm packages.
If still not solved, I suggest you to start from scratch. I see you work on Windows, true?:
Remove install of NodeJS from "Uninstall programms" of control pannel
Remove install of Appcelerator from "Uninstall programms" of control pannel
Remove any folder from C:\Program Files or your user's folder referencing "node" "npm" or similar.
Go to your user's folder and remove any .app or .appcelerator folder (could be hidden, so look it well)
Don't forget to look in C:\Users\[username]\AppData\Roaming (probably will be hidden)
Now you have only Java JDK installed (I'm using 1.8).
Proceed with a new appcelerator.EXE install, it must detect that you don't have Node and will download by itself the proper Node version.

How to restore shortcuts to Anaconda after upgrading to Windows 10

Recently I upgraded from Windows 8.1 to Windows 10. Although Windows said it didn't change anything to my files and folders, this was not the case. Only one of the shortcuts in my Anaconda folder in the start menu remained. This was the Anaconda Prompt so I thought I just run the following commands to fix my links:
conda update conda -f
conda update anaconda -f
Although this returned a few links, it did not restore everything which means I was stuck with a dysfunctional installation of Anaconda.
The following worked for me (albeit on Windows 7):
Open a command prompt as administrator
Execute "C:\Anaconda3\pythonw.exe" "C:\Anaconda3\Lib\_nsis.py" mkmenus
I use Miniconda. When I updated with
conda update conda
there were these following lines along with the list of packages to be updated:
The following packages will be REMOVED:
console_shorcut-0.1.1-3
powershell_shortcut-0.0.1-2
I saw those lines after the update and the shortcut to the command window was gone. So I restored the Anaconda Prompt command window shortcut with
conda install console_shortcut
mkmenus did not work for me but the following worked on Windows 10 32-bit, Miniconda3.
Open command prompt (admin privileges not required).
Navigate to your Miniconda\Scripts directory. Replace kk with your username.
cd "C:\Users\kk\Miniconda3\Scripts"
Run Activate.bat
activate.bat
Install console_shortcut.
conda install -c anaconda console_shortcut
When using Miniconda installed for the local user:
C:\Users\<username>\AppData\Local\Continuum\Miniconda3\pythonw.exe C:\Users\<username>\AppData\Local\Continuum\Miniconda3\Lib\_nsis.py mkmenus
This was also on Windows 7.
To solve this I did the following:
Remove Anaconda with "add or remove program" link
Reinstall Anaconda with the latest installer link
After this everything is restored and since the uninstall program does not remove user files your environments and settings are also still there. If for some reason you stored projects in the Anaconda folder, this folder will be removed so watch out for that ;)

Resources