pyrevitlabs/pyRevit

Chocolatey package install gets 404 Error

Closed this issue ยท 10 comments


๐Ÿž Describe the bug

choco install pyrevit gets a 404 error, checking the chocolatey source shows the URL is different than the GitHub Release URL

Github Release URL: https://github.com/eirannejad/pyRevit/releases/download/v4.8.14.24016%2B1909/pyRevit_CLI_4.8.14.24016_admin_signed.exe
Chocolatey Package URL: https://github.com/eirannejad/pyRevit/releases/download/v4.8.14.24016/pyRevit_CLI_4.8.14.24016_admin_signed.exe

Hi @DailenG, thanks for bringing this to our attention.

I've tracked down the problem to this lines:

https://github.com/eirannejad/pyRevit/blob/6f72bb9b3b5389d281a2ad1eba2995e94be32d9b/dev/_release.py#L283-L287

Since the rest of the pipeline uses the pyrevit build version and not the installer version, install argument should be False.

@eirannejad can you please fix the release\choco\tools\chocolateyinstall.ps1 to add the +1909 and push it manually?

Also, after some git blaming, I think that the chocolatey package is broken since version 4.8.10 or 4.8.11!

@sanzoghenzo merged!
Nice!

Do you still need Ehsan to edit the PS1 script, or can we close this issue?

We need the manual intervention to fix the currently released chocolatey package

https://github.com/eirannejad/pyRevit/blob/6d7db7ab3b08a3d9790454ea87334da07afd3d16/release/choco/tools/chocolateyinstall.ps1#L5

Like this, @sanzoghenzo ?
$url64 = 'https://github.com/eirannejad/pyRevit/releases/download/v4.8.14.24016+1909/pyRevit_CLI_4.8.14.24016_admin_signed.exe'

Which branch?

It has to be done manually on a machine with the chocolatey token available, because the ci pipeline is already set to publish the next version. So I suppose only Ehsan can do it

  • Replace current choco package with one that has correct url

"๐Ÿ‘‹ Hi there! It looks like there hasn't been any activity on this issue for the past 60 days. We understand that things can get busy.
Just a friendly reminder that this issue is scheduled to be automatically closed in 14 days if there's no further activity.
If you still need assistance or have additional information to share, please feel free to comment, and we'll be happy to help! ๐Ÿš€
Thanks for your understanding!"

@sanzoghenzo
I now have the choco logins, if you want we can have a zoom session to get this fixed

Do we need to fix the old packages?
We already have 2 working versions (4.8.15 and 16) on chicolatey, I suppose that nobody would want to install the older versions... maybe we can just remove the old packages.

If you still want to replace the old package with a working one, and to get to the point of your request: honestly I didn't use chocolatey myself, so I have no clue other than reproduce the ci job step manually.

Do we need to fix the old packages?

you are right, we don't, I wen tthru the thread to quickly.
thks
I will close that one