timbunce / WebAPI-DBIC

A composable RESTful JSON API to DBIx::Class schemas using roles and Web::Machine. PLEASE NOTE This module is no longer under active development. If you're interested in helping to develop or maintain it please fork it.
26 stars 10 forks source link

Error running the quickstart #15

Closed niceperl closed 9 years ago

niceperl commented 9 years ago
$ git clone https://github.com/timbunce/WebAPI-DBIC.git
$ cd WebAPI-DBIC
$ cpanm Module::CPANfile
$ cpanm --installdeps .
$ export WEBAPI_DBIC_SCHEMA=DummyLoadedSchema
$ plackup -Ilib -It/lib webapi-dbic-any.psgi

and I get this:

Error while loading /Users/prz/projects/perl5/temp/Web-API-DBIC/WebAPI-DBIC/webapi-dbic-any.psgi: Error loading DummyLoadedSchema: Can't locate TestRole/Schema.pm in @INC (you may need to install the TestRole::Schema module) (@INC contains: lib t/lib /Users/prz/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/darwin-2level /Users/prz/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1 /Users/prz/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/darwin-2level /Users/prz/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1 .) at /Users/prz/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Module/Runtime.pm line 317.
Compilation failed in require at t/lib/DummyLoadedSchema.pm line 8.
BEGIN failed--compilation aborted at t/lib/DummyLoadedSchema.pm line 8.
Compilation failed in require at (eval 191) line 2.
timbunce commented 9 years ago

Thanks @niceperl, looks like webapi-dbic-any.psgi get updated when we redid the way the test schema gets loaded. Probably a simple fix. Should be ready by tomorrow.

timbunce commented 9 years ago

Umm. This might take a little longer as the schema loading is somewhat entangled with the test harness.

timbunce commented 9 years ago

Fixed by @ungrim97 in v0.002002 which has just been uploaded. Let us know if there's a problem.

niceperl commented 9 years ago

I just have tested it, and it works! thanks

timbunce commented 9 years ago

Great. Let us know how it goes.