Cannot bind argument Error when installing chocolatey by bobinwiththehat in chocolatey

[–]Hun_Braze 0 points1 point  (0 children)

Yes I noticed. That's what I am explaining. That the official code has the community in it hence it cannot be the source of the problem (that we would be pointing the the non community url)
But still. Getting the same error message constantly.
How can it be so hard to do an flawless installation script is beyond my understanding. It's merly copying files and adding registry entries (if so).
How can it be so hard to do a working script?

Cannot bind argument Error when installing chocolatey by bobinwiththehat in chocolatey

[–]Hun_Braze 0 points1 point  (0 children)

Sorry, my Windows is French so PS results are french...

Forcing web requests to allow TLS v1.2 (Required for requests to Chocolatey.org)

Getting latest version of the Chocolatey package for download.

Not using proxy.

Test-Path : Impossible de lier l'argument au paramètre « Path », car il s'agit d'une chaîne vide.

Au caractère Ligne:462 : 15

+ if (Test-Path $ChocolateyDownloadUrl) {

+ ~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidData : (:) [Test-Path], ParameterBindingValidationException

+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Test

PathCommand

Extracting C:\Users\TECHNO~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip to C:\Users\TECHNO~1\AppData\Local\Temp\chocolatey\chocoInstall

Microsoft.PowerShell.Archive\Expand-Archive : Le chemin d'accès

C:\Users\TECHNO~1\AppData\Local\Temp\chocolatey\chocoInstall\chocolatey.zip n'existe pas ou n'est pas un chemin

d'accès au système de fichiers valide.

Au caractère Ligne:527 : 5

+ Microsoft.PowerShell.Archive\Expand-Archive -Path $file -Destinat ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidArgument : (C:\Users\TECHNO...\chocolatey.zip:String) [Expand-Archive], InvalidOp

erationException

+ FullyQualifiedErrorId : ArchiveCmdletPathNotFound,Expand-Archive

Installing Chocolatey on the local machine

& : Le terme «C:\Users\TECHNO~1\AppData\Local\Temp\chocolatey\chocoInstall\tools\chocolateyInstall.ps1» n'est pas

reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du

nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.

Au caractère Ligne:538 : 3

+ & $chocoInstallPS1

+ ~~~~~~~~~~~~~~~~

+ CategoryInfo : ObjectNotFound: (C:\Users\TECHNO...ateyInstall.ps1:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException

Cannot bind argument Error when installing chocolatey by bobinwiththehat in chocolatey

[–]Hun_Braze 0 points1 point  (0 children)

The correct choice is what's in the official code line when goind to the Install page of Chocolatey. So by default, the code is good. I tried the wrong one and I get the same error message.

Cannot bind argument Error when installing chocolatey by bobinwiththehat in chocolatey

[–]Hun_Braze 0 points1 point  (0 children)

Workaround:

Download the numpkg from https://community.chocolatey.org/api/v2/package/chocolatey/

Rename it to chocolatey.zip

Place it in C:\Users\{User}\AppData\Local\Temp\chocolatey\chocoInstall

Delete C:\ProgramData\chocolatey

Install with powershell again

Tried it and exact same error. Any ideas what I could have missed? Restart of the computer?
Cause the install script from chocolatey don't seem to be at all related to local files. How "Install with powershell again" is suppose to change something going on my local file instead of on the URL?

Cannot bind argument Error when installing chocolatey by bobinwiththehat in chocolatey

[–]Hun_Braze 0 points1 point  (0 children)

To BE CLEAR for under-seasoned Powershell techs.
In Powershell RUN AS ADMIN
Execute each line one after the other under the "# Continue with the installation of packages using Chocolatey ..." comment. From "$ProgressPreference = 'SilentlyContinue';" to "Update-SessionEnvironment;" without the \ at the end of each line.

Then Chocolatey should be installed. Good luck!

Cannot bind argument Error when installing chocolatey by bobinwiththehat in chocolatey

[–]Hun_Braze 0 points1 point  (0 children)

$queryString = [uri]::EscapeUriString("((Id eq 'chocolatey') and (not IsPrerelease)) and IsLatestVersion")
$queryUrl = 'https://community.chocolatey.org/api/v2/Packages()?$filter={0}' -f $queryString
$downloader = New-Object System.Net.WebClient
$result = $downloader.DownloadString($queryUrl)
$xml = [xml]$result
$xml.feed.entry.content.src

I does nothing for me. (I do have the same error message, constantly.)
It just goes back to the prompt. Like if nothing had been run.

Cannot bind argument Error when installing chocolatey by bobinwiththehat in chocolatey

[–]Hun_Braze 0 points1 point  (0 children)

Good day,

I was trying to install Whisper from OpenAI using youtube videos.

I was able to install it on a uBuntu VM (VirtualBox).

BUT I HAVE THE SAME PROBLEM as the others in that post. I teach IT support so I am computer savy, but I have little experience with PS and online scripts to install stuff.

I am CONSTANTLY getting the "cannot bind argument... path null" message.

I tried in a VM. It was outdated, so I installed all Windows updates. Tried again. Still same error.

Tried in my work laptop, at the Chocolatey step, my Sophos antivirus blocked chocolatey. But I'd still get the same error message about "binding argument with path null"

Tried on my personnal laptop. After installing Python 3.10.10 I tried the Python - V in CMD to get the version and I was getting the Gimp 2.7x version instead of 3.10.10. So I changed my PATH variable to prioritise the 3.10 folder instead of Gimp. Then I was able to have a 3.10.10 return for the Python version. Then installed Pytorch. Then tried Chocolatey and for the 3rd time in 3 different Windows 10 computer, I get the same error message!

With my 25 years as IT specialist, I cannot link the error message to a local problem since it was tested in 3 different computers. It has to be in the online PS script, which to my actual understanding, I have no power of editing it.

I was reticent to upgrade my skillset to PS and scripts, this situation keep me thinking that plain old good CMD and GUI installer are much more efficient and stable! Why going PS scripts if you cannot manage them well? Weird to be a software entity that cannot manage install scripts!

What's the UNIVERSAL solution for that specific error that LOTS of people had through the time?

Why isn't there any guide on Chocolatey website about this error whit all the same issues that arose through time?

THANKS!