[Koha-devel] Difficulties with JSON::Validator after upgrading to 22.05

Tomas Cohen Arazi tomascohen at gmail.com
Fri Aug 26 23:07:13 CEST 2022


I think it is failing to import something and THEN failing due to that. But
yeah, solved. Now to develop great things

El vie, 26 ago 2022 15:46, Philippe Blouin <philippe.blouin at inlibro.com>
escribió:

> Well, you got that right!  Upgrading to 22.04 made the error disappear.
>
> But from a programming standpoint, I still don't get why the errors.
>
> Oh well, I just hope JSON::Validator / Mojolicious libraries errors are
> behind us now.
>
> Thanks again!
> Philippe Blouin,
> Directeur de la technologie
>
> Tél.  : (833) 465-4276, poste 230
> philippe.blouin at inLibro.com
> inLibro | pour esprit libre | www.inLibro.com
> On 2022-08-26 13:32, Tomas Cohen Arazi wrote:
>
> You've got the wrong library version.
>
> Ubuntu 20.04 is old in terms of the Debian version of is based on. I'm
> pretty sure you can append 'focal' to the repository configuration line and
> it will pull the right dependencies.
>
> El vie, 26 ago 2022 14:08, Philippe Blouin <philippe.blouin at inlibro.com>
> escribió:
>
>> Hi folks!
>>
>> Got a really weird error in my logs right now:
>>
>> "is_bool" is not exported by the JSON::Validator::Util module
>>  "is_num" is not exported by the JSON::Validator::Util module
>>  "str2data" is not exported by the JSON::Validator::Util module
>> Can't continue after import errors at /usr/share/perl5/JSON/Validator/Schema.pm line 7.
>> BEGIN failed--compilation aborted at /usr/share/perl5/JSON/Validator/Schema.pm line 7.
>> Compilation failed in require at /usr/share/perl5/Mojo/Base.pm line 134.
>> BEGIN failed--compilation aborted at /usr/share/perl5/JSON/Validator/Schema/Draft4.pm line 2.
>> Compilation failed in require at /usr/share/perl5/Mojo/Base.pm line 134.
>> BEGIN failed--compilation aborted at /usr/share/perl5/JSON/Validator/Schema/OpenAPIv2.pm line 2.
>> Compilation failed in require at /inlibro/git/koha-v22-dev-blou/Koha/REST/V1.pm line 25.
>> BEGIN failed--compilation aborted at /inlibro/git/koha-v22-dev-blou/Koha/REST/V1.pm line 25.
>> Compilation failed in require at (eval 22) line 1.
>>
>> Which ruins most table displays.
>>
>> The error is weird in many ways, including the fact that
>> /usr/share/perl5/JSON/Validator/Util.pm DOES export is_bool and friend in
>> its header.
>>
>> cpan tells me I have the latest version, etc...
>>
>> I have Ubuntu 20.04, which I'm upgrading now to 22.04, but I don't expect
>> much to change there considering the error.
>>
>>
>> Any suggestion?
>>
>>
>> Best regards,
>> --
>> Philippe Blouin,
>> Directeur de la technologie
>>
>> Tél.  : (833) 465-4276, poste 230
>> philippe.blouin at inLibro.com
>> inLibro | pour esprit libre | www.inLibro.com
>> _______________________________________________
>> Koha-devel mailing list
>> Koha-devel at lists.koha-community.org
>> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
>> website : https://www.koha-community.org/
>> git : https://git.koha-community.org/
>> bugs : https://bugs.koha-community.org/
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220826/e89e031e/attachment.htm>


More information about the Koha-devel mailing list