Paul, you are right, I had not included the mig-generated line in the Makefile.
But now, when I try import the file I have received another message:
>>> import sys
>>> from TOSSIM import *
>>> from TestSerialMsg import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "TestSerialMsg.py", line 7, in <module>
import tinyos.message.Message
ImportError: No module named tinyos.message.Message
I thought this message is related to the classpath, so I copied the
tinyos.jar to the current directory, but I'm still receiving the same
message.
This is my
classpath=.:/home/sdr/dpp/mote/cvs/tinyos-2.x/support/sdk/java/tinyos.jar
Any suggestion?
Thanks a lot
On Fri, Jun 6, 2008 at 2:23 PM, Paul Stickney <[EMAIL PROTECTED]> wrote:
> TestSerialMsg.py is not in your PYTHONPATH.
> Find it and add it :)
> Or start python in the correctly relative directory.
> [Maybe it has not been mig-generated yet?]
>
> HTH,
> Paul
>
> On Fri, Jun 6, 2008 at 6:41 AM, Daniel Pereira <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I'm trying to use tossim-sf with TestSerial
>> (tinyos-2.x/apps/tests/TestSerial) application. So I compile it using:
>> make micaz sim-sf.
>>
>> Next, when I start with Python, I can not import TestSerialMsg.
>>
>> [EMAIL PROTECTED]:~/tinyos-2.x/apps/tests/TestSerial$ python
>> Python 2.5.1 (r251:54863, Mar 7 2008, 03:41:45)
>> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import sys
>>>>> import time
>>>>> from TOSSIM import *
>>>>> from TestSerialMsg import *
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> ImportError: No module named TestSerialMsg
>>
>> What is the problem?
>>
>> Thanks all
>> Daniel Patrick
>> _______________________________________________
>> 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