Error when trying to install
Closed this issue · 12 comments
on macos:
zef install Raku::Pod::Render
===> Searching for: Raku::Pod::Render
===> Searching for missing dependencies: Cro::WebApp::Template::Repository::Build, Cro::WebApp, LibCurl, Test::Deeply::Relaxed, PrettyDump
===> Failed to find dependencies: Cro::WebApp::Template::Repository::Build
Failed to resolve some missing dependencies (use e.g. --exclude="Cro::WebApp::Template::Repository::Build" to skip)
Not sure why this is happening, but zef info
shows the following for the module:
<snip>
Identity: Raku::Pod::Render:ver<3.7.3>:auth<github:finanalyst>
<snip>
Source-url: https://raw.githubusercontent.com/raku/REA/main/archive/R/Raku%3A%3APod%3A%3ARender/Raku%3A%3APod%3A%3ARender%3Aver%3C3.7.3%3E%3Aauth%3Cgithub%3Afinanalyst%3E.tar.gz
<snip>
That looks like it goes to 3.7.3 tarball.
I do not know what is happening either.
The current version of Raku::Pod::Render is 3.7.5. Running on Ubuntu, I installed 3.7.5 with no problem.
Perhaps try running zef info Raku::Pod::Render
to see which versions are available.
If you already have a version of Raku::Pod::Render installed, then try zef upgrade Raku::Pod::Render
to get the updated version.
The info above is from zef info as indicated.
Here is the output from zef info
from a totally different machine:
➜ raku-pod-render git:(master) zef info Raku::Pod::Render
===> Updating fez mirror: https://360.zef.pm/
===> Updated fez mirror: https://360.zef.pm/
===> Updating rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
===> Updated rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
- Info for: Raku::Pod::Render
- Identity: Raku::Pod::Render:ver<3.7.3>:auth<github:finanalyst>
- Recommended By: Zef::Repository::Ecosystems<rea>
- Installed: No
Description: A generic Pod6 Renderer with custom Pod::Blocks, FormatCodes for one or more files using templates, provides HTML and MarkDown.
License: Artistic-2.0
Source-url: https://raw.githubusercontent.com/raku/REA/main/archive/R/Raku%3A%3APod%3A%3ARender/Raku%3A%3APod%3A%3ARender%3Aver%3C3.7.3%3E%3Aauth%3Cgithub%3Afinanalyst%3E.tar.gz
Provides: 12 modules
Support:
# email: richard@hainsworth.wales
# source: https://github.com/finanalyst/raku-pod-render.git
# bugtracker: https://github.com/finanalyst/raku-pod-render/issues
And this is from a third machine, docker image running Debian. There seems to be definitely something wrong with how this package is tracked in the ecosystem:
root@0cc618016f92:~/raku# zef info Raku::Pod::Render
===> Updating fez mirror: https://360.zef.pm/
===> Updated fez mirror: https://360.zef.pm/
===> Updating rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
===> Updated rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
- Info for: Raku::Pod::Render
- Identity: Raku::Pod::Render:ver<3.7.3>:auth<github:finanalyst>
- Recommended By: Zef::Repository::Ecosystems<rea>
- Installed: No
Description: A generic Pod6 Renderer with custom Pod::Blocks, FormatCodes for one or more files using templates, provides HTML and MarkDown.
License: Artistic-2.0
Source-url: https://raw.githubusercontent.com/raku/REA/main/archive/R/Raku%3A%3APod%3A%3ARender/Raku%3A%3APod%3A%3ARender%3Aver%3C3.7.3%3E%3Aauth%3Cgithub%3Afinanalyst%3E.tar.gz
Provides: 12 modules
Support:
# source: https://github.com/finanalyst/raku-pod-render.git
# bugtracker: https://github.com/finanalyst/raku-pod-render/issues
# email: richard@hainsworth.wales
Depends: 14 items
Note that neither of these machines ever had Raku::Pod::Render installed and doing zef update
doesn't do anything.
Also, running `zef install 'Raku::Pod::Render:ver<3.7.5>:authgithub:finanalyst' yields:
===> Searching for: Raku::Pod::Render:ver<3.7.5>:auth<github:finanalyst>
No candidates found matching identity: Raku::Pod::Render:ver<3.7.5>:auth<github:finanalyst>
```
See also https://raw.githubusercontent.com/Raku/REA/main/META.json
Raku::Pod::Render:ver<3.7.3>
is there but no sign of Raku::Pod::Render:ver<3.7.5>
I think I found your problem. See https://modules.raku.org/update.log
There is an entry there for your module:
[2022-06-29 13:28:48.49943] [4375] [info] Processing dist 1764 of 2001
[2022-06-29 13:28:48.50112] [4375] [info] Using ModulesPerl6::DbBuilder::Dist::Source::GitHub to load https://raw.githubusercontent.com/finanalyst/raku-pod-render/master/META6.json
[2022-06-29 13:28:48.50122] [4375] [info] Fetching distro info and commits
[2022-06-29 13:28:48.50128] [4375] [info] Downloading META file from https://raw.githubusercontent.com/finanalyst/raku-pod-render/master/META6.json
Mojo::Transaction::success is DEPRECATED in favor of Mojo::Transaction::result and Mojo::Transaction::error at lib/ModulesPerl6/DbBuilder/Dist/Source.pm line 59.
[2022-06-29 13:28:48.68010] [4375] [info] Parsing META file
[2022-06-29 13:28:48.88985] [4375] [error] Error accessing GitHub API. HTTP Code: 401
[2022-06-29 13:28:48.89053] [4375] [error] Received fatal error while building https://raw.githubusercontent.com/finanalyst/raku-pod-render/master/META6.json: Failed to build dist
Looks like the ecosystem can't access GitHub API.
The problem seems to be with the way the p6c ecosystem is being updated, and so the way zef manages new updates. I had the same problem with continuous testing.
I do not think the problem is as you described.
Apparently, the problem can be solved locally by ensuring the p6c is enabled in the zef configuration.
However, I will change move all my modules to the fez system.
I'll do this for Raku::Pod::Render now, so I'd appreciate you trying to test this in about an hour from now (hopefully enough time to get the new version indexed).
uploading the module to the fez system has solved this problem for me. A generic installation of zef now will find the latest version of Raku::Pod::Render. (v3.7.6)
Please try again and let me know if you can install.
This is more than likely an error with the ecosystem, not any local configuration problem. All modules are getting the Error accessing GitHub API. HTTP Code: 401
error. See https://modules.raku.org/update.log if you haven't already.
I was in chat with the author of zef and he didn't mention anything about configuring zef to work with pf6 and also seemed to think it was a larger ecosystem problem.
OK, yeah, your module looks good now:
zef info Raku::Pod::Render
===> Updating fez mirror: https://360.zef.pm/
===> Updated fez mirror: https://360.zef.pm/
===> Updating rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
===> Updated rea mirror: https://raw.githubusercontent.com/Raku/REA/main/META.json
- Info for: Raku::Pod::Render
- Identity: Raku::Pod::Render:ver<3.7.6>:auth<zef:finanalyst>
- Recommended By: Zef::Repository::Ecosystems<rea>
- Installed: No
Description: A generic Pod6 Renderer with custom Pod::Blocks, FormatCodes for one or more files using templates, provides HTML and MarkDown.
License: Artistic-2.0
Source-url: https://raw.githubusercontent.com/raku/REA/main/archive/R/Raku%3A%3APod%3A%3ARender/Raku%3A%3APod%3A%3ARender%3Aver%3C3.7.6%3E%3Aauth%3Czef%3Afinanalyst%3E.tar.gz
Provides: 12 modules
Support:
# email: richard@hainsworth.wales
# bugtracker: https://github.com/finanalyst/raku-pod-render/issues
# source: https://github.com/finanalyst/raku-pod-render.git