duckduckgo / p5-app-duckpan

DuckDuckHack OpenSource Development Application
http://metacpan.org/module/App::DuckPAN
Other
53 stars 47 forks source link

installdeps / roadrunner fail: Couldn't find module #319

Closed boozook closed 8 years ago

boozook commented 8 years ago

Env:

Steps for reproduce:

  1. fork zeroclickinfo-goodies repo;
  2. pull & checkout it (in my case to "~/Developer/Projects/Duck/MyDuckHelloWorld");
  3. cd;
  4. create new via duckpan new MyDuckHelloWorld::Spice;
  5. duckpan -v installdeps
~/Developer/Projects/Duck/MyDuckHelloWorld > (6) duckpan -v installdeps
Found a dist.ini, suggesting a Dist::Zilla distribution
! Finding Dist::Zilla::Plugin::AnnounceRelease on cpanmetadb failed.
! Finding Dist::Zilla::Plugin::AnnounceRelease () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Dist::Zilla::Plugin::AnnounceRelease
! Finding Dist::Zilla::Plugin::AutoModuleShareDirs on cpanmetadb failed.
! Finding Dist::Zilla::Plugin::AutoModuleShareDirs () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Dist::Zilla::Plugin::AutoModuleShareDirs
! Finding Dist::Zilla::Plugin::BuildShareAssets on cpanmetadb failed.
! Finding Dist::Zilla::Plugin::BuildShareAssets () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Dist::Zilla::Plugin::BuildShareAssets
! Finding Dist::Zilla::Plugin::Git::Tag::IAChangelog on cpanmetadb failed.
! Finding Dist::Zilla::Plugin::Git::Tag::IAChangelog () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Dist::Zilla::Plugin::Git::Tag::IAChangelog
! Finding Dist::Zilla::Plugin::IAChangelog on cpanmetadb failed.
! Finding Dist::Zilla::Plugin::IAChangelog () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Dist::Zilla::Plugin::IAChangelog
[FATAL]  Failure on installation of modules!
[FATAL]  There are several possible explanations and fixes for this error:
[FATAL]  1. The download from CPAN was unsuccessful - Please restart this installer.
[FATAL]  2. Some other error occured - Please read the `build.log` mentioned in the errors and see if you can fix the problem yourself.
[FATAL]  If you are unable to solve the problem, please let us know by making a GitHub Issu
e in the DuckPAN Repo:
[FATAL]  https://github.com/duckduckgo/p5-app-duckpan/issues
[FATAL]  Make sure to attach the `build.log` file if it exists. Otherwise, copy/paste the o
utput you see.
~/Developer/Projects/Duck/MyDuckHelloWorld > (6) duckpan roadrunner
Found a dist.ini, suggesting a Dist::Zilla distribution
! Couldn't find module or a distribution Dist::Zilla::Plugin::AnnounceRelease
! Couldn't find module or a distribution Dist::Zilla::Plugin::AutoModuleShareDirs
! Couldn't find module or a distribution Dist::Zilla::Plugin::BuildShareAssets
! Couldn't find module or a distribution Dist::Zilla::Plugin::Git::Tag::IAChangelog
! Couldn't find module or a distribution Dist::Zilla::Plugin::IAChangelog
[FATAL]  Failure on installation of modules!
[FATAL]  There are several possible explanations and fixes for this error:
[FATAL]  1. The download from CPAN was unsuccessful - Please restart this installer.
[FATAL]  2. Some other error occured - Please read the `build.log` mentioned in the errors and see if you can fix the problem yourself.
[FATAL]  If you are unable to solve the problem, please let us know by making a GitHub Issue in the DuckPAN Repo:
[FATAL]  https://github.com/duckduckgo/p5-app-duckpan/issues
[FATAL]  Make sure to attach the `build.log` file if it exists. Otherwise, copy/paste the output you see.

But I have already installed all successful:

~/Developer/Projects/Duck/DuckPAN/dist > (7) perl install.pl

[WARNING] We don't support anything other than Linux, but you can try if you're
determined. Please consider getting some sort of Linux system, e.g. a virtual
machine with VMware or VirtualBox, or a cloud server at linode or amazon
(amazon has a free micro instance for a year). You can stop the installation
with Ctrl-C now if you don't want to try the install. If you're having a lot of
trouble getting duckpan to work with other operating systems, ask us on IRC at
#duckduckgo

