From this point on Python became unusable as I uninstalled rebooted then reinstalled to find I have the same issues as stated. Finally uninstalled Python as it doesn't perform as usual especially trying to understand the
use of pyreadline, gnureadline and or just readline.
From this point on Python became unusable as I uninstalled rebooted then reinstalled to find I have the same issues as stated. Finally uninstalled Python as it doesn't perform as usual especially trying to understand theuse of pyreadline, gnureadline and or just readline.
Dear Sir:While
For whatever reason I have lost functionality of using Python 3.11.
opening Python (standalone or from CMD prompt) as usual this AM the following message appeared. Did read that it is not compatible with Windows but I can't get it to work as I don't know what module will load.(AMD64)] on
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit
win32"C:\Users\bigle\AppData\Local\Programs\Python\Python311\Lib\site-packages\readline.py",
Type "help", "copyright", "credits" or "license" for more information. Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "<frozen site>", line 445, in register_readline
File
rl = Readline()"C:\Users\bigle\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyreadline\rlmain.py",
^^^^^^^^^^
File
BaseReadline.__init__(self)"C:\Users\bigle\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyreadline\rlmain.py",
File
mode.init_editing_mode(None)"C:\Users\bigle\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyreadline\modes\emacs.py",
File
self._bind_key('space', self.self_insert)"C:\Users\bigle\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyreadline\modes\basemode.py",
File
if not callable(func):"C:\Users\bigle\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyreadline\py3k_compat.py",
^^^^^^^^^^^^^^
File
return isinstance(x, collections.Callable)rerthen
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Callable'
From this point on Python became unusable as I uninstalled rebooted
reinstalled to find I have the same issues as stated. Finallyuninstalled
Python as it doesn't perform as usual especially trying to understand the use of pyreadline, gnureadline and or just readline.
If you can help great.
Regards,
Leon Pearlman
On 12/2/22, biglee12672@gmail.com <biglee12672@gmail.com> wrote:
From this point on Python became unusable as I uninstalled rebooted then
reinstalled to find I have the same issues as stated. Finally uninstalled >> Python as it doesn't perform as usual especially trying to understand the
use of pyreadline, gnureadline and or just readline.
When Python runs interactively, it implicitly tries to import the
readline module. On POSIX, Python has a builtin readline module that
usually uses the GNU Readline library.
On Windows, Python does not include a readline module. Instead, if
standard I/O is a console, the high-level WinAPI ReadConsoleW()
function is used, which implements its own line editor and
command-line history. It's not as general, flexible, or capable as the readline interface, so a third-party pyreadline package was
implemented for Windows. However, as far as I know, pyreadline is no
longer actively developed. Thus it has out-of-date code, which may be
broken in newer releases of Python, such as isinstance(x, collections.Callable).
Your choice is to either patch pyreadline to fix the bug or uninstall it.
On 12/2/22, biglee12672@gmail.com <biglee12672@gmail.com> wrote:
From this point on Python became unusable as I uninstalled rebooted then
reinstalled to find I have the same issues as stated. Finally uninstalled >> Python as it doesn't perform as usual especially trying to understand the
use of pyreadline, gnureadline and or just readline.
When Python runs interactively, it implicitly tries to import the
readline module. On POSIX, Python has a builtin readline module that
usually uses the GNU Readline library.
On Windows, Python does not include a readline module. Instead, if
standard I/O is a console, the high-level WinAPI ReadConsoleW()
function is used, which implements its own line editor and
command-line history. It's not as general, flexible, or capable as the readline interface, so a third-party pyreadline package was
implemented for Windows. However, as far as I know, pyreadline is no
longer actively developed. Thus it has out-of-date code, which may be
broken in newer releases of Python, such as isinstance(x, collections.Callable).
Your choice is to either patch pyreadline to fix the bug or uninstall it.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 453 |
Nodes: | 16 (2 / 14) |
Uptime: | 27:39:33 |
Calls: | 9,282 |
Calls today: | 2 |
Files: | 13,515 |
Messages: | 6,072,645 |