[Eric] i can't configure eric4

Detlev Offenbach detlev at die-offenbachs.de
Tue Apr 21 19:07:40 BST 2009


Hi,

this issue will be fixed in the next release. Meanwhile you may replace the 
offending line of code by these lines.

        try:
            self.foldingStyleComboBox.setCurrentIndex(
                self.foldStyles.index(Preferences.getEditor("FoldingStyle")))
        except ValueError:
            self.foldingStyleComboBox.setCurrentIndex(0)


Regards,
Detlev

On Dienstag, 21. April 2009, luigi curzi wrote:
> Il giorno Tue, 21 Apr 2009 18:47:58 +0200
>
> Detlev Offenbach <detlev at die-offenbachs.de> ha scritto:
> > Hi,
> >
> > can you please check, what is returned by
> > Preferences.getEditor("FoldingStyle")? It should be <= 4.
>
> luigi at pozzaibe:~/Desktop/SDA-python$ eric4 --debug
> DEBUG:root:Importing Preferences
> Warning: translation file 'qt_it_IT'could not be loaded.
> Using default.
> Warning: translation file 'qscintilla_it_IT'could not be loaded.
> Using default.
> DEBUG:root:Importazione packages...
> DEBUG:root:Generazione Main Window...
> DEBUG:root:Initializing Plugin Manager...
> DEBUG:root:Generating Main User Interface...
> DEBUG:root:Setting up connections...
> DEBUG:root:Initializing Tools...
> DEBUG:root:Registering Objects...
> DEBUG:root:Initializing Actions...
> DEBUG:root:Initializing Menus...
> DEBUG:root:Initializing Toolbars...
> DEBUG:root:Initializing Statusbar...
> DEBUG:root:Activating Plugins...
> DEBUG:root:Restoring Toolbarmanager...
> 0
>
> > Regards,
> > Detlev
> >
> > On Dienstag, 21. April 2009, luigi curzi wrote:
> > > i'm trying to configure eric4;
> > > when i click on "style" ("stile" in italian) i receive the error
> > > below and, if i close eric4 and try to re-open it, i receive this
> > > error in console:
> > >
> > > luigi at pozzaibe:~$ eric4
> > > Warning: translation file 'qt_it_IT'could not be loaded.
> > > Using default.
> > > Warning: translation file 'qscintilla_it_IT'could not be loaded.
> > > Using default.
> > > QVariant::load(QDataStream &s): type  unknown to QVariant.
> > > Abortito
> > >
> > > i can re-run it only after deleting "~/.config/Eric4", but anyhow i
> > > can't configure "style". i run a debian testing updated with last
> > > eric4 snapshot.
> > >
> > > Warning:
> > > An unhandled exception occurred. Please report the problem
> > > using the error reporting dialog or via email to
> > > <eric4-bugs at die-offenbachs.de>. A log has been written to
> > > "/home/luigi/.eric4/eric4_error.log".
> > > Error information:
> > > -----------------------------------------------------------------------
> > >---- ----- 2009-04-21, 17:06:43
> > > -----------------------------------------------------------------------
> > >---- ----- <type 'exceptions.ValueError'>:
> > > list.index(x): x not in list
> > > -----------------------------------------------------------------------
> > >---- ----- File
> > > "/usr/lib/python2.5/site-packages/eric4/Preferences/ConfigurationDialog
> > >.py" , line 429, in __showConfigurationPage
> > > self.showConfigurationPageByName(pageName)
> > > File
> > > "/usr/lib/python2.5/site-packages/eric4/Preferences/ConfigurationDialog
> > >.py" , line 463, in showConfigurationPageByName page =
> > >self.__initPage(pageData)
> > > File
> > > "/usr/lib/python2.5/site-packages/eric4/Preferences/ConfigurationDialog
> > >.py" , line 444, in __initPage page = mod.create(self)
> > > File
> > > "/usr/lib/python2.5/site-packages/eric4/Preferences/ConfigurationPages/
> > >Edit orStylesPage.py", line 361, in create page = EditorStylesPage()
> > > File
> > > "/usr/lib/python2.5/site-packages/eric4/Preferences/ConfigurationPages/
> > >Edit orStylesPage.py", line 53, in __init__
> > > self.foldStyles.index(Preferences.getEditor("FoldingStyle")))
> > > -----------------------------------------------------------------------
> > >---- ----- Version Numbers:
> > > Python 2.5.4
> > > Qt 4.4.3
> > > PyQt4 4.4.2
> > > sip 4.7.9
> > > QScintilla 2.2
> > > eric4 4.4-snapshot-20090419 (r3045)
> > > Platform: linux2
> > > 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
> > > [GCC 4.3.3]
> > > -----------------------------------------------------------------------
> > >---- ----- Plugins Version Numbers:
> > > PluginAbout 4.4.0
> > > PluginEricapi 4.4.0
> > > PluginEricdoc 4.4.0
> > > PluginSyntaxChecker 4.4.0
> > > PluginTabnanny 4.4.0
> > > PluginVcsPySvn 4.4.0
> > > PluginVcsSubversion 4.4.0
> > > PluginVmListspace 4.4.0
> > > PluginVmMdiArea 4.4.0
> > > PluginVmTabview 4.4.0
> > > PluginVmWorkspace 4.4.0
> > > PluginWizardPyRegExp 4.4.0
> > > PluginWizardQColorDialog 4.4.0
> > > PluginWizardQFileDialog 4.4.0
> > > PluginWizardQFontDialog 4.4.0
> > > PluginWizardQInputDialog 4.4.0
> > > PluginWizardQMessageBox 4.4.0
> > > PluginWizardQRegExp 4.4.0



-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list