in reply to add_chart_ext does not work when compressed

Does anyone have an idea how to solve this? I'm really keen on getting this to work. If any more information is needed to identify the problem, just let me know and I'll post it.

Thanks!

  • Comment on Re: add_chart_ext does not work when compressed

Replies are listed 'Best First'.
Re^2: add_chart_ext does not work when compressed
by jmcnamara (Monsignor) on May 11, 2011 at 12:51 UTC
    From your stacktrace it looks like the underlying issue is caused by the fact that the Spreadsheet::WriteExcel::Chart::* modules are dynamically loaded via a factory method. This probably means that the Cava code analyser doesn't detect that they are required and doesn't load them in the package.

    A solution would probably be to explicitly include them in the your root program using "use":

    ... use Spreadsheet::WriteExcel; use Spreadsheet::WriteExcel::Chart::External; ...

    --
    John.

      Thank you, it finally works! I have before tried to force Cava to include these packages by explicitly telling it to do so in its settings but without success. It's firstly now when I included the use commande in my root script that the problem was solved.

      Thanks again for your help!

Re^2: add_chart_ext does not work when compressed
by Anonymous Monk on May 11, 2011 at 12:58 UTC
    Um, tell cava (by any means) to pack Spreadsheet/WriteExcel/Chart/External.pm -- I don't have cava anymore so I can't tell you what button to click, what jmcnamara said ought to work