Re: Missing *pm files for DateTime::Locale
[email protected] (Dave Rolsky) Fri, 17 Nov 2023 16:29:14 -0600
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <CAHKw1M+Ku6wd6ZcgQ9MyMP+TE3tdpbsWG4xt1c3AvHG3+uv0MQ@mail.gmail.com> |
--000000000000351a6d060a60ab86 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Norbert, The way the locale data is packaged changed a while back in the 1.00 release in 2015. There's no longer a `.pm` file per locale. If you want to preload locale data, you should just call `DateTime::Locale->load($locale)`= . I'm guessing you have some `Storable`-serialized `DateTime` objects that included pre-1.00 locales. The only way to thaw them is probably to install an older `DateTime-Locale` release. Longer-term, I'd suggest _not_ using `Storable` to serialize data. It generates data that is too tied together with the internals of the libraries that produced the objects. Cheers, Dave Rolsky http://blog.urth.org https://github.com/autarch On Fri, Nov 17, 2023 at 12:34=E2=80=AFPM Zacharias, Norbert via datetime < [email protected]> wrote: > Hi all, > > I try to install DateTime. Even there is no error reported during > installation it seems that the *pm files like en_US.pm are missing. The > only related files I can find are *.pod like en_US.pod. > If I try to use Storable::retrieve I get an error message > > perl -e "use Storable retrieve ; \$x=3Dretrieve('./VeriPars.dat');" > Can't locate DateTime/Locale/en_US.pm in @INC (you may need to install th= e > DateTime::Locale::en_US module) (@INC contains: > /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads > /usr/local/share/perl5/site_perl/5.32 > /usr/lib/perl5/vendor_perl/5.32/x86_64-cygwin-threads > /usr/share/perl5/vendor_perl/5.32 /usr/lib/perl5/5.32/x86_64-cygwin-threa= ds > /usr/share/perl5/5.32) at > /usr/lib/perl5/5.32/x86_64-cygwin-threads/Storable.pm line 421. > BEGIN failed--compilation aborted, at -e line 1. > > Storable is uptodate: > > Storable > ------------------------------------------------------------------------- > (no description) > N/NW/NWCLARK/Storable-3.25.tar.gz > > /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/Storable.pm > Installed: 3.25 > CPAN: 3.25 up to date > Nicholas Clark (NWCLARK) > [email protected] > > > Do I miss something? > > Thanks in advance for your help > > Norbert Zacharias > > UL International GmbH > Kasinoplatz 3 > 26122 Oldenburg, Germany > > T:: +49 441 77937 110 | F:: +49 441 77937 133 | [email protected]| > www.ul.com > > Commercial Register No.: Amtsgericht Oldenburg, HRB 130241 > VAT DE117895432 St-Nr. 20/200/32924-PAN AADCD15130A > Gesch=C3=A4ftsf=C3=BChrer/Managing Director: Mirko Bautz, Ryan David Robi= nson, Gitte > Schj=C3=B8tz > > > > This e-mail may contain privileged or confidential information. If you ar= e > not the intended recipient: (1) you may not disclose, use, distribute, co= py > or rely upon this message or attachment(s); and (2) please notify the > sender by reply e-mail, and then delete this message and its attachment(s= ). > Underwriters Laboratories Inc. and its affiliates disclaim all liability > for any errors, omissions, corruption or virus in this message or any > attachments. > --000000000000351a6d060a60ab86 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Norbert,<div><br></div><div>The way the locale data is = packaged changed a while back in the 1.00 release in 2015. There's no l= onger a `.pm` file per locale. If you want to preload locale data, you shou= ld just call `DateTime::Locale->load($locale)`.</div><div><br></div><div= >I'm guessing you have some `Storable`-serialized `DateTime` objects th= at included pre-1.00 locales. The only way to thaw them is probably to inst= all an older `DateTime-Locale` release.</div><div><br></div><div>Longer-ter= m, I'd suggest _not_ using `Storable` to serialize data. It generates d= ata that is too tied together with the internals of the libraries that prod= uced the objects.</div><div><br clear=3D"all"><div><div dir=3D"ltr" class= =3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><d= iv><div dir=3D"ltr"><div><br></div><div>Cheers,</div><div><br></div><div>Da= ve Rolsky</div><div><a href=3D"http://blog.urth.org" target=3D"_blank">http= ://blog.urth.org</a></div><div><a href=3D"https://github.com/autarch" targe= t=3D"_blank">https://github.com/autarch</a></div></div></div></div></div></= div><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class= =3D"gmail_attr">On Fri, Nov 17, 2023 at 12:34=E2=80=AFPM Zacharias, Norbert= via datetime <<a href=3D"mailto:[email protected]">[email protected]</a= >> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px= 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi = all,<br> <br> I try to install DateTime. Even there is no error reported during installat= ion it seems that the *pm files like en_US.pm are missing. The only related= files I can find are *.pod like en_US.pod.<br> If I try to use Storable::retrieve I get an error message<br> <br> perl -e "use Storable retrieve ; \$x=3Dretrieve('./VeriPars.dat= 9;);"<br> Can't locate DateTime/Locale/en_US.pm in @INC (you may need to install = the DateTime::Locale::en_US module) (@INC contains: /usr/local/lib/perl5/si= te_perl/5.32/x86_64-cygwin-threads /usr/local/share/perl5/site_perl/5.32 /u= sr/lib/perl5/vendor_perl/5.32/x86_64-cygwin-threads /usr/share/perl5/vendor= _perl/5.32 /usr/lib/perl5/5.32/x86_64-cygwin-threads /usr/share/perl5/5.32)= at /usr/lib/perl5/5.32/x86_64-cygwin-threads/Storable.pm line 421.<br> BEGIN failed--compilation aborted, at -e line 1.<br> <br> Storable is uptodate:<br> <br> Storable<br> -------------------------------------------------------------------------<b= r> =C2=A0 =C2=A0 =C2=A0 =C2=A0 (no description)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 N/NW/NWCLARK/Storable-3.25.tar.gz<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 /usr/local/lib/perl5/site_perl/5.32/x86_64-cygw= in-threads/Storable.pm<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Installed: 3.25<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 CPAN:=C2=A0 =C2=A0 =C2=A0 3.25=C2=A0 up to date= <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 Nicholas Clark (NWCLARK)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"mailto:nwc10%2Bplease%2Buse%2Bperlbu= g%2Bfor%2Bperl%[email protected]" target=3D"_blank">nwc10+please= [email protected]</a><br> <br> <br> Do I miss something?<br> <br> Thanks in advance for your help<br> <br> Norbert Zacharias<br> <br> UL International GmbH<br> Kasinoplatz 3<br> 26122 Oldenburg, Germany<br> <br> T:: +49 441 77937 110 | F:: +49 441 77937 133 | <a href=3D"mailto:Norbert.Z= [email protected]" target=3D"_blank">[email protected]</a>| <a href=3D= "http://www.ul.com" rel=3D"noreferrer" target=3D"_blank">www.ul.com</a><br> <br> Commercial Register No.: Amtsgericht Oldenburg, HRB 130241<br> VAT DE117895432 St-Nr. 20/200/32924-PAN AADCD15130A<br> Gesch=C3=A4ftsf=C3=BChrer/Managing Director: Mirko Bautz, Ryan David Robins= on, Gitte Schj=C3=B8tz<br> <br> <br> <br> This e-mail may contain privileged or confidential information. If you are = not the intended recipient: (1) you may not disclose, use, distribute, copy= or rely upon this message or attachment(s); and (2) please notify the send= er by reply e-mail, and then delete this message and its attachment(s). Und= erwriters Laboratories Inc. and its affiliates disclaim all liability for a= ny errors, omissions, corruption or virus in this message or any attachment= s.<br> </blockquote></div> --000000000000351a6d060a60ab86--