[Catalyst] Argh! Trying to upgrade Catalyst -- getting "Can't use string as a HASH ref..."

Tomas Doran bobtfish at bobtfish.net
Mon Apr 1 04:55:49 GMT 2013


On 31 Mar 2013, at 19:58, will trillich <will.trillich at serensoft.com> wrote:

> Hmm. I don't see anything out of line here...?
> 
> $ perl Makefile.PL 
> include /home/will/projects/perl-mvc/Waste/inc/Module/Install.pm
> include inc/Module/Install/Metadata.pm
> include inc/Module/Install/Base.pm
> include inc/Module/Install/Makefile.pm
> Cannot determine perl version info from lib/Waste/Web.pm
> include inc/Module/Install/Catalyst.pm
> include inc/Module/Install/Include.pm
> include inc/File/Copy/Recursive.pm
> *** Module::Install::Catalyst
> Please run "make catalyst_par" to create the PAR package!
> *** Module::Install::Catalyst finished.
> include inc/Module/Install/Scripts.pm
> include inc/Module/Install/AutoInstall.pm
> include inc/Module/AutoInstall.pm
> *** Module::AutoInstall version 1.04
> *** Checking for Perl dependencies...
> [Core Features]
> - Test::More                                             ...loaded. (0.98 >= 0.88)
> - Catalyst::Runtime                                      ...loaded. (5.90020 >= 5.80032)
> - Catalyst::Plugin::ConfigLoader                         ...loaded. (0.32)
> - Catalyst::Plugin::Static::Simple                       ...loaded. (0.29)
> - Catalyst::Action::RenderView                           ...loaded. (0.14)
> - Moose                                                  ...loaded. (2.0801)
> - namespace::autoclean                                   ...loaded. (0.13)
> - Config::General                                        ...loaded. (2.49)
> - Catalyst::Plugin::Session                              ...loaded. (0.29)
> - Catalyst::Plugin::Session::Store::DBIC                 ...loaded. (0.11)
> - Catalyst::Plugin::Session::State::Cookie               ...loaded. (0.17)
> - Catalyst::Plugin::Authentication                       ...loaded. (0.10016)
> - Catalyst::Plugin::Authentication::Credential::Password ...loaded. (0)
> - Catalyst::Plugin::Authorization::Roles                 ...loaded. (0.08)
> - Catalyst::Plugin::Cache                                ...loaded. (0.09)
> - DBIx::Class::Cursor::Cached                            ...loaded. (1.000001)
> *** Module::AutoInstall configuration finished.
> include inc/Module/Install/WriteAll.pm
> include inc/Module/Install/Win32.pm
> include inc/Module/Install/Can.pm
> include inc/Module/Install/Fetch.pm
> Writing Makefile for Waste::Web
> Writing MYMETA.yml and MYMETA.json
> Writing META.yml
> 

That's your app's Makefile.PL

I asked for the Makefile.PL for Catalyst::Runtime (as that includes the 'you must upgrade this plugin for this version of Catalyst' warnings.

> And our app class is same as I posted in the original message of this thread -- very standard:
> 
> package Waste::Web;
> use Moose;
> use namespace::autoclean;
> 
> use Catalyst::Runtime 5.80;
> 
> use Catalyst qw/
>     ConfigLoader
>     Static::Simple
>         Session
>         Session::Store::DBIC
>         Session::State::Cookie
>         Authentication
>         Authentication::Credential::Password
>         Authorization::Roles
>     Cache
> /;
> use Waste::Lib::CSV;
> 
> extends 'Catalyst';
> 
> our $VERSION = '1.10';
> 
> __PACKAGE__->config(
>     name => 'Waste::Web',
>     # Disable deprecated behavior needed by old applications
>     disable_component_resolution_regex_fallback => 1,
> );
> 
> # Start the application
> __PACKAGE__->setup();
> 

Yeah, I'd strongly guess it's one of the plugins :)

> Which cpanm module needs an upgrade? And is there a way for me to figure that out for next time so I don't have to bother the list with it? :)


Hopefully the one running the -Runtime Makefile.PL will tell you :)

Cheers
t0m




More information about the Catalyst mailing list