Am 17.10.25 um 10:37 schrieb Richard Shann:
On Thu, 2025-10-16 at 19:19 +0200, Andreas Schneider wrote:
Am 15.10.25 um 10:14 schrieb Richard Shann:
> On Tue, 2025-10-14 at 22:09 +0200, Andreas Schneider wrote:
>> Am 14.10.25 um 21:37 schrieb Richard Shann:
>>> On Tue, 2025-10-14 at 19:43 +0200, Andreas Schneider wrote:
>>>> Am 14.10.25 um 10:49 schrieb Richard Shann:
>>>>> On Mon, 2025-10-13 at 19:12 +0200, Andreas Schneider wrote:
>>>>>
>>>> [...]
>>>> Unfortunately, I get a script error:
>>>
>>> You have omitted the first line of the script
>>>
>>> (use-modules (ice-9 string-fun))
>>>
>>> that module provides the function needed.
>>
>> I do have included this line,
>
> Oh, sorry, I missed it because it came at the end of the the line
"A
> script error for file/script" and I started reading the script
from
> there.
>
>> see attached screenshot. Maybe, it does
>> not find the module. Although I have the packages guile-3.0-libs
and
>> guile-2.2-libs (that both include ice-9/string-fun.scm)
installed.
>
> hmm, I didn't do anything special to get it included. If you get
up
> guile in a terminal and try to include the module does it work?
I have tested with a simple test program
(use-modules (ice-9 string-fun))
(string-replace-substring "text" "t" "")
In a guile terminal, it works flawlessly, however, in the Denemo
scheme
script window it throws a script error.
I the Denemo scheme CLI box if you execute this procedure:
(%library-dir)
what do you get on the terminal? I get
=> /usr/share/guile/3.0
With (disp (%library-dir)) I get /usr/share/guile/2.2 The script
/usr/share/guile/2.2/ice-9/string-fun.scm does exist.
It looks like I compile with guile 2.2. This is the same version the
system lilypond depends on. Would you recommend to rather compile with
guild 3? I have both 2.2 and 3.0 installed.
Andreas