windows-curses icon indicating copy to clipboard operation
windows-curses copied to clipboard

Add Support for Python 3.13

Open pmbarrett314 opened this issue 1 year ago • 1 comments

Python 3.13 is out, which means this project needs an update to support it. I gave it the old college try, but ran into some snags I don't have the bandwidth for. Creating an issue if anyone wants to point out anything glaring I've done wrong, or failing that just to track the status of support for the new version of Python.

pmbarrett314 avatar Oct 15 '24 02:10 pmbarrett314

I have checked and found the problem. There is no default curses.h to be included - every option has its own macro. In addition, this is the same for including panel.h in _curses_panel.c that you have added in py3.13 folder.

I have opened a MR in your fork so you can use it and change whatever you need before opening a MR here.

DjLegolas avatar Oct 22 '24 01:10 DjLegolas

i have also ran into this problem when i try to follow getting started guide of zephyr OS. when running "pip install -r ~/zephyrproject/zephyr/scripts/requirements.txt" for installing python dependencies. it will say "ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)". since i have installed python 3.13 this may be the problem.

ghost avatar Nov 08 '24 04:11 ghost

I get this error while installing:

pwsh> pip install --upgrade windows-curses

ERROR: Could not find a version that satisfies the requirement windows-curses (from versions: none)
ERROR: No matching distribution found for windows-curses

rahaaatul avatar Nov 24 '24 10:11 rahaaatul

It looks like https://github.com/python/cpython/issues/110964 is causing issues. I jankily copied and pasted the relevant definitions from the private header in cpython into my fork and things function now, but it is still exiting with a 0xc0000005 that isn't happening in 3.12.

pmbarrett314 avatar Nov 27 '24 23:11 pmbarrett314

v2.4.1a1 has been released with Python 3.13 support for initial testing.

stephanosio avatar Dec 30 '24 04:12 stephanosio

Thanks for the update. I have been using windows-curses v2.4.1a1 and Python 3.13.1 successfully with no errors.

LewisNeal avatar Jan 04 '25 07:01 LewisNeal