On Thu, 7 Jun 2007 12:16:03 +0200
Javier Almansa Sobrino <[EMAIL PROTECTED]> wrote:

> Hi everybody. I'm using TOSSIM 2.x with python for simulate an
> application and I need to inject packages. In my Makefie, I have this:
> 
> BUILD_EXTRA_DEPS = gatewayES_t.py
> COMPONENT=gatewayAppC
> include $(MAKERULES)
> 
> gatewayES_t.py: gateway.h
>       mig python -target=$(PLATFORM) $(CFLAGS)-python-classname=gatewayES_t 
> gateway.hgatewayES -o $@
> 
> 
> but when I try this in the python console
> 
> import sys
> from TOSSIM import *
> from gatewayES_t import *
> 
> I obtain this error
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "gatewayES_t.py", line 7, in ?
>     import tinyos.message.Message
> ImportError: No module named tinyos.message.Message
> 
> Im following the Lesson 11 of the tutorial: SIMULATION WITH TOSSIM and
> I don't know how to solve this error. Anyone knows where tinyos.message
> is and how to link to my code? 
> 
> Thanks

I answer myself:

adding the line

export PYTHONPATH=/opt/tinyos-2.x/support/sdk/python

to ~/.bashrc file solves the problem

> -- 
> Nunca confies en un S.O. del que no tienes código fuente ;-)
> 
> --------------------------------
> Javier Almansa Sobrino.
> Ingeniero Técnico en Sistemas.
> 
> Grupo de Investigación ARCo.
> Escuela Superior de Informática. Ciudad Real
> Tel: (+34)926 29 53 00 Ext: 3705
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> 


-- 
Nunca confies en un S.O. del que no tienes código fuente ;-)

--------------------------------
Javier Almansa Sobrino.
Ingeniero Técnico en Sistemas.

Grupo de Investigación ARCo.
Escuela Superior de Informática. Ciudad Real
Tel: (+34)926 29 53 00 Ext: 3705


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

Reply via email to