Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in pne-chat: click.exceptions.ClickException: vi: Editing failed #107

Open
Undertone0809 opened this issue Oct 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Undertone0809
Copy link
Owner

馃悰 Bug Report

error in pne-chat click.exceptions.ClickException: vi: Editing failed

馃敩 How To Reproduce

Steps to reproduce the behavior:

zeeland@zeeland-virtual-machine:~/.gazebo$ pne-chat
Hi there, here is promptulate chat terminal.
? Choose a chat terminal: Web Agent Chat
? Choose a llm model: OpenAI
[User] 
/bin/sh: 1: vi: not found
Traceback (most recent call last):
  File "/home/zeeland/.local/bin/pne-chat", line 8, in <module>
    sys.exit(main())
  File "/home/zeeland/.local/lib/python3.10/site-packages/promptulate/client/chat.py", line 160, in main
    chat()
  File "/home/zeeland/.local/lib/python3.10/site-packages/promptulate/client/chat.py", line 156, in chat
    web_chat(llm)
  File "/home/zeeland/.local/lib/python3.10/site-packages/promptulate/client/chat.py", line 93, in web_chat
    prompt = get_user_input()
  File "/home/zeeland/.local/lib/python3.10/site-packages/promptulate/client/chat.py", line 59, in get_user_input
    message = click.edit(marker)
  File "/home/zeeland/.local/lib/python3.10/site-packages/click/termui.py", line 677, in edit
    return ed.edit(text)
  File "/home/zeeland/.local/lib/python3.10/site-packages/click/_termui_impl.py", line 557, in edit
    self.edit_file(name)
  File "/home/zeeland/.local/lib/python3.10/site-packages/click/_termui_impl.py", line 517, in edit_file
    raise ClickException(
click.exceptions.ClickException: vi: Editing failed

image

Environment

  • OS: ubuntu 22.04
  • Python version, get it with: python 3.10

馃搱 Expected behavior

Work normally.

@Undertone0809 Undertone0809 added the bug Something isn't working label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant