problem with execution officiel script

Previous topic - Next topic

loudo

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]

utnik

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.
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

loudo

But I don't install Tcl package.
Scribus don't use its own package ?

utnik

hi loudo

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



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

utnik

loudo

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?

utnik

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

srikrishnan

I am using Windows 10 and Scribus 1.6.1. in my system "CalendarWizard" script runs perfectly. just for your information

regards,
Srikrishnan