TOSSIM.py will reside in the current path of an application after it is built with the sim (or sim-sf) extensions. This path should be automatically "seen" by Python. (If Tossim isn't built correctly, you really ought not to have access to TOSSIM.py as it interfaces directly with a particular compiled "simulation" library using SWIG.)
The paths you supplied have errors in them (maybe just copy+paste?) for instance; it should read python, not pytho. HTH, Paul On Fri, Jul 4, 2008 at 1:15 AM, Matthias Woehrle <[EMAIL PROTECTED]> wrote: > Python needs the directory of modules to be imported in its search path. > Thus, you should check that the directory of TOSSIM.py is in > your PYTHONPATH. > export PYTHONPATH=/path/to/TOSSIM.py:$PYTHONPATH > Regards > On Jul 2, 2008, at 10:58 AM, [EMAIL PROTECTED] wrote: > > > I have tried upgading my tinyos with the help of this site. and set the path > accordingly. > http://www.tinyos.net/tinyos-2.x/doc/html/upgrade-tinyos.html > > > TOSROOT/opt/tinyos-2.xsame as in Cygwin > TOSDIR$TOSROOT/tossame as in Cygwin > CLASSPATHC:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar;.$TOSROOT/support/sdk/java/tinyos.jar:. > MAKERULES$TOSROOT/support/make/Makerulessame as in Cygwin > PATH†/opt/msp430/bin:$PATHsame as in Cygwin > > > export PYTHONPATH=$TOSROOT/support/sdk/pytho > but i am not able to run command as described in the tutorial > from TOSSIM impòrt * > this line shows import error no module called TOSSIM. > > Please help me to solve my problem. > > > -- > Ankit Anand > IIT Kharagpur > > _______________________________________________ > 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 > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
