[Tutor] need help with lxml errors

Rayon evosweet at hotmail.com
Sun May 22 13:51:44 CEST 2011


I am trying to import lxml 

 

from lxml import etree

 

bb = etree.Element(self.get_time)    

     return str(bb)

 

and I get this error:

 

File "C:\Python26\lib\site-packages\lxml\apihelpers.pxi", line 1480, in
lxml.etree.__getNsTag (src/lxml/lxml.etree.c:23373)

File "C:\Python26\lib\site-packages\lxml\apihelpers.pxi", line 1364, in
lxml.etree._utf8 (src/lxml/lxml.etree.c:22190)

TypeError: Argument must be bytes or unicode, got 'instancemethod'

 

Regards Rayon

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110522/0784c5da/attachment.html>


More information about the Tutor mailing list