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

Title : Koha-devel Digest, Vol 203, Issue 19
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. Re: Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(Michael Kuhn)
2. Re: Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(Michael Hafen)
3. Re: Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(Mason James)
4. Koha packages are available 馃巵 (Mason James)
5. Re: [Koha] Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(Tomas Cohen Arazi)
6. Re: [Koha] Koha 22.05.04: Can't locate Koha/Script.pm in @INC
(Michael Kuhn)


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

Message: 1
Date: Fri, 28 Oct 2022 15:51:18 +0200
From: Michael Kuhn <mik@adminkuhn.ch>
To: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Koha 22.05.04: Can't locate Koha/Script.pm
    in @INC
Message-ID: <2f18f828-f368-0250-94a6-6d1d469be34a@adminkuhn.ch>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi David

You wrote:

> could it be that you were executing the command with a different user?

No, I definitely have always run the command as Linux user "root". The
only difference I am aware of is this time I was first running the
command under Koha 22.05.

Best wishes: Michael
--
Gesch盲ftsf眉hrer 路 Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH 路 Pappelstrasse 20 路 4123 Allschwil 路 Schweiz
T 0041 (0)61 261 55 61 路 E mik@adminkuhn.ch 路 W www.adminkuhn.ch



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

Message: 2
Date: Fri, 28 Oct 2022 14:28:53 -0600
From: Michael Hafen <michael.hafen@washk12.org>
Cc: koha-devel@lists.koha-community.org
Subject: Re: [Koha-devel] Koha 22.05.04: Can't locate Koha/Script.pm
    in @INC
Message-ID:
    <CAAh7UdnyyLL8QycjKXaO9OiXBdNxRmJPOPFnykBSADCCK4OMPQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

This command has probably been changed since the last time you used it to
be used with the koha-shell or koha-foreach scripts that come with the
koha-common debian package. Those scripts set the config and perl include
environment.

On Fri, Oct 28, 2022 at 7:51 AM Michael Kuhn <mik@adminkuhn.ch> wrote:

> Hi David
>
> You wrote:
>
> > could it be that you were executing the command with a different user?
>
> No, I definitely have always run the command as Linux user "root". The
> only difference I am aware of is this time I was first running the
> command under Koha 22.05.
>
> Best wishes: Michael
> --
> Gesch盲ftsf眉hrer 路 Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> Admin Kuhn GmbH 路 Pappelstrasse 20 路 4123 Allschwil 路 Schweiz
> T 0041 (0)61 261 55 61 路 E mik@adminkuhn.ch 路 W www.adminkuhn.ch
>
> _______________________________________________
> 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/
>


--
Michael Hafen
Washington County School District Technology Department
Systems Analyst
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20221028/996d191c/attachment-0001.htm>

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

Message: 3
Date: Sat, 29 Oct 2022 15:18:40 +1300
From: Mason James <mtj@kohaaloha.com>
To: Michael Kuhn <mik@adminkuhn.ch>,
    koha-devel@lists.koha-community.org, Koha <koha@lists.katipo.co.nz>
Subject: Re: [Koha-devel] Koha 22.05.04: Can't locate Koha/Script.pm
    in @INC
Message-ID: <4335aa54-adc2-4ee7-5018-d868c43d2648@kohaaloha.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 29/10/22 12:34 am, Michael Kuhn wrote:
> Hi David and Indranil
>
> Thank you very much, this works!
>
> Interestingly addin variable PERL5LIB was never before necessary when I ran "bulkmarcimport.pl" (and I do this a lot).
>
> Best wishes: Michael

hi Michael

i think it's always been necessary to have the PERL5LIB set correctly


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

Message: 4
Date: Sat, 29 Oct 2022 16:00:19 +1300
From: Mason James <mtj@kohaaloha.com>
To: "koha@lists.katipo.co.nz" <koha@lists.katipo.co.nz>, Koha Devel
    <koha-devel@lists.koha-community.org>
Subject: [Koha-devel] Koha packages are available 馃巵
Message-ID: <38871fe4-7b37-66f6-b55a-9ab96251cf6a@kohaaloha.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

kia ora community,

the latest Koha packages are available

an installation guide is below...
https://wiki.koha-community.org/wiki/Koha_on_Debian


cheers, Mason


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

Message: 5
Date: Sat, 29 Oct 2022 03:29:17 -0300
From: Tomas Cohen Arazi <tomascohen@gmail.com>
To: Michael Kuhn <mik@adminkuhn.ch>
Cc: Koha <koha@lists.katipo.co.nz>, Koha-devel
    <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] [Koha] Koha 22.05.04: Can't locate
    Koha/Script.pm in @INC
Message-ID:
    <CABZfb=XKVGKNVmC2CWBe7eCZSjJPjgSAJWBmTnvY3v4vMpj6dw@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Are you by chance running the command in the root shell? You should always
run it inside koha-shell

El vie, 28 oct 2022 8:03, Michael Kuhn <mik@adminkuhn.ch> escribi贸:

