[scribus] ExtractText script goes zombie

ZASKE Martin zm at revue-gugu.org
Thu Jun 15 19:42:17 UTC 2017

Dear list,

just wrapping up our book, doing final tests. I was glad that the old
sample scripts are still being included in version 1.5.3.

This one is very useful for us:

"C:\Program Files\Scribus 1.5.3\share\samples\ExtractText.py"

It has helped me searching the entire complex, multi-layer, multi-story
document for forbidden characters, not-matching quotation markers and do
some more regex magic.

Sadly the script does not close at all in my Windows 10; it stops with
the message window


path/my_extract.txt was created

And this little window does not close.

This is quite impressive, because even as admin and even via the task
manager I cannot close this message window and my Scribus main window is
therefore completely blocked. Luckily I did this testing with a working

I could only get out of the lock, by using the task manager to "End
task" not on the message window but on the Scribus main window,
therefore (potentially) losing some of my work there.

While writing this e-mail, I had this deja-vu and looked through my own
notes: Seems I had this problem before and even fixed it:

The old syntax was this:
    scribus.messageBox("Finished", endmessage,icon=0,button1=1)

Now this works on my Windows:

    endmessage = textfile + " était crée"
    scribus.messageBox("Resumé", endmessage, scribus.ICON_INFORMATION,

Have I written about this before?

I had managed to adapt the script for our needs, added utf8 encoding and
got it going, with messages in French. My python is not good enough to
submit my hack, but I want to share that the original script is still
very very useful and an update would be appreciated for future Scribus

Thank you,


ZASKE Martin
responsable GʊGʊ
BP 50 - Bassila - Bénin
tel GʊGʊ
tel pers

More information about the scribus mailing list