Scribus Forums

Scribus => Scripts and Plugins => Topic started by: loudo on March 20, 2024, 11:05:44 PM

Title: problem with execution officiel script
Post by: loudo on March 20, 2024, 11:05:44 PM
Hi, I'm using Scribus 1.6.1 MacOs M1 Sonoma 14.1.1
and when I want to use script like calendarWizard for example I have this message :


Traceback (most recent call last):
  File "<string>", line 11, in <module>
  File "<string>", line 677, in <module>
  File "<string>", line 667, in main
  File "/Applications/Scribus.app/Contents/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/__init__.py", line 2326, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
    /Library/Frameworks/Python.framework/Versions/3.11/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.13/library /tcl8.6.13/library

/Library/Frameworks/Python.framework/Versions/3.11/lib/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.13, need exactly 8.6.12
version conflict for package "Tcl": have 8.6.13, need exactly 8.6.12
    while executing
"package require -exact Tcl 8.6.12"
    (file "/Library/Frameworks/Python.framework/Versions/3.11/lib/tcl8.6/init.tcl" line 19)
    invoked from within
"source /Library/Frameworks/Python.framework/Versions/3.11/lib/tcl8.6/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"


This probably means that Tcl wasn't installed properly.


I don't know how to solve it [/list]
Title: Re: problem with execution officiel script
Post by: utnik on March 21, 2024, 04:52:15 AM
hi loudo

i never managed to run one of the tkinter related scribus scripts under mac os. there are some open bug reports on this topic and a request to include tkinter in the dmg (https://bugs.scribus.net/view.php?id=17096).
it looks as your version of tcl is not exactly the one scribus is looking for to run the script.

Quote from: loudo on March 20, 2024, 11:05:44 PM...version conflict for package "Tcl": have 8.6.13, need exactly 8.6.12
    while executing
"package require -exact Tcl 8.6.12"

utnik
Title: Re: problem with execution officiel script
Post by: loudo on March 21, 2024, 04:21:25 PM
But I don't install Tcl package.
Scribus don't use its own package ?
Title: Re: problem with execution officiel script
Post by: utnik on March 22, 2024, 04:55:26 AM
hi loudo

you're right. i found a folder called 'tkinter' inside of the 'scribus.app'.

(https://up.picr.de/47289752km.png)

i don't know, why scribus should search for another version...

utnik
Title: Re: problem with execution officiel script
Post by: loudo on March 22, 2024, 09:45:26 AM
Hi Utnik,

Ok, so maybe I need to ask scribus to search this folder.
Do you know if this is possible and how to do it?
Title: Re: problem with execution officiel script
Post by: utnik on March 22, 2024, 12:25:47 PM
hi loudo

unfortunately i can't help here.
i hope craig bradney will find a way to solve the tkinter-macOs-problem in the near future...

utnik
Title: Re: problem with execution officiel script
Post by: srikrishnan on April 01, 2024, 10:15:05 AM
I am using Windows 10 and Scribus 1.6.1. in my system "CalendarWizard" script runs perfectly. just for your information

regards,
Srikrishnan