Hi,
This tool works well when I run my python project from inside of WSL ubuntu for example when I connect to a serial port via a /dev/tty6 file in my Ubuntu filesystem.
However when I try to run the same script on windows (in an anaconda env) opening a pyserial connection to COM6 instead of ubuntu's /dev/tty6, I get the error message:
ImportError: cannot import name 'spawn' from 'pexpect'
This does make sense to me since pexpect's docs has disclaimers that its spawn class doesn't work on Windows OS and that popen_spawn would be better to use instead.
I see in your readme, though, that you do have a COM# in your instantiation of serial.Serial, which you then pass as an arugment to your SerialSpawn class:
with serial.Serial('COM1', 115200, timeout=0) as ser:
So I was wondering: have you gotten this to work on windows, despite pexpect's disclaimer about its spawn class? Just wondering if I'm missing something.
-Luke H
Hi,
This tool works well when I run my python project from inside of WSL ubuntu for example when I connect to a serial port via a /dev/tty6 file in my Ubuntu filesystem.
However when I try to run the same script on windows (in an anaconda env) opening a pyserial connection to COM6 instead of ubuntu's /dev/tty6, I get the error message:
ImportError: cannot import name 'spawn' from 'pexpect'This does make sense to me since pexpect's docs has disclaimers that its spawn class doesn't work on Windows OS and that popen_spawn would be better to use instead.
I see in your readme, though, that you do have a COM# in your instantiation of serial.Serial, which you then pass as an arugment to your SerialSpawn class:
with serial.Serial('COM1', 115200, timeout=0) as ser:So I was wondering: have you gotten this to work on windows, despite pexpect's disclaimer about its spawn class? Just wondering if I'm missing something.
-Luke H