On Sun, Feb 12, 2023 at 03:45:47PM +0100, Jiri Navratil wrote: > Hello, > > Thank you maintaining python packages for OpenBSD. > > Could you kindly help me to resolve issue with history in Python 3.10? > > I'm on OpenBSD 7.2 GENERIC.MP#6 amd64 and have three Python versions
I take it that means that you're running -stable (these numbers are meaningless, please show the full output of `sysctl kern.version`). readline support was broken in Python 3.10 for a long time due to an unfortunate interaction with an old issue in the GNU readline headers: https://github.com/openbsd/src/commit/b9a442fa4bbf806692d2f3fed7f4fd20be704e6e If you really need the Python 3.10 REPL, there's unfortunately no way past recompiling it. Probably the best option is to drop this file into /usr/ports/lang/python/3.10/patches of a -stable ports tree https://raw.githubusercontent.com/openbsd/ports/a8dd03208c054c281d26916eb212523b493b4a75/lang/python/3.10/patches/patch-Modules_readline_c then recompiling and reinstalling Python. The other option would be to apply the src patch above to the system header, but that's even less appealing. This is not the kind of issue we usually patch in -stable, especially since Python 3.10 is not the default Python.
