opened ~/.bashrc and set the python path
export PYTHONPATH=$TOSROOT/support/sdk/python/
then source ~/.bashrc to apply changes in bash file
then
preeti@ubuntu:/opt/tinyos-2.1.2/apps/Blink$ python
Python 2.7.3 (default, Sep 26 2013, 20:08:41)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> *from tossim import **
*Traceback (most recent call last):*
*  File "<stdin>", line 1, in <module>*
*ImportError: No module named tossim*
>>>
got this error.. why this error is occuring ..if this is because of
incorrect path then please guide me to correct it...

if i write from tinyos.tossim import *
then it seems like executing but further it creates a problem
*>>> from tinyos.tossim import **
*>>> t=tossim([])*
*Traceback (most recent call last):*
*  File "<stdin>", line 1, in <module>*
*NameError: name 'tossim' is not defined*
>>>

please help i am stuck into this..
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to