[Twisted-Python] Defect in twisted/persisted/sob.py

Paul Reznicek maillists at ivsn.com
Tue Jan 10 15:57:17 EST 2006

After update to trunk, twistd do not start as a daemon with following error:

    Starting my-app: twistd
    Failed to load application: global name 'mainMod' is not defined

Following patch helped, please consider to apply to trunk:

Index: sob.py
--- sob.py    (Revision 15568)
+++ sob.py    (Arbeitskopie)
@@ -157,6 +157,7 @@
      @param style: string (one of 'source', 'xml' or 'pickle')
      @param passphrase: string
+    global mainMod
      mode = 'r'
      if style=='source':
          from twisted.persisted.aot import unjellyFromSource as load

More information about the Twisted-Python mailing list