Please wait 10 sec.: ..........

 ____             _    ____             _     ____
|  _ \ _   _  ___| | _|  _ \ _   _  ___| | __/ ___| ___
| | | | | | |/ __| |/ / | | | | | |/ __| |/ / |  _ / _ \
| |_| | |_| | (__|   <| |_| | |_| | (__|   <| |_| | (_) |
|____/ \__,_|\___|_|\_\____/ \__,_|\___|_|\_\\____|\___/
=========================================================

Found running local::lib...

Installing App::DuckPAN...

[WARNING] This may take a while :-)

Module::Finder is up to date. (v0.1.5)
Module::Extract::VERSION is up to date. (1.01)
namespace::autoclean is up to date. (0.28)
Moose is up to date. (2.1605)
Crypt::SSLeay is up to date. (0.72)
Starman is up to date. (0.4014)
App::DuckPAN is up to date. (0.203)

Installing DDG...

[WARNING] This may take a while :-)

[NOTICE] You already have latest version (0.167) of DDG

Checking other requirements ...

Emptying DuckPAN cache...
DuckPAN cache emptied
Checking for DuckPAN requirements...
Checking perl version... 
Checking for latest App::DuckPAN... 
installing DDG at /Users/fzzr/perl5/lib/perl5/App/DuckPAN.pm line 568.
Checking for latest DDG Perl package...
Checking for ssh...
Checking for git...
EVERYTHING OK! You can now go hacking! :)

============================================================

Read our other tutorials for the next steps.

~/Developer/Projects/Duck/DuckPAN/dist > (7) duckpan upgrade
Emptying DuckPAN cache...
DuckPAN cache emptied
[NOTICE] You already have latest version (0.203) of App::DuckPAN
[NOTICE] You already have latest version (0.167) of DDG

Sorry for the long listing.

boozook commented 8 years ago

Also if duckpan -e -v server:

Emptying DuckPAN cache...
DuckPAN cache emptied
Checking for DuckPAN requirements...
Checking perl version... 
v5.18.2
Checking for latest App::DuckPAN... 
App::DuckPAN version: 0.203
installing DDG at /Users/ak/perl5/lib/perl5/App/DuckPAN.pm line 568.
Checking for latest DDG Perl package...
DDG version: 0.167
Checking for ssh...
/usr/bin/ssh
Checking for git...
/usr/bin/git
Loading Instant Answers...
add_country_alias(): alias already in use: Laos
 at /System/Library/Perl/5.18/Locale/Codes/Country.pm line 72.
add_country_alias(): alias already in use: Russia
 at /System/Library/Perl/5.18/Locale/Codes/Country.pm line 72.
 - DDG::Goodie::ABC (Words)
 - DDG::Goodie::AltCalendars (Words)
...
...
Hostname is: https://duckduckgo.com
Checking asset cache...
[DDG Homepage] requesting from: https://duckduckgo.com/...
[FATAL]  [DDG Homepage]  request failed with response: 500 Can't verify SSL peers without knowing which Certificate Authorities to trust
boozook commented 8 years ago

And duckpan query work great.

moollaza commented 8 years ago

@fzzr- thanks for reporting this!

We need to update the docs...

The missing packages that aren't found on CPAN are DuckDuckGo Packages hosted on http://duckpan.org.

You need to run dzil listdeps | cpanm --mirror http://duckpan.org and those should install.

The SSL error is different and I'm not entirely sure of the fix. Judging by this it looks like install Mozilla::CA might help.

@zachthompson any ideas on the SSL?

boozook commented 8 years ago

Thank you very much!

