Skip Menu |

This queue is for tickets about the Games-Risk CPAN distribution.

Report information
The Basics
Id: 56311
Status: resolved
Priority: 0/
Queue: Games-Risk

People
Owner: Nobody in particular
Requestors: sampo [...] symlabs.com
Cc:
AdminCc:

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



CC: sampo [...] symlabs.com
Subject: Games-Risk-2.1.1 POE-1.289 undefined $poe_main_window
Date: Tue, 6 Apr 2010 11:05:45 +0200 (CEST)
To: bug-Games-Risk [...] rt.cpan.org
From: sampo [...] symlabs.com
After installing all dependency packages (of which there are too many) successfully I try to run /apps/perl/5.10.1/bin/prisk Can't call method "Photo" on an undefined value at /apps/perl/5.10.1/lib/site_perl/5.10.1/Games/Risk/Resources.pm line 123, <$fh> line 1. BEGIN failed--compilation aborted at /apps/perl/5.10.1/lib/site_perl/5.10.1/Games/Risk/Resources.pm line 137. Compilation failed in require at /apps/perl/5.10.1/lib/site_perl/5.10.1/Games/Risk/Controller.pm line 18. BEGIN failed--compilation aborted at /apps/perl/5.10.1/lib/site_perl/5.10.1/Games/Risk/Controller.pm line 18. Compilation failed in require at /apps/perl/5.10.1/lib/site_perl/5.10.1/Games/Risk.pm line 16. BEGIN failed--compilation aborted at /apps/perl/5.10.1/lib/site_perl/5.10.1/Games/Risk.pm line 16. Compilation failed in require at /apps/perl/5.10.1/bin/prisk line 22. BEGIN failed--compilation aborted at /apps/perl/5.10.1/bin/prisk line 22. It would appear that $poe_main_window is not defined. Reading POE::Loop documentation I gather that code like $poe_main_window = Tk::MainWindow->new(); should exist somewhere in prisk or Games::Risk, yet I find none. What gives? Cheers, --Sampo
On Tue Apr 06 05:07:29 2010, sampo@symlabs.com wrote: Show quoted text
> After installing all dependency packages (of which there are too many)
sorry for the "too many dependencies", but it's not an option for me to recode everything which already exists on cpan... it's always a trade-off. if you're using a linux distribution, ask for games-risk to be packaged, this way you'll be able to install it with the distribution tool! Show quoted text
> It would appear that $poe_main_window is not defined. Reading POE::Loop > documentation I gather that code like > > $poe_main_window = Tk::MainWindow->new(); > > should exist somewhere in prisk or Games::Risk, yet I find none.
in fact, poe used to bundle poe::loop::tk which provides this code (tk requires a widget to exist before processing events). however, it is not part of poe anymore: it now exists as a distribution of its own, poe-loop-tk ==> i released games-risk 2.1.2 which requires this new dependency this version also fixes some stuff here and there. thanks for the report!