[XML-SIG] unknown url type in urllib2

JS scjuonline@web.de
Tue, 29 Oct 2002 16:00:30 +0100


Hello,

I have the following xml:
=2E..
<!DOCTYPE doc SYSTEM "/xmldb/system/dtd/test.dtd"
[
<!ENTITY content SYSTEM "second.__LCMS__CONTENT">
]>
<doc>
   &content;
</doc>

but since I updated to PyXML to 0.8.1,=20
I get the following error:
#############################################################
ValueError: unknown url type: /xmldb/second.__LCMS__CONTENT
/usr/local/lib/python2.2/urllib2.py in get_type(self=3D<urllib2.Request i=
nstance=20
at 0x824dc2c>)
  221         if self.type is None:
  222             self.type, self.__r_type =3D splittype(self.__original)
  223             if self.type is None:
  224                 raise ValueError, "unknown url type: %s" %=20
self.__original
  225         return self.type
  226
  227     def get_host(self):
ValueError undefined, self =3D <urllib2.Request instance at 0x824dc2c>,=20
self.__original undefined
/usr/local/lib/python2.2/urllib2.py in open(self=3D<urllib2.OpenerDirecto=
r=20
instance at 0x82d181c>, fullurl=3Du'/xmldb/second.__LCMS__CONTENT', data=3D=
None)
  317         if result:
  318             return result
  319
  320         type_ =3D req.get_type()
  321         result =3D self._call_chain(self.handle_open, type_, type_ =
+ \
  322                                   '_open', req)
  323         if result:
type_ undefined, req =3D <urllib2.Request instance at 0x824dc2c>, req.get=
_type =3D=20
<bound method Request.get_type of <urllib2.Request instance at 0x824dc2c>=
>
=2E..(need more?)
##############################################################
I read, that urllib2 is used instead of urllib.

Is there anybody, who could help or experienced a similar error?

Regards,
JS