> Hi
>
> I am running a fresh installation of Koha 22.05.04 on Debian 11.
>
> I am trying to load some data using "bulkmarcimport.pl":
>
> # export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml
> # /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml
> -framework=ABC -file TITEL.marcxml -v 2
> Can't locate Koha/Script.pm in @INC (you may need to install the
> Koha::Script module) (@INC contains: /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1
> /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32
> /usr/share/perl/5.32 /usr/local/lib/site_perl) at
> /usr/share/koha/bin/migration_tools/bulkmarcimport.pl line 13.
> BEGIN failed--compilation aborted at
> /usr/share/koha/bin/migration_tools/bulkmarcimport.pl line 13.
>
> "Script.pm" seems to be there:
>
> # ls -al /usr/share/koha/lib/Koha/Script.pm
> -rw-r--r-- 1 root root 4129 24. Aug 07:51
> /usr/share/koha/lib/Koha/Script.pm
>
> How can I get script "bulkmarcimport.pl" to actually run?
>
> Best wishes: Michael
> --
> Gesch盲ftsf眉hrer 路 Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> Admin Kuhn GmbH 路 Pappelstrasse 20 路 4123 Allschwil 路 Schweiz
> T 0041 (0)61 261 55 61 路 E mik@adminkuhn.ch 路 W www.adminkuhn.ch
> _______________________________________________
>
> Koha mailing list http://koha-community.org
> Koha@lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20221029/34b42e4f/attachment-0001.htm>

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

Message: 6
Date: Sat, 29 Oct 2022 10:10:59 +0200
From: Michael Kuhn <mik@adminkuhn.ch>
To: Tomas Cohen Arazi <tomascohen@gmail.com>
Cc: Koha <koha@lists.katipo.co.nz>, Koha-devel
    <koha-devel@lists.koha-community.org>
Subject: Re: [Koha-devel] [Koha] Koha 22.05.04: Can't locate
    Koha/Script.pm in @INC
Message-ID: <466bf4d3-4270-504f-3644-47e9ca985a01@adminkuhn.ch>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Thomas

You wrote:

> Are you by chance running the command in the root shell?

Yes I am, I always did (and it worked up to Koha 21.11).

For now it worked using:

# export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml
# export PERL5LIB=/usr/share/koha/lib
# /usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml
-framework=ABC -file TITEL.marcxml -v 2

> You should always run it inside koha-shell

OK - next time I'll try:

$ sudo koha-shell -c
"/usr/share/koha/bin/migration_tools/bulkmarcimport.pl -b -m marcxml
-framework=ABC -file TITEL.marcxml -v 2" library

Unfortunately
https://perldoc.koha-community.org/misc/migration_tools/bulkmarcimport.html
does not give the correct information how to run this script.

Best wishes: Michael
--
Gesch盲ftsf眉hrer 路 Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH 路 Pappelstrasse 20 路 4123 Allschwil 路 Schweiz
T 0041 (0)61 261 55 61 路 E mik@adminkuhn.ch 路 W www.adminkuhn.ch


> El vie, 28 oct 2022 8:03, Michael Kuhn <mik@adminkuhn.ch
> <mailto:mik@adminkuhn.ch>> escribi贸:
>
> Hi
>
> I am running a fresh installation of Koha 22.05.04 on Debian 11.
>
> I am trying to load some data using "bulkmarcimport.pl
> <http://bulkmarcimport.pl>":
>
> # export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml
> # /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
> <http://bulkmarcimport.pl> -b -m marcxml
> -framework=ABC -file TITEL.marcxml -v 2
> Can't locate Koha/Script.pm in @INC (you may need to install the
> Koha::Script module) (@INC contains: /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.32.1
> /usr/local/share/perl/5.32.1
> /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32
> /usr/share/perl/5.32 /usr/local/lib/site_perl) at
> /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
> <http://bulkmarcimport.pl> line 13.
> BEGIN failed--compilation aborted at
> /usr/share/koha/bin/migration_tools/bulkmarcimport.pl
> <http://bulkmarcimport.pl> line 13.
>
> "Script.pm" seems to be there:
>
> # ls -al /usr/share/koha/lib/Koha/Script.pm
> -rw-r--r-- 1 root root 4129 24. Aug 07:51
> /usr/share/koha/lib/Koha/Script.pm
>
> How can I get script "bulkmarcimport.pl <http://bulkmarcimport.pl>"
> to actually run?
>
> Best wishes: Michael
> --
> Gesch盲ftsf眉hrer 路 Diplombibliothekar BBS, Informatiker eidg. Fachausweis
> Admin Kuhn GmbH 路 Pappelstrasse 20 路 4123 Allschwil 路 Schweiz
> T 0041 (0)61 261 55 61 路 E mik@adminkuhn.ch
> <mailto:mik@adminkuhn.ch> 路 W www.adminkuhn.ch <http://www.adminkuhn.ch>
> _______________________________________________
>
> Koha mailing list http://koha-community.org <http://koha-community.org>
> Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz>
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> <https://lists.katipo.co.nz/mailman/listinfo/koha>
>




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

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 203, Issue 19
*******************************************


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