I'm using pyserial 3.4 with Python 2.17.13 under Windows 10. When open COM5 port, I obtained the error below. Same source, same pyserial, same python versions, they run correctly under Windows 7 and 8.1
Traceback (most recent call last): File "NAPOSend1.0.py", line 116, in sendfile
from serial import Serial
ser = Serial('COM5', 115200, timeout=10, writeTimeout=0)
File "build\bdist.win-amd64\egg\serial\serialwin32.py", line 31, in init File "build\bdist.win-amd64\egg\serial\serialutil.py", line 240, in init File "build\bdist.win-amd64\egg\serial\serialwin32.py", line 78, in open File "build\bdist.win-amd64\egg\serial\serialwin32.py", line 222, in _reconfig ure_port serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: Windows Error(87, 'Incorrect Parameter.')