Hi Edward.

I found this problem in Leo where it doesn't start normally, giving this 
error:

Traceback (most recent call last):
  File "D:\Jose\Archivos de programa\Leo\launchLeo.py", line 8, in <module>
    leo.core.runLeo.run()
  File "D:\Jose\Archivos de programa\Leo\leo\core\runLeo.py", line 81, in 
run
    g.app.loadManager.load(fileName,pymacs)
  File "D:\Jose\Archivos de programa\Leo\leo\core\leoApp.py", line 1896, in 
load

    lm.doPrePluginsInit(fileName,pymacs)
  File "D:\Jose\Archivos de programa\Leo\leo\core\leoApp.py", line 1939, in 
doPr
ePluginsInit
    lm.initApp(verbose)
  File "D:\Jose\Archivos de programa\Leo\leo\core\leoApp.py", line 2064, in 
init
App
    g.app.setLeoID(verbose=verbose)
  File "D:\Jose\Archivos de programa\Leo\leo\core\leoApp.py", line 1067, in 
setL
eoID
    g.app.createDefaultGui(fileName='g.app.setLeoId',verbose=True)
  File "D:\Jose\Archivos de programa\Leo\leo\core\leoApp.py", line 767, in 
creat
eDefaultGui
    app.createQtGui(fileName,verbose=verbose)
  File "D:\Jose\Archivos de programa\Leo\leo\core\leoApp.py", line 801, in 
creat
eQtGui
    qtGui.init()
  File "D:\Jose\Archivos de programa\Leo\leo\plugins\qtGui.py", line 1897, 
in in
it
    g.app.gui = leoQtGui()
  File "D:\Jose\Archivos de programa\Leo\leo\plugins\qtGui.py", line 7465, 
in __
init__
    self.color_theme = g.app.config.getString('color_theme')
AttributeError: 'NoneType' object has no attribute 'getString'

The strange thing is I could start Leo from a Cygwin console.

I patched qtGui.py changing line 7465:

self.color_theme = g.app.config.getString('color_theme')

With:

        if g.app.config:
          self.color_theme = g.app.config.getString('color_theme')
        else:
          self.color_theme = None

Then Leo would start correctly, asking me for the Leo ID. I realized, after 
the Leo ID file exists, I can undo the patch I posted above and Leo will 
still start correctly. So this problem happens when Leo asks for that Leo 
ID.

Regards,
José Manuel

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to