Hi brothers, I did the following in a python console :
>>>import ldtp >>>ldtp.getapplist() I got an exception. Is there any know issue with ldtp.getapplist() ? I want to make sure I didn't do anything wrong before filling a bug. Attached below is a log of my console.
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) Type "copyright", "credits" or "license" for more information. IPython 0.8.1 -- An enhanced Interactive Python. ? -> Introduction to IPython's features. %magic -> Information about IPython's 'magic' % functions. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. In [1]: import ldtp In [2]: ldtp.getapplist() Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id: 'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0' Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id: 'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0' Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id: 'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0' Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id: 'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0' Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id: 'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0' Warning: AT-SPI error: pre method check: add: Unknown CORBA exception id: 'IDL:omg.org/CORBA/OBJECT_NOT_EXIST:1.0' --------------------------------------------------------------------------- <class 'ldtplib.ldtplibutils.LdtpExecutionError'>Traceback (most recent call last) /home/rhass/<ipython console> in <module>() /var/lib/python-support/python2.5/ldtp.py in getapplist() 2815 _message = generatexml (command.GETAPPLIST, _requestId) 2816 sendpacket (_message) -> 2817 _responseStatus, _responseData = getresponse (_requestId) 2818 if _responseStatus [0] != 0: 2819 raise LdtpExecutionError ('getapplist failed: %s' % _responseStatus [1]) /var/lib/python-support/python2.5/ldtp.py in getresponse(packetId, sockfd, timeOut) 223 raise LdtpExecutionError ('Server aborted') 224 try: --> 225 _responseType, _responseStatus, _responseData = parsexml (_responsePacket) 226 if _responseType == 'response': 227 # If response type is response, then let us enforce checking packetId /var/lib/python-support/python2.5/ldtp.py in parsexml(xmlpacket) 191 if xml.parsers.expat.ErrorString (msg.code) == xml.parsers.expat.errors.XML_ERROR_NO_ELEMENTS: 192 return None --> 193 raise LdtpExecutionError ('Parsing XML error: ' + str (msg)) 194 195 # Return all the respective values, let the calling function decide what to do with the values <class 'ldtplib.ldtplibutils.LdtpExecutionError'>: 'Parsing XML error: not well-formed (invalid token): line 1, column 273' In [3]:
_______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev