Skip to content

Synchronous connection fails on MacOS #102

@rrooggiieerr

Description

@rrooggiieerr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions