[Tinyos-help] Python Indentation error(TOSSIM)
Angela Perez
perez.angela7 at googlemail.com
Sat May 2 04:46:18 PDT 2009
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 <h_shivam at yahoo.com> 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:
>
> --------------------------------------------------------------------------------------------------
> 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've always wanted on the new @ymail and @rocketmail.
> Hurry before someone else does!
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
More information about the Tinyos-help
mailing list