Well, it appears that I fixed that some time after my last push to CPAN.

My latest on github includes
Prima::Application<https://github.com/run4flat/PDL-Graphics-Prima/blob/master/lib/PDL/Graphics/Prima.pm#L24>,
but MetaCPAN indicates that the last code I published doesn't have that
inclusion<https://metacpan.org/source/DCMERTENS/PDL-Graphics-Prima-0.13/lib/PDL/Graphics/Prima.pm#L24>.
(As for your fix, unless you typo-ed the error message, I think you may
have mis-spelled Application.) So I suspect that if you install the latest
from git, it'll work.

It's beginning to look like I need to push another CPAN release for both
PDL::Drawing::Prima and PDL::Graphics::Prima. Sorry for all of this hassle!

David


On Fri, Nov 22, 2013 at 12:24 AM, mraptor <[email protected]> wrote:

> Tried to do that, but I'm getting the following error :
>
> Illegal 'owner' reference passed to Prima::Plot::init. Probably you
> forgot to include 'use Prima::Application' in your code. Error at
> /usr/lib/perl5/site_perl/5.12.4/PDL/Graphics/Prima.pm line 84, <DATA>
> line 90.
>
> if I do :
> use Prima::Application;
> or
> use Prima qw(Application);#!!!
>
> then I get :
>
> Can't locate Prima/Applicaton.pm .....
>
> On Thu, Nov 21, 2013 at 6:36 AM, David Mertens <[email protected]>
> wrote:
> > mraptor -
> >
> > Never underestimate the utility of an example script that produces the
> > problem. That said, I think I can tease out the issue. First,
> auto_twiddle
> > is only defined for Prima in PDL::Graphics::Prima::Simple, so I presume
> > you're working with that module. In that case, bear in mind that plotting
> > commands in the ::Simple interface *always* build a window. The behavior
> of
> > auto_twiddle(0) is to make sure that plotting commands don't block
> execution
> > of your script. (In case it's not clear, I use the term "block" just as
> > folks talk about blocking and non-blocking IO.) Let me know if that needs
> > further explanation.
> >
> > If you are trying to make a "hard copy" of a figure, i.e. a postscript or
> > raster image file, you do not need to use the Simple interface (although
> it
> > is a bit simpler). Instead, you can create the Prima::Plot widget
> directly.
> > To see this in action, check out the the png output example and the
> > postscript output example.
> >
> > David
> >
> >
> > On Wed, Nov 20, 2013 at 8:28 PM, mraptor <[email protected]> wrote:
> >>
> >> I've already set auto_twiddle(0).. but I still see the image pop up
> >> and disappears ..
> >> Is there a way to disable this behaviour ?
> >>
> >> thanks
> >>
> >> _______________________________________________
> >> Perldl mailing list
> >> [email protected]
> >> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
> >
> >
> >
> >
> > --
> >  "Debugging is twice as hard as writing the code in the first place.
> >   Therefore, if you write the code as cleverly as possible, you are,
> >   by definition, not smart enough to debug it." -- Brian Kernighan
>



-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to