boozook commented 8 years ago
~/Developer/Projects/Duck/Goodies > (7) duckpan installdeps 
Found a dist.ini, suggesting a Dist::Zilla distribution
Everything fine!
~/Developer/Projects/Duck/Goodies > (7) dzil listdeps | cpanm --mirror http://duckpan.org
warning: refname '1152' is ambiguous.
[IAChangelog] Failed to look up metadata for DDG::Goodie::GuitarChords at /Users/ak/perl5/lib/perl5/darwin-thread-multi-2level/Moose/Meta/Method/Delegation.pm line 110.
! Finding [IAChangelog] on cpanmetadb failed.
! Finding [IAChangelog] () on mirror http://duckpan.org failed.
! Couldn't find module or a distribution [IAChangelog]
! Finding Failed on cpanmetadb failed.
! Finding Failed () on mirror http://duckpan.org failed.
! Couldn't find module or a distribution Failed
--> Working on to
Fetching http://duckpan.org/authors/id/S/SP/SPROUT/Tie-Util-0.04.tar.gz ... OK
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
! Failed to unpack Tie-Util-0.04.tar.gz: no directory
! Failed to fetch distribution Tie-Util-0.04
! Finding look on cpanmetadb failed.
! Finding look () on mirror http://duckpan.org failed.
! Couldn't find module or a distribution look
! Finding up on cpanmetadb failed.
! Finding up () on mirror http://duckpan.org failed.
! Couldn't find module or a distribution up
! Finding metadata on cpanmetadb failed.
! Finding metadata () on mirror http://duckpan.org failed.
! Couldn't find module or a distribution metadata
skipping T/TI/TIMB/perl5.004_04.tar.gz
! Finding DDG::Goodie::GuitarChords on cpanmetadb failed.
--> Working on DDG::Goodie::GuitarChords
Fetching http://duckpan.org/authors/id/M/MG/MGA/DDG-GoodieBundle-OpenSourceDuckDuckGo-1137.tar.gz ... OK
Configuring DDG-GoodieBundle-OpenSourceDuckDuckGo-1137 ... OK
Version string '%s' contains invalid data; ignoring: '%s'1.52   at /Users/ak/Developer/Perl/perl5/perlbrew/bin/cpanm line 457, <$handle> line 14.
==> Found dependencies: Convert::Color::Library, UUID::Tiny, DateTime::Calendar::Chinese, DateTime::Event::Chinese
--> Working on Convert::Color::Library
Fetching http://duckpan.org/authors/id/P/PE/PEVANS/Convert-Color-Library-0.05.tar.gz ... OK
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
! Failed to unpack Convert-Color-Library-0.05.tar.gz: no directory
! Failed to fetch distribution Convert-Color-Library-0.05
--> Working on UUID::Tiny
Fetching http://duckpan.org/authors/id/C/CA/CAUGUSTIN/UUID-Tiny-1.04.tar.gz ... OK
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
! Failed to unpack UUID-Tiny-1.04.tar.gz: no directory
! Failed to fetch distribution UUID-Tiny-1.04
--> Working on DateTime::Calendar::Chinese
Fetching http://duckpan.org/authors/id/D/DM/DMAKI/DateTime-Calendar-Chinese-1.00.tar.gz ... OK
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
! Failed to unpack DateTime-Calendar-Chinese-1.00.tar.gz: no directory
! Failed to fetch distribution DateTime-Calendar-Chinese-1.00
--> Working on DateTime::Event::Chinese
Fetching http://duckpan.org/authors/id/D/DM/DMAKI/DateTime-Event-Chinese-1.00.tar.gz ... OK
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
! Failed to unpack DateTime-Event-Chinese-1.00.tar.gz: no directory
! Failed to fetch distribution DateTime-Event-Chinese-1.00
Version string '%s' contains invalid data; ignoring: '%s'1.52   at /Users/ak/Developer/Perl/perl5/perlbrew/bin/cpanm line 457, <$handle> line 14.
! Installing the dependencies failed: Module 'DateTime::Calendar::Chinese' is not installed, Module 'DateTime::Event::Chinese' is not installed, Module 'Convert::Color::Library' is not installed, Module 'UUID::Tiny' is not installed
! Bailing out the installation for DDG-GoodieBundle-OpenSourceDuckDuckGo-1137.
moollaza commented 8 years ago

These aren't DuckDuckGo dependencies so you don't need to specify the mirror as DuckPAN. Using duckpan installdeps should be all you need to run.

moollaza commented 8 years ago

Sorry, IAChangelog is a DDG module but you don't need it. It's only required by staff who release the repo.

Installdeps should only be reporting modules required by Instant Answers.

If it's not then that's a separate issue but developers should only need to run installdeps.