[Tinyos-help] Python Indentation error(TOSSIM)

H S h_shivam at yahoo.com
Fri May 1 20:57:28 PDT 2009


Hello everyone..
 
I m doing the tutorial of TOSSIM on wiki http://docs.tinyos.net/index.php/TOSSIM
 
tutorial of "configuration of network" in TOSSIM
 
I tried to read the file and store the data in the radio objects:
 
--------------------------------------------------------------------------------------------------
admin at dipl-4 /opt/tinyos-2.x/apps/RadioCountToLeds
$ python
Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open("topo.txt", "r")
>>> lines = f.readlines()
>>> for line in lines:
.... s = line.split()
  File "<stdin>", line 2
    s = line.split()
    ^
IndentationError: expected an indented block
---------------------------------------------------------------------------------------------------------
 
please help me in troubleshooting this..
 
Regards
H S


      New Email names for you! 
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090501/0ba6f4d2/attachment.htm 


More information about the Tinyos-help mailing list