Newbie TypeError problem
Paul Prescod
paul at prescod.net
Sun Apr 4 14:14:40 EDT 2004
Francis Moore wrote:
> File "D:\Python23\lib\xml\sax\expatreader.py", line 111, in
> prepareParser
> self._parser.SetBase(source.getSystemId())
> TypeError: SetBase() argument 1 must be string, not member_descriptor
>
> Seems to be failing on the line:
>
> parser.parse(file)
Please insert this line into your program:
print type(file)
Perhaps the type is something other than you expect?
Paul Prescod
More information about the Python-list
mailing list