FAQ
Hi everyone.
Has one of you tested the blog example from advent calender - day 3 ?

(svn co
http://dev.catalystframework.org/repos/Catalyst/trunk/examples/Advent09FormHandlerBlog)

I tried that but I got this error message ??
<<
Couldn't instantiate component "Blog::Model::DB", "Cannot load schema
class 'Blog::Schema': "abs2rel" is not exported by the File::Spec module
Can't continue after import errors at
/home/lenski/temp/Advent09FormHandlerBlog/Blog/script/../lib/Blog/Schema.pm
line 7
BEGIN failed--compilation aborted at
/home/lenski/temp/Advent09FormHandlerBlog/Blog/script/../lib/Blog/Schema.pm
line 7.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.8/Catalyst/Model/DBIC/Schema.pm line 271.
at script/blog_server.pl line 66" at script/blog_server.pl line 66
Compilation failed in require at script/blog_server.pl line 66.
>>

I'm wondering how that example should work without any model? What I'm
doing wrong?

Thanks in advance - cheers, Ulf.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: lenski.vcf
Type: text/x-vcard
Size: 322 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091203/9718f218/lenski.vcf

Search Discussions

  • Kiffin Gish at Dec 3, 2009 at 11:07 am
    svn url might be handier to announce.

    On Thu, 2009-12-03 at 10:55 +0100, Ulf Lenski wrote:
    Hi everyone.
    Has one of you tested the blog example from advent calender - day 3 ?

    (svn co
    http://dev.catalystframework.org/repos/Catalyst/trunk/examples/Advent09FormHandlerBlog)

    I tried that but I got this error message ??
    <<
    Couldn't instantiate component "Blog::Model::DB", "Cannot load schema
    class 'Blog::Schema': "abs2rel" is not exported by the File::Spec module
    Can't continue after import errors at
    /home/lenski/temp/Advent09FormHandlerBlog/Blog/script/../lib/Blog/Schema.pm
    line 7
    BEGIN failed--compilation aborted at
    /home/lenski/temp/Advent09FormHandlerBlog/Blog/script/../lib/Blog/Schema.pm
    line 7.
    Compilation failed in require at
    /usr/lib/perl5/site_perl/5.8.8/Catalyst/Model/DBIC/Schema.pm line 271.
    at script/blog_server.pl line 66" at script/blog_server.pl line 66
    Compilation failed in require at script/blog_server.pl line 66.
    I'm wondering how that example should work without any model? What I'm
    doing wrong?

    Thanks in advance - cheers, Ulf.


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/

    --
    Kiffin Gish <kiffin.gish@planet.nl>
    Gouda, The Netherlands
  • Marcello Romani at Dec 4, 2009 at 8:05 am

    Kiffin Gish ha scritto:
    svn url might be handier to announce.
    Look closer:

    svn co
    http://dev.catalystframework.org/repos/Catalyst/trunk/examples/Advent09FormHandlerBlog

    :-)
    On Thu, 2009-12-03 at 10:55 +0100, Ulf Lenski wrote:
    Hi everyone.
    Has one of you tested the blog example from advent calender - day 3 ?

    ()

    I tried that but I got this error message ??
    <<
    Couldn't instantiate component "Blog::Model::DB", "Cannot load schema
    class 'Blog::Schema': "abs2rel" is not exported by the File::Spec module
    Can't continue after import errors at
    /home/lenski/temp/Advent09FormHandlerBlog/Blog/script/../lib/Blog/Schema.pm
    line 7
    BEGIN failed--compilation aborted at
    /home/lenski/temp/Advent09FormHandlerBlog/Blog/script/../lib/Blog/Schema.pm
    line 7.
    Compilation failed in require at
    /usr/lib/perl5/site_perl/5.8.8/Catalyst/Model/DBIC/Schema.pm line 271.
    at script/blog_server.pl line 66" at script/blog_server.pl line 66
    Compilation failed in require at script/blog_server.pl line 66.
    I'm wondering how that example should work without any model? What I'm
    doing wrong?

    Thanks in advance - cheers, Ulf.


    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/

    --
    Marcello Romani
  • Marcello Romani at Dec 4, 2009 at 8:09 am

    Ulf Lenski ha scritto:
    Hi everyone.
    Has one of you tested the blog example from advent calender - day 3 ?
    Hi, I have been able to run it after manually installing all the
    dependencies (AFAIKT they're not listed in the makefile).

    What I'm trying to do now is deploy the schema to the db.
    I have manually created the (so far empty) database and the role 'blog',
    and properly setup the permissions, but when I try to run
    script/blog_deploy.pl I get the error "load_schema" not defined.

    Looking at the source, there's in fact no such method in Blog/Schema.pm

    Any advice would be appreciated.

    Thanks.

    --
    Marcello Romani

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedDec 3, '09 at 9:52a
activeDec 4, '09 at 8:09a
posts4
users3
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2021 Grokbase