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

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

Open
joshrabinowitz opened this issue Dec 20, 2017 · 6 comments

Comments

@joshrabinowitz
Copy link

joshrabinowitz commented Dec 20, 2017

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
Copy link

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
Copy link
Owner

vanstyn commented Jan 3, 2018

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

@zl3ag
Copy link

zl3ag commented Jan 6, 2018

Happening for me on 5.24.1, Debian Stable.

@joshrabinowitz
Copy link
Author

yeah, my example shows it happening in 5.24.0

@vanstyn
Copy link
Owner

vanstyn commented Jan 16, 2018

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

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

@moussaid521
Copy link

moussaid521 commented Jan 16, 2018 via email

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

4 participants