#1 gEcrit not starting on Windows

open
nobody
None
5
2014-09-21
2011-05-11
Anonymous
No

On starting gEcrit it crashes with the following messages:
Iam running Python 2.7.1 and wxPython 2.8.12.0.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\tmp\gEcrit\bin>editorClass.py
Translation for local language not found.
DEBUG:root:PluginManager walks into directory: C:\tmp\gEcrit\bin\data\plugins
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\AbbreviationCompletion.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\ClassHierarchyWin.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\ClipboardViewer.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\DocumentCloner.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\HtmlConverter.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\Notes.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\PastebinDialog.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\PythonSourceBrowser.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\PyTidyFormatter.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\SpellChecker.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\StampIt.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\SyntaxChecker.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\TaskKeeper.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\Terminator.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\TreeFileBrowser.yapsy-plugin
DEBUG:root:PluginManager found a candidate:
C:\tmp\gEcrit\bin\data\plugins\WordCounter.yapsy-plugin
Spell checker pyenchant is not available.
DEBUG:root:Unable to execute the code in plugin: C:\tmp\gEcrit\bin\data\plugins\SpellC
hecker
DEBUG:root: The following problem occured:
name 'enchant' is not defined
DEBUG:root:Unable to execute the code in plugin: C:\tmp\gEcrit\bin\data\plugins\Termin
ator
DEBUG:root: The following problem occured:
No module named termios
Traceback (most recent call last):
File "C:\tmp\gEcrit\bin\editorClass.py", line 830, in <module>
main()
File "C:\tmp\gEcrit\bin\editorClass.py", line 824, in main
frame = Editor(parent=None, id=-1)
File "C:\tmp\gEcrit\bin\editorClass.py", line 146, in __init__
self.plugin_conf_manager = gEcritPluginManager(self)
File "C:\tmp\gEcrit\bin\gEcritPluginManager.py", line 25, in __init__
font = wx.Font(18, wx.ROMAN ,wx.BOLD, wx.NORMAL)
File "C:\Programme\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 2
081, in __init__
_gdi_.Font_swiginit(self,_gdi_.new_Font(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed at ..\..\src\msw\fon
t.cpp(541) in wxNativeFontInfo::SetStyle(): unknown font style

C:\tmp\gEcrit\bin>

Discussion

  • File gEcritPluginManager.py Line 42
    font = wx.Font(18, wx.ROMAN ,wx.BOLD, wx.NORMAL)
    change to:
    font = wx.Font(18, wx.ROMAN ,wx.NORMAL, wx.BOLD)
    or:
    font = wx.Font(18, wx.FONTFAMILY_ROMAN ,wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD)