Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 23518
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: smueller [...] cpan.org
Requestors: news [...] ademmler.com
Cc:
AdminCc:

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



Subject: pp and Image::Info
Date: Tue, 21 Nov 2006 09:55:53 +0100
To: bug-par [...] rt.cpan.org, par [...] perl.org
From: ademmler <news [...] ademmler.com>
Hi Folks! I cant pack Image::Info (from Gisele Aas) with in a par archive. Find attached a sample script, the module, my par exe and a tiff image for testing. The syntax is: "perl testimageinfo.pl test4C.tif" I have tried all options while packing, like -a -M -I etc. and got no sucess. While runtime of the exe I still get the error about the missing module. ## macbook$ testimageinfo test4C.tif Start getting image infos ... Can't parse image info: Can't locate Image/Info/TIFF.pm in @INC (@INC contains: /tmp/par-ademmler/ cache-68af4e4ede4dd2cf9a02e82990e685198e329703/inc/lib /tmp/par- ademmler/cache-68af4e4ede4dd2cf9a02e82990e685198e329703/inc CODE (0x19058c4) CODE(0x1905a18)) at (eval 16) line 3. ## ... mhhh Anny help and hints would be perfect! Thanks to all Alex
Download ii-problem.zip
application/zip 3.5m

Message body not shown because it is not plain text.

Hi Alex, On Tue Nov 21 04:17:30 2006, news@ademmler.com wrote: Show quoted text
> I cant pack Image::Info (from Gisele Aas) with in a par archive. > Find attached a sample script, the module, my par exe and a tiff > image for testing. > The syntax is: "perl testimageinfo.pl test4C.tif" > > I have tried all options while packing, like -a -M -I etc. and got no > sucess. > While runtime of the exe I still get the error about the missing module. > > ## > macbook$ testimageinfo test4C.tif > Start getting image infos ... > > Can't parse image info: Can't locate Image/Info/TIFF.pm in @INC (@INC > contains: /tmp/par-ademmler/ > cache-68af4e4ede4dd2cf9a02e82990e685198e329703/inc/lib /tmp/par- > ademmler/cache-68af4e4ede4dd2cf9a02e82990e685198e329703/inc CODE > (0x19058c4) CODE(0x1905a18)) at (eval 16) line 3. > ##
this is not a bug in PAR but in Module::ScanDeps. You use Image::Info which uses Image::Info::TIFF in some weird, dynamic way which isn't picked up by the Module::ScanDeps dependency scanner. You can circumvent the problem by adding the following to your code: sub _hints_for_par { require Image::Info::TIFF; # possibly also "require Image::TIFF;" } You needn't call that sub. It's just there for the dependency scanner. Anyhow, Module::ScanDeps 0.70 which hasn't been released yet will automatically detect the dependency on Image::Info::* if Image::Info is loaded. Steffen
Subject: Re: [rt.cpan.org #23518] pp and Image::Info
Date: Tue, 21 Nov 2006 12:19:36 +0100
To: bug-PAR [...] rt.cpan.org
From: ademmler <news [...] ademmler.com>
Dear Steffen! Thank you verry much for this verry fast and excellent support. Please not, that I did not want to say it is "perl pars" fault. I have just know, that you will now the reason better . . . ;-)) Thanks and I love PerlPar, because it is working! Regards Alex