[lttng-dev] seq value error in python binding

Yiyang Dai daiyiyang at hotmail.com
Wed Jun 25 04:43:07 EDT 2014


Hello there,
when I trying to extract "msg" field generated by example program "demo-tracef" with python binding , I got following error message:
Traceback (most recent call last):  File "data.py", line 46, in <module>    sequence = event["msg"]  File "/usr/local/lib/python3.3/site-packages/babeltrace.py", line 806, in __getitem__    return field.value  File "/usr/local/lib/python3.3/site-packages/babeltrace.py", line 1279, in value    value.append(evDef.value)AttributeError: 'NoneType' object has no attribute 'value'

but everything works fine with babeltrace cmd[15:42:32.322566678] (+?.?????????) master lttng_ust_tracef:event: { cpu_id = 2 }, { _msg_length = 46, msg = "This is a "mystring test" formatted 0 event 42" }[15:42:32.322582002] (+0.000015324) master lttng_ust_tracef:event: { cpu_id = 2 }, { _msg_length = 46, msg = "This is a "mystring test" formatted 1 event 42" }[15:42:32.322582838] (+0.000000836) master lttng_ust_tracef:event: { cpu_id = 2 }, { _msg_length = 46, msg = "This is a "mystring test" formatted 2 event 42" }[15:42:32.322583416] (+0.000000578) master lttng_ust_tracef:event: { cpu_id = 2 }, { _msg_length = 46, msg = "This is a "mystring test" formatted 3 event 42" }[15:42:32.322584002] (+0.000000586) master lttng_ust_tracef:event: { cpu_id = 2 }, { _msg_length = 46, msg = "This is a "mystring test" formatted 4 event 42" }
any idea of this ?
Regards,Yiyang 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140625/e90c06db/attachment.html>


More information about the lttng-dev mailing list