Hi!

The default python on Tiger is 2.3 and that one doesn't have the subprocess module. If you have python 2.4 then if you replace the:
        #!/usr/bin/python
with
        #!/usr/bin/env python2.4
from the first line of tos-storage-stm25p it should start working normally. :-)

--
Razvan ME

On Mon, 10 Mar 2008, Kaan Tuna wrote:

Hi,
I have the same problem and same error messages for any application in
tests/storage, and i have XML chip files in the application directory.
I cannot find a solution in the archives. Any help would be appreciated.

Kaan



Do you have an volumes-at45db.xml (mica), volumes-pxa27xp30.xml
(imote), or volumes-stm25p.xml (telos) file in you application
directory?  Look at tinyos-2.x/apps/tests/storage for an example. And
take a look at the tutorial found here...

http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson7.html

Kevin

On Nov 12, 2007 3:11 PM, Iturralde Garrote, Pablo M.
<Pablo.M.Iturralde.Garrote-1 at 
ou.edu<https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help>>
wrote:
*
*>*
*>* Hi I have a serious problem when I try to compile any application that
*>* store things in the flash.
*>* It say to me that StorageVolumes.h nor found.
*>* this is what I get.
*>* $ make tmote
*>*  mkdir -p build/telosb
*>*  tos-storage-stm25p /opt/tinyos-2.x/tos/platforms/telosb <
volumes-stm25p.xml
*>* >bui
*>*  ld/telosb/StorageVolumes.h || rm -f build/telosb/StorageVolumes.h
*>*  Traceback (most recent call last):
*>*    File "/usr/bin/tos-storage-stm25p", line 51, in ?
*>*      from subprocess import Popen, PIPE
*>*  ImportError: No module named subprocess
*>*      compiling RandRWAppC to a telosb binary
*>*  ncc -o build/telosb/main.exe -Os -O -mdisable-hwmul -Wall -Wshadow
*>* -DDEF_TOS_AM_
*>*  GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c
*>* -board= -Ib
*>*  uild/telosb -DIDENT_PROGRAM_NAME=\"RandRWAppC\"
-DIDENT_USER_ID=\"usuario\"
*>* -DID
*>*  ENT_HOSTNAME=\"user-0e111c2e18\" -DIDENT_USER_HASH=0x8dd4cc45L
*>* -DIDENT_UNIX_TIME
*>*  =0x4738d4dbL -DIDENT_UID_HASH=0xc407eea9L  RandRWAppC.nc -lm
*>*  RandRWAppC.nc:17:28: StorageVolumes.h: No such file or directory
*>*  <commandline>: failed to preprocess RandRWAppC.nc
*>*  make: *** [exe0] Error 1
*>*
*>* and this is how my paths are set.
*>*
*>*
*>*
*>* TOSROOT="/opt/tinyos-2.x"
*>*
*>* export TOSROOT
*>*
*>* TOSDIR="$TOSROOT/tos"
*>*
*>* export TOSDIR
*>*
*>* CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar`
*>*
*>* export CLASSPATH="$CLASSPATH;."
*>*
*>* MAKERULES="$TOSROOT/support/make/Makerules"
*>*
*>* export MAKERULES
*>*
*>* type java >/dev/null 2>/dev/null || PATH=`/usr/bin/tos-locate-jre
*>* --java`:$PATH
*>*
*>* type javac >/dev/null 2>/dev/null || PATH=`/usr/bin/tos-locate-jre
*>* --javac`:$PATH
*>*
*>* echo $PATH | grep -q /usr/local/bin || PATH=/usr/local/bin:$PATH
*>*
*>*
*>*
*>* please!! some body help me
*>*
*>* thanks in advance*


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

Reply via email to