Hi All.
I have been trying to use pyserial.
I have python 2.6.1 and pyserial 2.4
I have reninstalled pyserial and tried diffrent versions but nothing works.
whenever i type in "import serial" this is what happens
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import serial
File "C:\Python26\lib\site-packages\serial_init_.py", line 18, in
from serialwin32 import *
File "C:\Python26\lib\site-packages\serial\serialwin32.py", line 9, in
import win32file # The base COM port and file IO functions.
ImportError: No module named win32file
Looks like you just need to install the pywin32 package for python:
Thanks.
Now whenever i try to run my script
import serial
ser = serial.Serial("COM6", 9600)
ser.write('5')
raw_input("Press return to close this window...")
it doesn't write to serial
when i type all that into the shell manualy it works fine.
Any Ideas?
Can someone please help me?