Scribusoid

Author Topic: scripter not working  (Read 3832 times)

kenhan

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
  • Scribus User
scripter not working
« on: April 09, 2013, 10:56:03 pm »
Hi,

OS X 10.8.3 + Scribus 1.4.2
With a blank document window, selecting Script -> Scribus Scripts -> CalendarWizard or FontSample says "Running script..." but nothing happens. Can anyone test to see if scripting works in OS X? Thanks.

stansanderson

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Scribus User
Re: scripter not working
« Reply #1 on: November 12, 2013, 12:17:23 am »
I have encountered the same behavior with Scribus v.1.4.3 and OS X 10.6.x and 10.9 (Mavericks). This includes a separate install through MacPorts.

On the machine running OS X 10.6, an iMac, I have Windows XP pro also installed. I installed Scribus 1.4.3  in that partition and found that the calendar and font scripts work.

I've been looking for hints but haven't found any (at least any I understand!).

utnik

  • Hero Member
  • *****
  • Posts: 1278
  • Karma: 14
Re: scripter not working
« Reply #2 on: November 12, 2013, 02:07:16 am »
hi kenhan and stansanderson

i once tryed to use the calendarWizard and had the same problem. when i took a look at the script, i found this:

DESCRIPTION & USAGE:
This script needs Tkinter...


it's the same with fontSample.
i had some problems when trying to install tkinter on os 10.6 – finally i gave up…

utnik

Kunda

  • Administrator
  • Full Member
  • *****
  • Posts: 218
  • Karma: 2
  • Scribus User
Re: scripter not working
« Reply #3 on: November 14, 2013, 08:28:15 pm »
Anybody interested in continuing this?
Starting from 10.8+

stansanderson

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Scribus User
Re: scripter not working
« Reply #4 on: November 14, 2013, 10:50:01 pm »
I'm running OS 10.9, have two installs of Scribus on the machine. One is the official package installed from a .dmg, the other installed through MacPorts. The official install will not run either the Calendar Wizard or Font Sample script. The MacPorts installed Scribus now runs the Font Sample script. A suggestion from MacPorts Users was to install tk +x11. (tk +quartz was currently installed) After I did that, the Font Page dialog appeared and font samples were displayed.

Following installation of tk +x11, Calendar Wizard started running, but the options window did not appear. Instead, the following message was displayed with a request that it be reported to the Scribus bug list:
---------
Traceback (most recent call last):
  File "<string>", line 8, in <module>
  File "/Applications/MacPorts/Scribus1.4.3.app/Contents/share/scribus/scripts/CalendarWizard.py", line 669, in <module>
    main()
  File "/Applications/MacPorts/Scribus1.4.3.app/Contents/share/scribus/scripts/CalendarWizard.py", line 660, in main
    app = TkCalendar(root)
  File "/Applications/MacPorts/Scribus1.4.3.app/Contents/share/scribus/scripts/CalendarWizard.py", line 547, in __init__
    self.statusLabel.grid(column=0, row=currRow, columnspan=4)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1963, in grid_configure
    + self._options(cnf, kw))
TclError: cannot use geometry manager grid inside .4686984112 which already has slaves managed by pack
--------
I don't have a clue as to the meaning of the last line ("TclError... ) and would appreciate its interpretation.

Since I do not have access to bugs.scribus, I posted that message (and the output of scribus when started from the Terminal) to the MacPorts list. A gentleman who stated he was a retired Scribus developer had asked for that information. He stated that python scripts are "...crashing in the python/tk interpreter...".

I have seen references to tkinter behaving strangely on Mac OS.

« Last Edit: November 20, 2013, 05:31:40 am by stansanderson »

Kunda

  • Administrator
  • Full Member
  • *****
  • Posts: 218
  • Karma: 2
  • Scribus User
Re: scripter not working
« Reply #5 on: November 25, 2013, 06:27:58 pm »
Great feedback!

Come to http://wiki.scribus.net/canvas/Special:WebChat and ask malex for access to the bugtracker. Then post this.
« Last Edit: November 26, 2013, 07:02:16 pm by Kunda »

 

palmate