File "/usr/lib/python2.6/dist-packages/gwibber/gwui.py", line 455, in __init__
self.spell = gtkspell.Spell(self, None)
glib.GError: enchant error for language: zh_TW.UTF-8
解法很簡單,修改 /usr/lib/python2.6/dist-packages/gwibber/gwui.py 把 455 行的前後加上 exception handling 即可:
try:
self.spell = gtkspell.Spell( self, None )
except:
pass
修改時要注意縮排問題,python 對這點可是很講究的!
沒有留言:
張貼留言