Bug#886363: libdatetime-locale-perl: After upgrade from Jessie to Stretch, Can't locate DateTime/Locale/en_US.pm in @INC

reiner reiner at buehl.net
Fri Jan 5 08:13:29 UTC 2018


I did delete the config file and that solved the issue. Thanks Gregor!


-------- Ursprüngliche Nachricht --------Von: gregor herrmann <gregoa at debian.org> Datum: 05.01.18  00:45  (GMT+01:00) An: Reiner Buehl <reiner at buehl.net> Cc: 886363 at bugs.debian.org Betreff: Re: Bug#886363: libdatetime-locale-perl: After upgrade from Jessie to Stretch, Can't locate DateTime/Locale/en_US.pm in @INC 
On Fri, 05 Jan 2018 00:22:59 +0100, Reiner Buehl wrote:

> my script does not use DateTime::Locale directly. I only use DateTime. This
> is the script I use:
> 
> #!/usr/bin/perl
> use Net::Twitter;
> use Scalar::Util 'blessed';
> use DateTime;
> use Storable qw(retrieve nstore);
> use LWP::Simple;
> 
> # Variable definitions
> my $configfile = "/home/reiner/.FollowTwitterStream";
> my $path = "/home/reiner/Twitter";
> my $consumer_key = 'xxxxxxxxxx';
> my $consumer_secret = 'xxxxxxxxxxxx';
> my $token = 'xxxxxxxxxxxxxxxxxxxxxxxx';
> my $token_secret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';
> my $high_water = 429901897936674816;
> my $dt;
> my $DEBUG = 0;
> 
> # Kill script after 59 min to avoid hanging
> alarm(3540);
> 
> # Read config
> if (-r $configfile) {
>     $dt = retrieve("$configfile");
> }
[..]

Looking back at the error you got:

> Can't locate DateTime/Locale/en_US.pm in @INC (you may need to install the DateTime::Locale::en_US module) (@INC contains: /etc/perl
> /usr/local/lib/i386-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/i386-linux-gnu/perl5/5.24 /usr/share/perl5
> /usr/lib/i386-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/i386-linux-gnu/perl-base) at
> /usr/lib/i386-linux-gnu/perl/5.24/Storable.pm line 389, <DATA> line 1.
> BEGIN failed--compilation aborted, <DATA> line 1, at /home/reiner/bin/FollowTwitterStream.pl line 24.

/home/reiner/bin/FollowTwitterStream.pl line 24 is
|     $dt = retrieve("$configfile");

and the error before also refers to /usr/lib/i386-linux-gnu/perl/5.24/Storable.pm

So it seems that you are loading something from
my $configfile = "/home/reiner/.FollowTwitterStream";
which doesn't work anymore.

I'd probably add something like
| use Data::Dumper; print STDERR Dumper $dt; exit;
after line 24 to see what's in this $configfile.
 
[... end of script ...]
> $dt = DateTime->now;
> nstore $dt, "$configfile";

Well, if it's only the current time which is stored there, the file
can probably also deleted without much harm ...



Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Mercedes Sosa: Palabras Para Julia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20180105/221e517b/attachment.html>


More information about the pkg-perl-maintainers mailing list