Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to install #11

Closed
sdondley opened this issue Jun 28, 2022 · 12 comments
Closed

Error when trying to install #11

sdondley opened this issue Jun 28, 2022 · 12 comments

Comments

@sdondley
Copy link

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)
@sdondley
Copy link
Author

sdondley commented Jun 28, 2022

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.

@finanalyst
Copy link
Owner

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.

@sdondley
Copy link
Author

The info above is from zef info as indicated.

@sdondley
Copy link
Author

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

@sdondley
Copy link
Author

sdondley commented Jun 29, 2022

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.

@sdondley
Copy link
Author

sdondley commented Jun 29, 2022

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>
```

@sdondley
Copy link
Author

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>

@sdondley
Copy link
Author

sdondley commented Jun 29, 2022

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.

@finanalyst
Copy link
Owner

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).

@finanalyst finanalyst reopened this Jun 29, 2022
@finanalyst
Copy link
Owner

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.

@sdondley
Copy link
Author

sdondley commented Jun 29, 2022

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.

@sdondley
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants