Skip Menu |

This queue is for tickets about the Tk-Wizard CPAN distribution.

Report information
The Basics
Id: 67728
Status: resolved
Priority: 0/
Queue: Tk-Wizard

People
Owner: Nobody in particular
Requestors: ASB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Unknown warnings category 'Tk::Wizard::Installer::Win32'
Dear Lee, I'm sorry, it's me again :) There seems to be a problem with Tk::Wizard::Installer::Win32, although I'm not shure if it's really a problem with the module or if PEBMAC. The error is: "Unknown warnings category 'Tk::Wizard::Installer::Win32' at C:/strawberry/perl/site/lib/Tk/Wizard.pm line 1594" I want to use addStartMenuPage(), and this is what I got for testing purposes: [code] #!perl use strict; use warnings; use utf8; use FindBin qw/$Bin/; use File::Spec; use Tk::Wizard; use Tk::Wizard::FileSystem; use Tk::Wizard::Installer; use Tk::Wizard::Installer::Win32; print $Tk::Wizard::Installer::Win32::VERSION; my $wizard = Tk::Wizard::Installer::Win32->new( -title => "Uninstall Perl Example Program", ); $wizard->configure( -style => 'top', -preCloseWindowAction => sub { return 0; } ); # ------------------------------------------------------------------------- # -- Select Startmenu Entry $wizard->addStartMenuPage(); # ------------------------------------------------------------------------- # -- Conformation $wizard->addSplashPage( -title => 'Removal Comlplete', -subtitle => 'Perl Example Program was successfully removed (I guess).', -text => "Click [Finish] to close this wizard." ); # ------------------------------------------------------------------------- # -- Actually run the wizard $wizard->Show(); $wizard->MainLoop(); [/code] Here is more information: OS: Win 7, x64 Perl: strawberry perl v5.12.2 built for MSWin32-x64-multi-thread $Tk::Wizard::Installer::Win32::VERSION = 2.021 Any ideas? Best regards & happy easter, Alex
Subject: Re: [rt.cpan.org #67728] Unknown warnings category 'Tk::Wizard::Installer::Win32'
Date: Tue, 26 Apr 2011 12:28:03 +0200
To: bug-Tk-Wizard [...] rt.cpan.org
From: Lee Goddard <leegee [...] gmail.com>
I'm sorry I don't have a Win32 box around at the moment. Could you please try adding to the Tk::Wizard::Installer::Win32 the following, just below the package declaration? use warnings::register; Thanks. Lee On 24/04/2011 14:33, Alexander Becker via RT wrote: Show quoted text
> Sun Apr 24 08:33:38 2011: Request 67728 was acted upon. > Transaction: Ticket created by ASB > Queue: Tk-Wizard > Subject: Unknown warnings category 'Tk::Wizard::Installer::Win32' > Broken in: (no value) > Severity: Normal > Owner: Nobody > Requestors: ASB@cpan.org > Status: new > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=67728> > > > Dear Lee, > > I'm sorry, it's me again :) > > There seems to be a problem with Tk::Wizard::Installer::Win32, although > I'm not shure if it's really a problem with the module or if PEBMAC. > > The error is: "Unknown warnings category 'Tk::Wizard::Installer::Win32' > at C:/strawberry/perl/site/lib/Tk/Wizard.pm line 1594" > > I want to use addStartMenuPage(), and this is what I got for testing > purposes: > > [code] > #!perl > > use strict; > use warnings; > use utf8; > use FindBin qw/$Bin/; > use File::Spec; > use Tk::Wizard; > use Tk::Wizard::FileSystem; > use Tk::Wizard::Installer; > use Tk::Wizard::Installer::Win32; > > print $Tk::Wizard::Installer::Win32::VERSION; > > my $wizard = Tk::Wizard::Installer::Win32->new( > -title => "Uninstall Perl Example Program", > ); > $wizard->configure( -style => 'top', -preCloseWindowAction => sub > { return 0; } ); > > # > ------------------------------------------------------------------------- > # -- Select Startmenu Entry > > $wizard->addStartMenuPage(); > > # > ------------------------------------------------------------------------- > # -- Conformation > $wizard->addSplashPage( > -title => 'Removal Comlplete', > -subtitle => 'Perl Example Program was successfully > removed (I guess).', > -text => "Click [Finish] to close this wizard." > ); > > > # > ------------------------------------------------------------------------- > # -- Actually run the wizard > $wizard->Show(); > $wizard->MainLoop(); > [/code] > > Here is more information: > OS: Win 7, x64 > Perl: strawberry perl v5.12.2 built for MSWin32-x64-multi-thread > $Tk::Wizard::Installer::Win32::VERSION = 2.021 > > Any ideas? > > Best regards& happy easter, > Alex >
It worked! Now there is an error. The option -variable is mandatory. Also, one should specify -program_group in order to avoid a "undefined $group" warning. As a hacky workaround but tiny example of Tk::Wizard, one might write: [code] #!perl package Tk::Wizard::Installer::Win32; use warnings::register; package main; use strict; use warnings; use utf8; use Tk::Wizard; use Tk::Wizard::FileSystem; use Tk::Wizard::Installer; use Tk::Wizard::Installer::Win32; my $wizard = Tk::Wizard::Installer::Win32->new( -title => "Uninstall Perl Example Program", ); $wizard->configure( -style => 'top', -preCloseWindowAction => sub { return 0; } ); # ------------------------------------------------------------------------- # -- Select Startmenu Entry my $path = ''; $wizard->addStartMenuPage( -program_group => "My program's startmenu folder", -variable => \$path, ); # ------------------------------------------------------------------------- # -- Actually run the wizard $wizard->Show(); $wizard->MainLoop(); [/code] Thank you! Am Di 26. Apr 2011, 06:28:16, lee@leegoddard.net schrieb: Show quoted text
> I'm sorry I don't have a Win32 box around at the moment. > > Could you please try adding to the Tk::Wizard::Installer::Win32 the > following, just below the package declaration? > > use warnings::register; > > Thanks. > Lee > > > > On 24/04/2011 14:33, Alexander Becker via RT wrote:
> > Sun Apr 24 08:33:38 2011: Request 67728 was acted upon. > > Transaction: Ticket created by ASB > > Queue: Tk-Wizard > > Subject: Unknown warnings category
'Tk::Wizard::Installer::Win32' Show quoted text
> > Broken in: (no value) > > Severity: Normal > > Owner: Nobody > > Requestors: ASB@cpan.org > > Status: new > > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=67728> > > > > > > Dear Lee, > > > > I'm sorry, it's me again :) > > > > There seems to be a problem with Tk::Wizard::Installer::Win32,
although Show quoted text
> > I'm not shure if it's really a problem with the module or if PEBMAC. > > > > The error is: "Unknown warnings category
'Tk::Wizard::Installer::Win32' Show quoted text
> > at C:/strawberry/perl/site/lib/Tk/Wizard.pm line 1594" > > > > I want to use addStartMenuPage(), and this is what I got for testing > > purposes: > > > > [code] > > #!perl > > > > use strict; > > use warnings; > > use utf8; > > use FindBin qw/$Bin/; > > use File::Spec; > > use Tk::Wizard; > > use Tk::Wizard::FileSystem; > > use Tk::Wizard::Installer; > > use Tk::Wizard::Installer::Win32; > > > > print $Tk::Wizard::Installer::Win32::VERSION; > > > > my $wizard = Tk::Wizard::Installer::Win32->new( > > -title => "Uninstall Perl Example Program", > > ); > > $wizard->configure( -style => 'top', -preCloseWindowAction => sub > > { return 0; } ); > > > > # > >
------------------------------------------------------------------------- Show quoted text
> > # -- Select Startmenu Entry > > > > $wizard->addStartMenuPage(); > > > > # > >
------------------------------------------------------------------------- Show quoted text
> > # -- Conformation > > $wizard->addSplashPage( > > -title => 'Removal Comlplete', > > -subtitle => 'Perl Example Program was successfully > > removed (I guess).', > > -text => "Click [Finish] to close this wizard." > > ); > > > > > > # > >
------------------------------------------------------------------------- Show quoted text
> > # -- Actually run the wizard > > $wizard->Show(); > > $wizard->MainLoop(); > > [/code] > > > > Here is more information: > > OS: Win 7, x64 > > Perl: strawberry perl v5.12.2 built for MSWin32-x64-multi-thread > > $Tk::Wizard::Installer::Win32::VERSION = 2.021 > > > > Any ideas? > > > > Best regards& happy easter, > > Alex > >
Subject: Re: [rt.cpan.org #67728] Unknown warnings category 'Tk::Wizard::Installer::Win32'
Date: Tue, 26 Apr 2011 19:54:54 +0200
To: bug-Tk-Wizard [...] rt.cpan.org
From: Lee Goddard <leegee [...] gmail.com>
Thank you, Alexander. Sorry you ran into this - as soon as I have access to a Windows machine, I will fix the code. On 26/04/2011 19:09, Alexander Becker via RT wrote: Show quoted text
> Queue: Tk-Wizard > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=67728> > > It worked! Now there is an error. The option -variable is mandatory. > Also, one should specify -program_group in order to avoid a "undefined > $group" warning. > > As a hacky workaround but tiny example of Tk::Wizard, one might write: > [code] > #!perl > > package Tk::Wizard::Installer::Win32; > use warnings::register; > > package main; > > use strict; > use warnings; > use utf8; > use Tk::Wizard; > use Tk::Wizard::FileSystem; > use Tk::Wizard::Installer; > use Tk::Wizard::Installer::Win32; > > my $wizard = Tk::Wizard::Installer::Win32->new( > -title => "Uninstall Perl Example Program", > ); > $wizard->configure( -style => 'top', -preCloseWindowAction => sub > { return 0; } ); > > # > ------------------------------------------------------------------------- > # -- Select Startmenu Entry > > my $path = ''; > $wizard->addStartMenuPage( > -program_group => "My program's startmenu folder", > -variable => \$path, > ); > > # > ------------------------------------------------------------------------- > # -- Actually run the wizard > $wizard->Show(); > $wizard->MainLoop(); > [/code] > > Thank you! > > Am Di 26. Apr 2011, 06:28:16, lee@leegoddard.net schrieb:
>> I'm sorry I don't have a Win32 box around at the moment. >> >> Could you please try adding to the Tk::Wizard::Installer::Win32 the >> following, just below the package declaration? >> >> use warnings::register; >> >> Thanks. >> Lee >> >> >> >> On 24/04/2011 14:33, Alexander Becker via RT wrote:
>>> Sun Apr 24 08:33:38 2011: Request 67728 was acted upon. >>> Transaction: Ticket created by ASB >>> Queue: Tk-Wizard >>> Subject: Unknown warnings category
> 'Tk::Wizard::Installer::Win32'
>>> Broken in: (no value) >>> Severity: Normal >>> Owner: Nobody >>> Requestors: ASB@cpan.org >>> Status: new >>> Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=67728> >>> >>> >>> Dear Lee, >>> >>> I'm sorry, it's me again :) >>> >>> There seems to be a problem with Tk::Wizard::Installer::Win32,
> although
>>> I'm not shure if it's really a problem with the module or if PEBMAC. >>> >>> The error is: "Unknown warnings category
> 'Tk::Wizard::Installer::Win32'
>>> at C:/strawberry/perl/site/lib/Tk/Wizard.pm line 1594" >>> >>> I want to use addStartMenuPage(), and this is what I got for testing >>> purposes: >>> >>> [code] >>> #!perl >>> >>> use strict; >>> use warnings; >>> use utf8; >>> use FindBin qw/$Bin/; >>> use File::Spec; >>> use Tk::Wizard; >>> use Tk::Wizard::FileSystem; >>> use Tk::Wizard::Installer; >>> use Tk::Wizard::Installer::Win32; >>> >>> print $Tk::Wizard::Installer::Win32::VERSION; >>> >>> my $wizard = Tk::Wizard::Installer::Win32->new( >>> -title => "Uninstall Perl Example Program", >>> ); >>> $wizard->configure( -style => 'top', -preCloseWindowAction => sub >>> { return 0; } ); >>> >>> # >>>
> -------------------------------------------------------------------------
>>> # -- Select Startmenu Entry >>> >>> $wizard->addStartMenuPage(); >>> >>> # >>>
> -------------------------------------------------------------------------
>>> # -- Conformation >>> $wizard->addSplashPage( >>> -title => 'Removal Comlplete', >>> -subtitle => 'Perl Example Program was successfully >>> removed (I guess).', >>> -text => "Click [Finish] to close this wizard." >>> ); >>> >>> >>> # >>>
> -------------------------------------------------------------------------
>>> # -- Actually run the wizard >>> $wizard->Show(); >>> $wizard->MainLoop(); >>> [/code] >>> >>> Here is more information: >>> OS: Win 7, x64 >>> Perl: strawberry perl v5.12.2 built for MSWin32-x64-multi-thread >>> $Tk::Wizard::Installer::Win32::VERSION = 2.021 >>> >>> Any ideas? >>> >>> Best regards& happy easter, >>> Alex >>>
> > >
Warnings category updated - not sure of other issues, have no Windows box