Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: cpanm stuck with Plack::Handler::Twiggy

by Aldebaran (Curate)
on Apr 02, 2022 at 23:40 UTC ( [id://11142644]=note: print w/replies, xml ) Need Help??


in reply to Re^3: CPAN 2.29 stuck with Net::SSLeay (updated)
in thread CPAN 2.29 stuck with Net::SSLeahy

Your requires1.pm would typically be called cpanfile and not start with a package statement. See cpanfile and the corresponding discussion in your thread Using Cartons to automate module installs.

Yes, indeed...thank you for the reminder, both then and now. I find myself refering back to previous write-ups when I'm facing the issues of breaking in a new system. A person tries to do the same things, but they are all a bit different. I've been able to get everything loaded except Plack::Handler::Twiggy.

cpan shows that my version is undef, both before and after I reinstall:

$ cpan -l | grep Twiggy Twiggy 0.1026 Twiggy::Server undef Twiggy::Server::SS undef Plack::Handler::Twiggy undef

I try to use cpanm to reinstall:

$ cpanm --reinstall --verbose Plack::Handler::Twiggy cpanm (App::cpanminus) 1.7044 on perl 5.028001 built for arm-linux-gnu +eabihf-thread-multi-64int ... Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/ ... Entering Twiggy-0.1026 ... Configuring Twiggy-0.1026 ... Checking if your kit is complete... Looks good ... All tests successful. Result: PASS ... 1 distribution installed

But the needle hasn't moved:

$ cpan -l | grep Twiggy Twiggy 0.1026 Twiggy::Server undef Twiggy::Server::SS undef Plack::Handler::Twiggy undef $

, and this consigns this command to failure:

$ cpanm --verbose --installdeps . cpanm (App::cpanminus) 1.7044 on perl 5.028001 built for arm-linux-gnu +eabihf-thread-multi-64int ... Checking if you have Plack::Handler::Twiggy 0.1025 ... No ... Checking if you have GPS::NMEA 0.17 ... Yes (1.12) ==> Found dependencies: Plack::Handler::Twiggy Searching Plack::Handler::Twiggy (0.1025) on cpanmetadb ... Found Plack::Handler::Twiggy which doesn't satisfy 0.1025. ! Installing the dependencies failed: Installed version (undef) of Pla +ck::Handler::Twiggy is not in range '0.1025' ! Bailing out the installation for .. $

So I'm still caught in the tentacles of Charybdis with this one module, looking for tips on how to get it installed properly. How do I get Plack::Handler::Twiggy to be version 0.1026 like Twiggy?

Cheers,

Replies are listed 'Best First'.
Re^5: cpanm stuck with Plack::Handler::Twiggy
by haukex (Archbishop) on Apr 03, 2022 at 06:34 UTC

    There is a difference between a distribution and the modules that it contains. If you look at the distribution Twiggy, you'll see it contains those modules, but if you look at the source of the modules, they don't define a $VERSION, which is allowed. Though personally I would try to give every module in a distribution the same version, when it comes to the installation, you don't need to worry about what version the individual modules of a distribution have - when defining dependencies, it's enough to define a dependency on the latest version of the module Twiggy to get all of the modules in its distribution installed.

      There is a difference between a distribution and the modules that it contains. If you look at the distribution Twiggy, you'll see it contains those modules, but if you look at the source of the modules, they don't define a $VERSION, which is allowed. Though personally I would try to give every module in a distribution the same version, when it comes to the installation, you don't need to worry about what version the individual modules of a distribution have - when defining dependencies, it's enough to define a dependency on the latest version of the module Twiggy to get all of the modules in its distribution installed.

      Ok, I did take a gander through Twiggy, and realized that

      requires 'Plack::Handler::Twiggy' => '0.1025';

      was never gonna be satified. I altered the cpanfile to this:

      #requires 'Plack::Handler::Twiggy' => '0.1025'; ## this module ^^ is sliced up differently requires 'AnyEvent::AIO' => '1.1'; requires 'Async::Interrupt' => '1.24'; requires 'Cookie::Baker::XS' => '0.09'; requires 'Device::Firmata' => '0.65'; requires 'Device::SerialPort' => '1.04'; requires 'Device::WebIO' => '0.022'; requires 'Device::WebIO::Dancer' => '0.004'; requires 'Device::WebIO::Firmata' => '0.002'; requires 'Device::WebIO::RaspberryPi' => '0.900'; requires 'DBD::SQLite' => '1.58'; requires 'DBI' => '1.641'; requires 'Guard' => '1.023'; requires 'GPS::NMEA' => '0.17'; requires 'Math::Round' => '0.07'; requires 'RPi::WiringPi' => '2.3628'; requires 'RPi::Pin' => '2.3606'; requires 'Plack::Handler::Twiggy' => 'undef'; requires 'Starman' => '0.4014'; requires 'Time::HiRes' => '1.9758'; requires 'Twiggy' => '0.1025'; requires 'WWW::Form::UrlEncoded::XS' => '0.25';

      , and got it the checks to pass:

      $ cpanm --verbose --installdeps . ... Checking if you have Plack::Handler::Twiggy 0 ... Yes (undef) ... Checking if you have Twiggy 0.1025 ... Yes (0.1026) ... $

      What's more, I looked ahead in stevieb's guide for source I might use, and I didn't see the module included in stuff that I was going to use anytime soon. I was super-pleased to have his guide to orient me through installing the camera:

      The one downside of the CSI-2 connector is that it’s attached with a ribbon cable, which can be a bit flimsy. The connector sits by the HDMI port on most Pis. This shouldn’t be confused with the DSI (Display Serial Interface) connector, which sits near the SD card. ... Power off your Pi, and then insert the cable. You’ll see a small strip of tape along one edge of the ribbon cable. On most Pi’s, this will face the edge with the Ethernet and USB ports.

      I was almost despondent when I saw that ribbon. Getting that in the right place the right way the first time was faith-promoting.

      $ raspistill -o 1.test_pic.jpg $ ls 1.test_pic.jpg

      A clear and sharp photo results, flimsy ribbon notwithstanding....

Re^5: cpanm stuck with Plack::Handler::Twiggy
by Anonymous Monk on Apr 03, 2022 at 02:44 UTC
    Disturbing lack of paths in your verbosity
      Disturbing lack of sense in your post

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11142644]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found