[Eric] Eric development in Eric

Detlev Offenbach detlev at die-offenbachs.de
Fri Apr 1 17:11:58 BST 2011


On Freitag, 1. April 2011, Mikhail Terekhov wrote:
> On Wed, Mar 30, 2011 at 12:54 PM, Detlev Offenbach
> <detlev at die-offenbachs.de
> 
> > wrote:
> > 
> > On Mittwoch, 30. März 2011, Mikhail Terekhov wrote:
> > > Hi,
> > > 
> > > I'm trying to learn more about PyQt using Eric5 as an example. What is
> > 
> > the
> > 
> > > proper way to setup development environment so I can use Eric to debug
> > > itself?
> > > So far I've cloned repository for Eric5, run python3 compileUiFiles.py
> > 
> > and
> > 
> > > opened eric5.e4p project. But when I try to run it I get an exception:
> > > ....
> > > 
> > >  File "Utilities/Startup.py", line 142, in initializeResourceSearchPath
> > >  
> > >     for iconPath in iconPaths:
> > > TypeError: 'QVariant' object is not iterable
> > 
> > Are you sure the right PyQt4 library is loaded? PyQt4 for Python3 doesn't
> > contain QVariant anymore (neither QString).
> > 
> > You are right! The reason was that in my preferences I've moved .py
> 
> association from Python3 to Python2 in debugger configuration and for some
> reason when I was starting a debug session for eric5 project it picked up
> python2 instead of python3 inspite of the project settings.
> 
> BTW what is the reason to have two places to set python version for the
> project? Are there any use cases for that?

Yes, there are some internals that are dependant upon the Python variant of 
the project. The extension associated with the Python variant is independant 
of this.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list