[PyQt] ANN: new eric4 Rope refactoring plugin snapshot available
Detlev Offenbach
detlev at die-offenbachs.de
Wed Jan 30 17:12:01 GMT 2008
On Mittwoch, 30. Januar 2008, Simon Edwards wrote:
> Hi,
>
> Detlev Offenbach wrote:
> > how did you install eric4? Did you get an error during the installation?
> > Usually, the installation script should create a directory called
> > eric4plugins in Python's site-packages directory. Can you please check,
> > if this directory exists?
>
> I was running it directly out of a directory. I'll install it and try
> again.
>
> BTW, I tried to open an old v3 project file and got this:
>
>
> 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/sbe/.eric4/eric4_error.log".
> Error information:
> ---------------------------------------------------------------------------
>----- 2008-01-30, 07:51:57
> ---------------------------------------------------------------------------
>----- <type 'exceptions.TypeError'>:
> loads() argument 1 must be string, not unicode
> ---------------------------------------------------------------------------
>----- File
> "/home/sbe/devel/pykde4/eric4-4.1-snapshot-20080118/eric/Project/Project.py
>", line 3486, in __openRecent
> self.openProject(file)
> File
> "/home/sbe/devel/pykde4/eric4-4.1-snapshot-20080118/eric/Project/Project.py
>", line 2461, in openProject
> if self.__readProject(fn):
> File
> "/home/sbe/devel/pykde4/eric4-4.1-snapshot-20080118/eric/Project/Project.py
>", line 504, in __readProject
> res = self.__readXMLProject(fn, dtdLine.startswith("<!DOCTYPE"))
> File
> "/home/sbe/devel/pykde4/eric4-4.1-snapshot-20080118/eric/Project/Project.py
>", line 586, in __readXMLProject
> parser.parse(f)
> File "/home/sbe/devel/kde4install/lib/python2.5/xml/sax/expatreader.py",
> line 107, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "/home/sbe/devel/kde4install/lib/python2.5/xml/sax/xmlreader.py",
> line 123, in parse
> self.feed(buffer)
> File "/home/sbe/devel/kde4install/lib/python2.5/xml/sax/expatreader.py",
> line 207, in feed
> self._parser.Parse(data, isFinal)
> File "/home/sbe/devel/kde4install/lib/python2.5/xml/sax/expatreader.py",
> line 304, in end_element
> self._cont_handler.endElement(name)
> File
> "/home/sbe/devel/pykde4/eric4-4.1-snapshot-20080118/eric/XML/XMLHandlerBase
>.py", line 98, in endElement
> self.elements[name][1]()
> File
> "/home/sbe/devel/pykde4/eric4-4.1-snapshot-20080118/eric/XML/ProjectHandler
>.py", line 174, in endVcsOptions
> self.project.pdata["VCSOPTIONS"] = [pickle.loads(self.buffer)]
Change this to read "...buffer.encode("utf8"))]. There are other places in
this script, that need this change as well. It will be included in 4.1.0.
Detlev
> ---------------------------------------------------------------------------
>----- Version Numbers:
> Python 2.5.1
> Qt 4.3.2
> PyQt4 4.3.1
> sip 4.7.1
> QScintilla 2-snapshot-20080111
> eric4 4.1-snapshot-20080118 (r1832)
> Platform: linux2
> 2.5.1 (r251:54863, Aug 15 2007, 20:55:14)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)]
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the PyQt
mailing list