App crash when try to send message
Closed this issue · 1 comments
egon12 commented
The app crash and exit unexpectedly, after try to press send / enter
I got this error
│ /opt/homebrew/lib/python3.9/site-packages/chatgpt_tui/widgets.py:23 in │
│ __init__ │
│ │
│ 20 │ │ """Utterance a user typed.""" │
│ 21 │ │ def __init__(self, sender: MessageTarget, text: str) -> None: │
│ 22 │ │ │ self.text = text │
│ ❱ 23 │ │ │ super().__init__(sender) │
│ 24 │ │
│ 25 │ def compose(self) -> ComposeResult: │
│ 26 │ │ """Create child widgets for the app.""" │
│ │
│ ╭─────── locals ───────╮ │
│ │ self = Utterance() │ │
│ │ sender = UserInput() │ │
│ │ text = 'Hello' │ │
│ ╰──────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
TypeError: __init__() takes 1 positional argument but 2 were given
I try in python3.9
and python3.11
and it got the same error. In pip I got textual
version 0.29.0
Jiayi-Pan commented
Hi there, the issue has been fixed in the latest version, please check it out!
pip install -U chatgpt_tui