The error in the title is the result of a common TT2 "gotcha" . The solution is to give INCLUDE_PATH an arrayref, so a windows-style-directory isn't confused for a unix-style $PATH ( colon:s:e:p:a:r:a:t:e:d:list:of:directories )

diff -ruN old/Base.pm new/Base.pm --- old/Base.pm 2011-05-04 09:06:57.000000000 -0700 +++ new/Base.pm 2012-05-12 02:55:35.171875000 -0700 @@ -95,11 +95,14 @@ debug "Processing template $tmpl\n"; my $out; + my %dconf = $me->tt_config; # Hook for sub-classes to add config + $dconf{INCLUDE_PATH} = [ $dconf{INCLUDE_PATH} ] if not ref $dconf +{INCLUDE_PATH} my $tt = Template->new( #DEBUG => $me->translator->debug, + #DEBUG => Template::Constants::DEBUG_ALL(), ABSOLUTE => 1, # Set so we can use from the command line sen +sibly - RELATIVE => 1, # Maybe the cmd line code should set it! Secu +rity! - $me->tt_config, # Hook for sub-classes to add config +# RELATIVE => 1, # Maybe the cmd line code should set it! Sec +urity! + %dconf, %args, # Allow any TT opts to be passed in the produ +cer_args ) || die "Failed to initialize Template object: ".Template->error +; @@ -107,7 +110,7 @@ $me->tt_default_vars, $me->tt_vars, # Sub-class hook for adding vars }, \$out ) - or die "Error processing template '$tmpl': ".$tt->error; + or die "Error processing template '$tmpl': ".$tt->error ; return $out; }

After that, the following generates output

sqlt -f SQLite -t -t DiaUml input > output

But naturally, foreign keys /UML relations are on the TODO list ;)


In reply to error - schema.tt2: not found SQL/Translator/Producer/TT/Base.pm line 106. (solution template INCLUDE_PATH array) by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.