Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: add_chart_ext does not work when compressed

by jmcnamara (Monsignor)
on Apr 21, 2011 at 09:32 UTC ( [id://900543]=note: print w/replies, xml ) Need Help??


in reply to Re^2: add_chart_ext does not work when compressed
in thread add_chart_ext does not work when compressed

I'm at a loss to see how this is happening in Spreadsheet::WriteExcel, either inside or outside of a Cava package.

Could you add Devel::SimpleTrace to your program and post the stack trace of the failing code.

--
John.

  • Comment on Re^3: add_chart_ext does not work when compressed

Replies are listed 'Best First'.
Re^4: add_chart_ext does not work when compressed
by Anonymous Monk on Apr 21, 2011 at 09:49 UTC
    maybe his $cwd isn't meshing with add_chart_ext('.\charts\run_chart.bin' or maybe he is filtering the packed modules through PodStrip or another one
      That was my first thought too but in that case there should be a different error message like this:
      Couldn't open .\charts\run_chart.bin in add_chart_ext(): No such file or directory.

      The particular error message that is being reported, "Chart type 'External' not supported in add_chart()" is generated when you try to add a chart type that doesn't exist via add_chart() (and not from add_chart_ext() as report by the OP):

      my $chart = $workbook->add_chart( type => 'foo' ); ... Chart type 'Foo' not supported in add_chart()
      However, there is an 'External' chart module (albeit invalid in this case) so if a program inadvertently tried to load it it would generate another different error message. As such I cannot see any way that particular error message can be generated.

      Confused? I am and I wrote the module. Hopefully the stack trace will clear things up a bit.

      Update: I was wrong about this. The External.pm module is loaded using the same factory method as the other Chart modules. I was clearly smoking a bit too much Java at the time I wrote it.

      --
      John.

        However, there is an 'External' chart module (albeit invalid in this case) so if a program inadvertently tried to load it it would generate another different error message. As such I cannot see any way that particular error message can be generated.

        Confused? I am and I wrote the module. Hopefully the stack trace will clear things up a bit.

        Yup. It probably means Spreadsheet/WriteExcel/Chart/External.pm was not copied/packed by cava for whatever reason

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://900543]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-26 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found