vanstyn / Rapi-Blog

Blog platform powered by RapidApp
6 stars 1 forks source link

rabl.pl create TestBlog gives error: ... Can't locate Rapi/Blog/DB_RefSchema_nYl3Y.pm #2

Open joshrabinowitz opened 6 years ago

joshrabinowitz commented 6 years ago

Hey, was just taking a look at Rapi::Blog and ran into this issue in rabl.pl with perl 5.24.0

% rabl.pl create RABLTest
==> creating directory 'RABLTest'

** Choose a skeleton scaffold to use to initialize your new site...
   There are currently 2 built-in scaffolds available:

    [ 1 ]  bootstrap-blog   (**default**)
    [ 2 ]  keep-it-simple

Type the number of the scaffold you would like to use
 (or hit Enter to use the default 'bootstrap-blog')
 ==> 1

Initializing scaffold using the built-in skeleton 'bootstrap-blog':

[[[ STUFF REMOVED ]]]

((stack 19))    [44] Catalyst::setup_component
((stack 18))  [3216] (eval)
((stack 17))  [3215] Catalyst::Model::DBIC::Schema::COMPONENT
((stack 16))    [95] Catalyst::Model::DBIC::Schema::_wrapped_COMPONENT
((stack 15))    [44] CatalystX::Component::Traits::COMPONENT
((stack 14))   [144] MooseX::Traits::Pluggable::new_with_traits
((stack 13))   [116] MooseX::Traits::Pluggable::_build_instance_with_traits
((stack 12))   [185] Rapi::Blog::Model::DB::new
((stack 11))    [28] Moose::Meta::Class::new_object
((stack 10))   [279] Moose::Object::BUILDALL
((stack  9))    [54] Class::MOP::Method::execute
((stack  8))   [128] Catalyst::Model::DBIC::Schema::BUILD
((stack  7))   [493] Rapi::Blog::Model::DB::setup
((stack  6))     [4] Rapi::Blog::Model::DB::__ANON__
((stack  5))    [29] DBIx::Class::ResultSet::find_or_create
((stack  4))  [2970] DBIx::Class::ResultSet::find
((stack  3))   [910] DBIx::Class::ResultSet::single
((stack  2))  [1101] DBIx::Class::Storage::DBI::select_single
((stack  1))  [2586] DBIx::Class::Storage::DBI::_select
((stack  0))    [28] DBIx::Class::Storage::DBI::_execute
[28] DBIx::Class::Storage::DBI::SQLite=HASH(0x66215b8)->_execute(5):
SELECT "me"."id", "me"."username", "me"."full_name", "me"."image", "me"."email", "me"."admin", "me"."author", "me"."comment" FROM "user" "me" WHERE ( "me"."id" = ? ): '0'
3 [0.001|0.001]

((stack 19))  [3216] (eval)
((stack 18))  [3215] Catalyst::Model::DBIC::Schema::COMPONENT
((stack 17))    [95] Catalyst::Model::DBIC::Schema::_wrapped_COMPONENT
((stack 16))    [44] CatalystX::Component::Traits::COMPONENT
((stack 15))   [144] MooseX::Traits::Pluggable::new_with_traits
((stack 14))   [116] MooseX::Traits::Pluggable::_build_instance_with_traits
((stack 13))   [185] Rapi::Blog::Model::DB::new
((stack 12))    [28] Moose::Meta::Class::new_object
((stack 11))   [279] Moose::Object::BUILDALL
((stack 10))    [54] Class::MOP::Method::execute
((stack  9))   [128] Catalyst::Model::DBIC::Schema::BUILD
((stack  8))   [493] Rapi::Blog::Model::DB::setup
((stack  7))     [4] Rapi::Blog::Model::DB::__ANON__
((stack  6))    [29] DBIx::Class::ResultSet::find_or_create
((stack  5))  [2973] Rapi::Blog::DB::Result::User::insert
((stack  4))   [108] Rapi::Blog::DB::Component::SafeResult::insert
((stack  3))    [27] RapidApp::DBIC::Component::VirtualColumnsExt::insert
((stack  2))   [257] DBIx::Class::Row::insert
((stack  1))   [408] DBIx::Class::Storage::DBI::insert
((stack  0))    [28] DBIx::Class::Storage::DBI::_execute
[28] DBIx::Class::Storage::DBI::SQLite=HASH(0x66215b8)->_execute(4):
INSERT INTO "user" ( "admin", "full_name", "id", "username") VALUES ( ?, ?, ?, ? ): '1', '[System Acount]', '0', '(system)'
6 [0.001|0.001]
PRAGMA foreign_keys = ON:
Couldn't instantiate component "Rapi::Blog::App::Model::DB", "coercion for "_schema_diff" failed: coercion for "new_schema" failed: coercion for "schema" failed: Can't locate Rapi/Blog/DB_RefSchema_SAh9c.pm in @INC (you may need to install the Rapi::Blog::DB_RefSchema_SAh9c module) 
(@INC contains: /opt/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/x86_64-linux /opt/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0 /opt/perlbrew/perls/perl-5.24.0/lib/5.24.0/x86_64-linux /opt/perlbrew/perls/perl-5.24.0/lib/5.24.0 .) at /opt/perlbrew/perls/perl-5.24.0/lib/site_perl/5.24.0/Module/Runtime.pm line 317."%
moussaid521 commented 6 years ago

the same issue here in Ubuntu 17.10

Initializing databases, please wait... Auto-Deploy /home/moussaid521/www/my/math/blog/rapi_blog.db Couldn't instantiate component "Rapi::Blog::App::Model::DB", "coercion for "_schema_diff" failed: coercion for "new_schema" failed: coercion for "schema" failed: Can't locate Rapi/Blog/DB_RefSchema_QqVSz.pm in @INC (you may need to install the Rapi::Blog::DB_RefSchema_QqVSz module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.0 /usr/local/share/perl/5.26.0 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Module/Runtime.pm line 317."

vanstyn commented 6 years ago

Can someone check and confirm if this is an issue on 5.26 specifically? Does it happen under 5.24 or 5.22?

zl3ag commented 6 years ago

Happening for me on 5.24.1, Debian Stable.

joshrabinowitz commented 6 years ago

yeah, my example shows it happening in 5.24.0

vanstyn commented 6 years ago

This has been tracked down to a breaking change in recent versions of Hash::Merge which breaks DBIx::Class::Schema::Loader (which is actually an even much bigger problem than this ticket). A patch has already been submitted and will hopefully ship to cpan very soon:

https://github.com/dbsrgits/dbix-class-schema-loader/pull/16

In the meantime, you can solve/confirm the problem by downgrading your version of Hash::Merge

moussaid521 commented 6 years ago

Hi Henry,

I've downgraded to Hash::Merge 0.200 and it's working just fine.

Thanks Man!

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

2018-01-16 21:43 GMT+00:00 Henry Van Styn notifications@github.com:

This has been tracked down to a breaking change in recent versions of Hash::Merge which breaks DBIx::Class::Schema::Loader (which is actually an even much bigger problem than this ticket). A patch has already been submitted and will hopefully ship to cpan very soon:

dbsrgits/dbix-class-schema-loader#16 https://github.com/dbsrgits/dbix-class-schema-loader/pull/16

In the meantime, you can solve/confirm the problem by downgrading your version of Hash::Merge

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vanstyn/Rapi-Blog/issues/2#issuecomment-358116994, or mute the thread https://github.com/notifications/unsubscribe-auth/ARf2K4wg8MSc-aKlCAALkzy-2Y6k-nK0ks5tLRf1gaJpZM4RIiHD .

-- Mohamed Amine MOUSSAID Promo 2007