Skip to content

Python package and CLI 1.0.1

Version 1.0.1 of the Python SDK is a patch release with bug fixes and reliability improvements.

How to install this version

Review the changes below before installing. To install this version, activate a compatible Python virtual environment and run:

Terminal window
python -m pip install "relationalai==1.0.1"

For the latest installation instructions, see Start building with PyRel.

  • Improved concurrent call handling for ReasonersClient.ensure() and ReasonersClientSync.ensure(). When multiple processes try to create or resume the same reasoner at the same time, ensure() will wait for the in-progress operation to complete instead of failing with a conflict error.

  • Improved the error raised when a logic reasoner job is aborted because the client disconnected. If that happens, JobsClient.wait() / JobsClientSync.wait() raises JobClientDisconnectedError:

    from relationalai.services.jobs.errors import JobClientDisconnectedError
    try:
    job = await client.jobs.wait("LOGIC", job_id)
    except JobClientDisconnectedError:
    # The client disconnected before the job completed.
    # Retry after restoring connectivity.
    ...
  • Fixed an issue where running reasoner CLI commands, such as rai reasoners:create, could fail with an ImportError.