I found the problem myself. to use subprocess module, you will need to have >= python2.4 to verify your python.
1. open a terminal
2. run python
3. run import subprocess, if you have python installed properly you shouldn't see any error message.

in my case, I have python2.4 and python2.5 installed into different location to /usr/bin, and by default /usr/bin/python is referring to python2.3. so correcting it to fix the problem


regards;

Peizhao


Peizhao Hu wrote:
Hi

when I try to use the tinyos command tos-storage-stm25p in command line, I got the following error:

Traceback (most recent call last):
  File "/sw/bin/tos-storage-stm25p", line 51, in ?
    from subprocess import Popen, PIPE
ImportError: No module named subprocess

I found the subprocess.py module is located in /sw/python2.5/lib/

anyone know how to resolve this issue?


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

Reply via email to