Skip to content

pgcli.magic conn.session.engine.url raises AttributeError after breaking change upstream in ipython-sql #1440

Closed

Description

@tavisrudd

This reference to session in pgcli.magic conn.session.engine.url raises an AttributeError for the current HEAD version of ipython-sql (after catherinedevlin/ipython-sql@9fbf83b). It can be changed to just conn.url.

However, it's probably worth moving off ipython-sql to https://github.com/ploomber/jupysql which is a maintained fork of it.

Refs:

Activity

  1. kracekumar commented on Apr 26, 2025

    @kracekumar

    @tavisrudd can you say how to reproduce this bug?

  2. dbaty commented on May 31, 2026

    @dbaty
    Member

    Fixed by 235e3b8.

    As for the switch from ipython-sql to jupysql, I (very briefly) tried that while working on the aforementioned commit, but it's not a drop-in replacement (see #1585).

    If a user is interested in working on this switch, I am sure that IPython users will love that. Until then, I am closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions