[PyKDE] Re: Bug report: cannot open PTL files in Eric3 anymore

Detlev Offenbach detlev at die-offenbachs.de
Sat Sep 18 11:35:25 BST 2004


Am Freitag, 17. September 2004 18:45 schrieb Nicola Larosa:
> Symptom: cannot open PTL files in Eric3 anymore, neither from the Project
> Browser, nor from the Open dialog.
>
> Circumstances: the cursor turns to hourglass for a very brief moment, and
> then reverts to arrow shape. If running Eric3 from a shell, no traceback
> whatsoever is shown.
>
> I first noticed the problem in the 20040821 snapshot, and it's still there
> in the 20040912 snapshot, while it doesn't happen (the PTL files open
> correctly) in the 20040727 snapshot.

I could reproduce and fix this problem. However, I would have been glad if you 
had told me sooner about this problem, i.e. right after you discovered it in 
the 20040821 snapshot.

>
> Unrelated: the 20040727 snapshot cannot open a project file saved by the
> 20040821 snapshot. Here's the traceback in the external shell:

That is correct. With the later snapshot I introduced XML validation and the 
respective DTDs. Therefore the project files are not backward compatible if 
you are using a validating parser (what happend here, s. traceback). However, 
the newer eric versions are still able to read the older project files.

>
> Traceback (most recent call last):
>   File "/usr/lib/python2.3/site-packages/Project/Project.py", line 2030, in
> handleOpenRecent
>   File "/usr/lib/python2.3/site-packages/Project/Project.py", line 1455, in
> openProject
>   File "/usr/lib/python2.3/site-packages/Project/Project.py", line 222, in
> readProject
>   File "/usr/lib/python2.3/site-packages/Project/Project.py", line 286, in
> readXMLProject
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
> 109, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line
> 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
> 216, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line
> 395, in external_entity_ref
>     self._source.getSystemId() or
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/saxutils.py", line
> 515, in prepare_input_source
>     f = urllib2.urlopen(source.getSystemId())
>   File "/usr/lib/python2.3/urllib2.py", line 129, in urlopen
>     return _opener.open(url, data)
>   File "/usr/lib/python2.3/urllib2.py", line 324, in open
>     type_ = req.get_type()
>   File "/usr/lib/python2.3/urllib2.py", line 226, in get_type
>     raise ValueError, "unknown url type: %s" % self.__original
> ValueError: unknown url
> type: /home/Araknos/devel/branches/akdb_nl/Project-3.5.dtd
>
> Thanks in advance, Detlev.

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




More information about the PyQt mailing list