-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
AttributeError: module 'readline' has no attribute 'backend' in 3.13.0a3 #117669
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
Comments
I'm not sure what you mean by readline-6.2.4.1-cp313-cp313-linux_x86_64 is it the pypi package? If so https://pypi.org/project/readline/6.2.4.1/ is deprecated and has been renamed to https://pypi.org/project/gnureadline/ You should upgrade to see if your problem still exists, if so this is probably not an issue cpython can resolve and something the gnureadline maintainers will need to fix |
Hi,Thanks a lot. while trying to install gnureadline-8.1.2 , here is an error. Modules/3.x/clinic/readline.c.h:34:10: warning: implicit declaration of function ‘_PyArg_CheckPositional’; did you mean ‘PyErr_CheckSignals’? [-Wimplicit-function-declaration]
if (!_PyArg_CheckPositional("read_init_file", nargs, 0, 1)) {
^~~~~~~~~~~~~~~~~~~~~~
PyErr_CheckSignals
In file included from Modules/3.x/readline.c:943:0:
Modules/3.x/clinic/readline.c.h: In function ‘readline_append_history_file’:
Modules/3.x/clinic/readline.c.h:143:17: warning: implicit declaration of function ‘_PyLong_AsInt’; did you mean ‘PyLong_AsInt’? [-Wimplicit-function-declaration]
nelements = _PyLong_AsInt(args[0]);
^~~~~~~~~~~~~
PyLong_AsInt
Modules/3.x/clinic/readline.c.h: In function ‘readline_replace_history_item’:
Modules/3.x/clinic/readline.c.h:441:9: warning: implicit declaration of function ‘_PyArg_BadArgument’; did you mean ‘PyErr_BadArgument’? [-Wimplicit-function-declaration]
_PyArg_BadArgument("replace_history_item", "argument 2", "str", args[1]);
^~~~~~~~~~~~~~~~~~
PyErr_BadArgument
Modules/3.x/readline.c: In function ‘readline_until_enter_or_signal’:
Modules/3.x/readline.c:1356:34: error: ‘_PyOS_ReadlineTState’ undeclared (first use in this function); did you mean ‘PyOS_Readline’?
PyEval_RestoreThread(_PyOS_ReadlineTState);
^~~~~~~~~~~~~~~~~~~~
PyOS_Readline
Modules/3.x/readline.c:1356:34: note: each undeclared identifier is reported only once for each function it appears in
Modules/3.x/readline.c: In function ‘call_readline’:
Modules/3.x/readline.c:1387:5: warning: implicit declaration of function ‘_Py_SetLocaleFromEnv’ [-Wimplicit-function-declaration]
_Py_SetLocaleFromEnv(LC_CTYPE);
^~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output] |
You will need to ask gnureadline maintainers to release a new version with 3.13 support |
ty, that's helpful |
Bug report
Bug description:
python 3.13.0a3
readline-6.2.4.1-cp313-cp313-linux_x86_64
CPython versions tested on:
3.13
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: