Open roebi opened 1 week ago
same error in the git bash with aider --model groq/llama-3.1-70b-versatile --no-pretty --dark-mode
Thanks for trying aider and filing this issue.
How are you running aider? I can run it just fine on Windows with git bash.
Hello,
i reinstall 'git for windows', was current Version 2.46.0 from 2040807, and install the same version with Git-2.46.0-64-bit.exe
while i was installing here
it is written to start with the prefix 'winpty' ... which works, details see below
On pre selected 'Use MinTTY (the default terminal on MSYS2)
...
Windows console programs (such as interactive Python) must launched via winpty
to work in MinTTY.
here the answer to your question:
following variants end in the same error
aider --model groq/llama-3.1-70b-versatile aider.exe --model groq/llama-3.1-70b-versatile aider --model groq/llama-3.1-70b-versatile --no-pretty --dark-mode
but after reading the last sentence in the error message:
prompt_toolkit.output.win32.NoConsoleScreenBufferError: Found xterm, while expecting a Windows console. Maybe try to run this program using "winpty" or run it in cmd.exe instead. Or otherwise, in case of Cygwin, use the Python executable that is compiled for Cygwin.
i tried with prefix winpty, : winpty aider --model groq/llama-3.1-70b-versatile --no-pretty --dark-mode winpty aider --model groq/llama-3.1-70b-versatile
I tried it with the prefix winpty, which worked.
may the following info help (MINGW64):
my prompt looks:
Addition to this: With this enabled 'Enable experimental support for pseudo consoles' This allows running native console programs like Node or Python in a Git Bash window without using winpty, but is unfortunately not quite stable yet.
the prefix winpty
is no more needed.
means for example
aider --model groq/llama-3.1-70b-versatile
works
There are improvements for this in the main branch. Aider will now revert to a dumb UI if a console is not available on windows.
You can get it by installing the latest version from github:
aider --install-main-branch
If you have a chance to try it, let me know if it works better for you.
Thank you for taking care of it,
first i reinstalled git for windows without this experimental support, to not use winpty.
i installed the main branch this way (because of pipx):
pipx install git+https://github.com/paul-gauthier/aider.git --force
...
installed package aider-chat 0.56.1.dev77+g05b3b3df, installed using Python 3.12.6
...
after that aider works this way:
$ aider --model groq/llama-3.1-70b-versatile
Can't initialize prompt toolkit: Found xterm, while expecting a Windows
console. Maybe try to run this program using "winpty" or run it in cmd.exe
instead. Or otherwise, in case of Cygwin, use the Python executable that is
compiled for Cygwin.
Terminal does not support pretty output (UnicodeDecodeError)
Aider v0.56.1.dev77+g05b3b3df
Model: groq/llama-3.1-70b-versatile with diff edit format
Git repo: .git with 17 files
Repo-map: using 1024 tokens, auto refresh
Use /help <question> for help, run "aider --help" to see cmd line args
>
i try a little around with this 'dumb UI', but at the the end i will use in this case aider starting with
winpty aider ...
If there is such a great console extension, why shouldn't you want to use it.
But with this change the Hint
Maybe try to run this program using "winpty"
is now shown without a Stacktrace
which is definitely a user improvement.
Thanks again.
$ aider.exe Terminal does not support pretty output (UnicodeDecodeError) Aider v0.55.0 Main model: gpt-4o-2024-08-06 with diff edit format Weak model: gpt-4o-mini Git repo: .git with 8 files Repo-map: using 1024 tokens, auto refresh Use /help for help, run "aider --help" to see cmd line args
Uncaught NoConsoleScreenBufferError in win32.py line 219
Aider version: 0.55.0 Python version: 3.12.5 Platform: Windows-11-10.0.22621-SP0 Python implementation: CPython Virtual environment: Yes OS: Windows 11 (64bit) Git version: git version 2.46.0.windows.1
An uncaught exception occurred:
i work on a windows system , but for the console i use the git bash. this is if you install git for windows a linux like 'bash' shell / terminal. i have installed aider with pipx. The start command was:
PS: aider offer me to open a issue about this .