Hi,

As the error states you need to indent the line in the body of the loop.

i.e.

... [press tab] s = line.split()

Thanks
--a

On Sat, May 2, 2009 at 4:57 AM, H S <[email protected]> wrote:
> 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:
>
> --------------------------------------------------------------------------------------------------
> ad...@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've always wanted on the new @ymail and @rocketmail.
> Hurry before someone else does!
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to