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

 

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to