Skip to content

Pretty table config is deprecated and it causes an error of KeyError: "DEFAULT" #252

Open

Description

@talbarda

Activity

  1. pavlozt commented on Dec 15, 2024

    @pavlozt

    The proposed change works.
    And it is a very frustrating bug that breaks the basic functionality

  2. talbarda commented on Dec 15, 2024

    @talbarda
    Author

    Can you merge this then ?

  3. makingglitches commented on Jun 2, 2025

    @makingglitches

    I'm seeing this too.
    It's breaking where its accessing the style selected as a dictionary key, in the toplevel object.
    The KeyError changes based on style you select as well.
    I could fix it again....

  4. makingglitches commented on Jun 2, 2025

    @makingglitches

    Appears to be line 116 of run.py at HEAD.
    It appears constants related to style have moved to a class called TableStyle as static members.

    self.pretty = PrettyTable(self.field_names, style=prettytable.TableStyle.dict[config.style.upper()])

    Should probably fix it.

  5. Sygyzmundovych commented on Feb 20, 2026

    @Sygyzmundovych

    I switched to the new and maintained fork jupysql (see: https://jupysql.readthedocs.io/en/latest/quick-start.html)

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