I'm migrating a library from pyserial and pyserial-asyncio-fast to serialx. For the async functions that went smoothly, however with the synchronous functions that my library also provides I can't manage to create a connection.
The following code using pyserial works:
import serial
# Create the connection.
connection = serial.Serial(port="/dev/tty.usbserial-110")
# Open the connection.
if not connection.is_open: # connection.is_open is True when using pyserial
connection.open()
# Close the connection.
connection.close()
The following code using serialx fails to open the connection, it just hangs:
import serialx as serial
# Create the connection.
connection = serial.Serial(port="/dev/tty.usbserial-110")
# Open the connection.
if not connection.is_open: # connection.is_open is False when using serialx
connection.open() # This just hangs
# Close the connection.
connection.close()
I'm running this using Python 3.14.4 and serialx 1.8.0 on MacOS Tahoe 26.5.1
I'm migrating a library from
pyserialandpyserial-asyncio-fasttoserialx. For the async functions that went smoothly, however with the synchronous functions that my library also provides I can't manage to create a connection.The following code using
pyserialworks:The following code using
serialxfails to open the connection, it just hangs:I'm running this using Python 3.14.4 and serialx 1.8.0 on MacOS Tahoe 26.5.1