On Thu, 04 Jan 2018 22:51:21 +0100, Reiner Buehl wrote:

> after upgrading my system from Jessie to Stretch, I get the
> following error messages from a perl skript that used to work fine
> before the upgrade:
> 
> 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.

Could you please show us how you use DateTime::Locale in your script?
 

The upstream changelog shows some thing around en_US and en-US but I
can't reproduce the problem in my quick naïve try:

% perl -MDateTime::Locale -E '$locale = DateTime::Locale->load("en-US"); say 
$locale->native_name;' 
English United States
% perl -MDateTime::Locale -E '$locale = DateTime::Locale->load("en_US"); say 
$locale->native_name;' 
English United States


And regarding your error message about a missing
"DateTime/Locale/en_US.pm":

/usr/share/perl5/DateTime/Locale/en_US.pm has indeed existed some
versions ago, then the whole thing has been restructured; cf. the
section "0.90     2015-09-27" in
/usr/share/doc/libdatetime-locale-perl/changelog.gz.


So my suspicion is that you are using what is called the "old API" in
the upstream changelog and need to update your script.


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: Sinéad O'Connor: Jealous

Attachment: signature.asc
Description: Digital Signature

Reply via email to