You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: