A new request with request id 7769 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is :

Title : Koha-devel Digest, Vol 201, Issue 22
Category :
Description :
Send Koha-devel mailing list submissions to
    koha-devel@lists.koha-community.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
or, via email, send a message with subject or body 'help' to
    koha-devel-request@lists.koha-community.org

You can reach the person managing the list at
    koha-devel-owner@lists.koha-community.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Koha-devel digest..."


Today's Topics:

1. Difficulties with JSON::Validator after upgrading to 22.05
(Philippe Blouin)
2. Re: Difficulties with JSON::Validator after upgrading to
22.05 (Tomas Cohen Arazi)
3. Re: Difficulties with JSON::Validator after upgrading to
22.05 (Philippe Blouin)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Aug 2022 13:07:43 -0400
From: Philippe Blouin <philippe.blouin@inlibro.com>
To: "koha-devel@lists.koha-community.org"
    <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Difficulties with JSON::Validator after
    upgrading to 22.05
Message-ID: <c4064c2f-4427-fb72-e394-77f9360e2366@inlibro.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

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 theJSON::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@inLibro.com

inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220826/e4724f4d/attachment-0001.htm>

------------------------------

Message: 2
Date: Fri, 26 Aug 2022 14:32:31 -0300
From: Tomas Cohen Arazi <tomascohen@gmail.com>
To: Philippe Blouin <philippe.blouin@inlibro.com>
Cc: koha-devel <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] Difficulties with JSON::Validator after
    upgrading to 22.05
Message-ID:
    <CABZfb=WkUH5FxbUDymg17rNKkmQAs2QbLEcg4Nh6+raOfU3dgw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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@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@inLibro.com
> inLibro | pour esprit libre | www.inLibro.com
> _______________________________________________
> Koha-devel mailing list
> Koha-devel@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/70420908/attachment-0001.htm>

------------------------------

Message: 3
Date: Fri, 26 Aug 2022 14:46:54 -0400
From: Philippe Blouin <philippe.blouin@inlibro.com>
To: Tomas Cohen Arazi <tomascohen@gmail.com>,
    "koha-devel@lists.koha-community.org"
    <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] Difficulties with JSON::Validator after
    upgrading to 22.05
Message-ID: <b214a32d-9400-9df8-f246-eae4d97e9559@inlibro.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

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@inLibro.com

inLibro | pour esprit libre | www.inLibro.com <http://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@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 theJSON::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@inLibro.com
>
> inLibro | pour esprit libre | www.inLibro.com
> <http://www.inLibro.com>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel@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/b4c8b4b7/attachment.htm>

------------------------------

Subject: Digest Footer

_______________________________________________
Koha-devel mailing list
Koha-devel@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/


------------------------------

End of Koha-devel Digest, Vol 201, Issue 22
*******************************************


NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.