[scribus] Error on 1.5.0 scripting

John Culleton john at wexfordpress.com
Tue May 10 13:46:13 UTC 2011


I eliminated the parameter for scripting:
 -DWANT_SCRIPTER2=1
from my compile script.


But I still get an error when I run Scribus 1.5.0:
-----------------------------------------------------------------------------------
A problem occurred in a Python script. Here is the sequence of function calls 
leading up to the error, in the order they occurred.
 /usr/local/scribus_svn/lib/scribus/plugins/scripter/init_scripter.py in 
createMenu(mainWindow=<PyQt4.QtGui.QMainWindow object>)
   87 

   88 def createMenu(mainWindow):

   89     Scripter.menu = ScripterMenu(mainWindow)

   90 

   91 Scripter.connect("createMenu(QMainWindow*)", createMenu)

builtin Scripter = <mikro.ScripterImpl object>, Scripter.menu undefined, global 
ScripterMenu = <class '__main__.ScripterMenu'>, mainWindow = 
<PyQt4.QtGui.QMainWindow object>

 /usr/local/scribus_svn/lib/scribus/plugins/scripter/init_scripter.py in 
__init__(self=<__main__.ScripterMenu object>, parent=<PyQt4.QtGui.QMainWindow 
object>)
   59         self.setObjectName("Menu")

   60         self.popup = QMenu(i18n("Scripter"))

   61         MenuHooks().insertMenuAfter("E&xtras", self.popup)

   62         self._load_entries()

   63 

global MenuHooks = <class 'scripter_hooks.MenuHooks'>, ).insertMenuAfter = 
<unbound method MenuHooks.insertMenuAfter>, self = <__main__.ScripterMenu 
object>, self.popup = <PyQt4.QtGui.QMenu object>

 /usr/local/scribus_svn/lib/scribus/plugins/scripter/scripter_hooks.py in 
__init__(self=<scripter_hooks.MenuHooks object>, window=None)
   20 

   21     def __init__(self, window=None):

   22         self.window = window or Scripter.dialogs.mainWindow.qt

   23         self.menubar = self.window.menuBar()

   24         self.menus = []

self = <scripter_hooks.MenuHooks object>, self.window undefined, window = None, 
builtin Scripter = <mikro.ScripterImpl object>, Scripter.dialogs = 
<mikro.DialogsAPI object>, Scripter.dialogs.mainWindow = None, 
Scripter.dialogs.mainWindow.qt undefined

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'qt' 
      args = ("'NoneType' object has no attribute 'qt'",) 
      message = "'NoneType' object has no attribute 'qt'" 
---------------------------------------
Also the splash screen shows:
30 April 2011
Build ID: C-C-T-F-PC1.9.99
Using Ghostscript version 9.00 

Is this a Scribus error or is there something missing on my system?
 
John Culleton
Create Book Covers with Scribus:
http://www.booklocker.com/books/4055.html



More information about the scribus mailing list