[Tinyos-help] 'str' object is not callable
VJ shekar
vmang003 at gmail.com
Sun Mar 23 21:54:29 PDT 2008
Hello all,
I have tried running "packets.py" using the command "python packets.py" in
cygwin shell.
But it is giving TypeError which says 'str' object not callable.
Here are the lines appeared in shell.
VJ at Vijay /cygdrive/c/tinyos/cygwin/opt/tinyos-2.x/apps/radiocounttoleds
$ python packets.py
DEBUG (0): RadioCountToLedsC: timer fired, counter is 1.
DEBUG (0): RadioCountToLedsC: packet sent.
DEBUG (1): RadioCountToLedsC: timer fired, counter is 1.
DEBUG (1): RadioCountToLedsC: packet sent.
DEBUG (0): RadioCountToLedsC: timer fired, counter is 2.
DEBUG (0): RadioCountToLedsC: packet sent.
DEBUG (1): RadioCountToLedsC: timer fired, counter is 2.
DEBUG (1): RadioCountToLedsC: packet sent.
DEBUG (0): RadioCountToLedsC: timer fired, counter is 3.
DEBUG (0): RadioCountToLedsC: packet sent.
Traceback (most recent call last):
File "packets.py", line 47, in <module>
print "Delivering " + str(msg)+ " to 0 at " + str(t.time() + 3);
TypeError: 'str' object is not callable
Could anyone please suggest me how to get rid of this error.
Thanks in advance,
VJ.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080324/41adcca5/attachment-0001.html
More information about the Tinyos-help
mailing list