- Mar 9, 2006
- 1,711
- 1
- 81
Hi,
I'm trying to run a python script:
import serial
ser = serial.Serial('COM35', 9600, timeout=1)
ser.open
ser2 = serial.Serial('COM36', 9600, timeout=1)
ser2.open
print "ports opened"
while 1:
freqency = ser.readline()
print "read" + freqency
freqency = "FA0" + freqency[2:12] +";"
if len(freqency) > 13:
ser2.write(freqency)
ser2.write(freqency)
ser2.write(freqency)
print freqency
I did not write it. I have python 2.7 installed and pyserial 2.6. Pyserial installed without any errors.
When I go to run the script I get this error:
C:\Python27>python C:\uni.py
Traceback (most recent call last):
File "C:\uni.py", line 1, in <module>
import serial
ImportError: No module named serial
The platform is windows 7 x64. I would really appreciate any help here. I think I'm close.
I'm trying to run a python script:
import serial
ser = serial.Serial('COM35', 9600, timeout=1)
ser.open
ser2 = serial.Serial('COM36', 9600, timeout=1)
ser2.open
print "ports opened"
while 1:
freqency = ser.readline()
print "read" + freqency
freqency = "FA0" + freqency[2:12] +";"
if len(freqency) > 13:
ser2.write(freqency)
ser2.write(freqency)
ser2.write(freqency)
print freqency
I did not write it. I have python 2.7 installed and pyserial 2.6. Pyserial installed without any errors.
When I go to run the script I get this error:
C:\Python27>python C:\uni.py
Traceback (most recent call last):
File "C:\uni.py", line 1, in <module>
import serial
ImportError: No module named serial
The platform is windows 7 x64. I would really appreciate any help here. I think I'm close.
