-
-
Notifications
You must be signed in to change notification settings - Fork 294
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readline internal error #704
Comments
Does this happen on v4.8/nightly as well? If not then it's been fixed already. (You can download the repo as an archive and run |
If you don't mind, after previous experiences I have decided not to install any more extensions if they are not from pypi. |
I had enough of all these errors and installed buku 4.8 anyway. |
Haven't managed to reproduce this, no matter which version I tried (4.7.1, 4.8, nightly).
|
Hi,
correct
I used pipx
Yes, I installed python in the root in "c"
buku -v >> 4.8
Name: pyreadline3
yes, windows command prompt. It does give the error after a search and 'a' (open all results in browser) |
…Alright, I've figured it out. The important missing detail is that this only happens on Windows 11, which uses a new-and-fancy terminal wrapper (and reacts poorly to I/O stream manipulation… I'd call it a bug but I would not be surprised if MS declared it a ‘feature’ 😅). |
Thank you for the adjustment. |
Er… Well, that shouldn't be happening; I just double-checked, the current nightly doesn't cause that error on Windows 11 (at least not in circumstances it did before). Have you made sure you did every step correctly? 😅
I know this might be annoying but I don't really have any other explanation as to why the issue doesn't reproduce with current nightly on my Windows 11 VM (unlike when using the 4.8 archive or previous nightly) but apparently does on your machine. P.S. To reproduce, I used a dummy database file ( |
Sorry, you're right. I updated Buku (not uninstalling the previous version). Now I uninstalled it first. No error any more. :) (By the way 4.7.1 is still the latest version at PyPi) |
I've made sure to check what happens if you try installing a new version without uninstalling the old version from pipx… It basically says "I didn't do anything cuz the package is already installed… And I could overwrite it but only if you pass a specific parameter" 😅
The current 4.8 can't be added to PyPI because it has an external (Github) dependency. And the guy who was maintaining it basically disappeared since February. I suspect we'll have to deal with this without him after all, but that discussion belongs in the #685 thread. |
Bug reports
I very often get this error when I want to open a web page (see the first line below).
☺buku (? for help) 3
Readline internal error
Traceback (most recent call last):
File "\Python312\Lib\site-packages\pyreadline3\console\console.py", line 804, in hook_wrapper_23
res = ensure_str(readline_hook(prompt))
^^^^^^^^^^^^^^^^^^^^^
File "\Python312\Lib\site-packages\pyreadline3\rlmain.py", line 587, in readline
self.readline_setup(prompt)
File "\Python312\Lib\site-packages\pyreadline3\rlmain.py", line 583, in readline_setup
self._print_prompt()
File "\Python312\Lib\site-packages\pyreadline3\rlmain.py", line 487, in _print_prompt
n = c.write_scrolling(self.prompt, self.prompt_color)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Python312\Lib\site-packages\pyreadline3\console\console.py", line 332, in write_scrolling
w, h = self.size()
^^^^
TypeError: cannot unpack non-iterable NoneType object
Readline internal error
Traceback (most recent call last):
File "\Python312\Lib\site-packages\pyreadline3\console\console.py", line 804, in hook_wrapper_23
res = ensure_str(readline_hook(prompt))
^^^^^^^^^^^^^^^^^^^^^
File "\Python312\Lib\site-packages\pyreadline3\rlmain.py", line 587, in readline
self.readline_setup(prompt)
File "\Python312\Lib\site-packages\pyreadline3\rlmain.py", line 583, in readline_setup
self._print_prompt()
File "\Python312\Lib\site-packages\pyreadline3\rlmain.py", line 487, in _print_prompt
n = c.write_scrolling(self.prompt, self.prompt_color)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Python312\Lib\site-packages\pyreadline3\console\console.py", line 332, in write_scrolling
w, h = self.size()
^^^^
TypeError: cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered: