broken with python 3.13 as pipes module got removed
Description:
Running the curses frontend doesn't work with python 3.13
as it uses the pipes
module which got removed.
Additional info:
- extra/canto-curses 0.9.9-7
- https://github.com/themoken/canto-curses/issues/57
Steps to reproduce:
$ canto-curses
$ canto-curses
Traceback (most recent call last):
File "/usr/bin/canto-curses", line 3, in <module>
from canto_curses.main import CantoCurses
File "/usr/lib/python3.13/site-packages/canto_curses/main.py", line 18, in <module>
from .gui import CantoCursesGui, GraphicalLog
File "/usr/lib/python3.13/site-packages/canto_curses/gui.py", line 16, in <module>
from .command import CommandHandler, cmd_execute, register_command, register_alias
File "/usr/lib/python3.13/site-packages/canto_curses/command.py", line 17, in <module>
import pipes
ModuleNotFoundError: No module named 'pipes'
Solution?
Although my python isn't very strong, I didn't see any usage of the pipes module itself
https://github.com/themoken/canto-curses/blob/master/canto_curses/command.py
Just the import.
Therefore I simply tried the following patch:
--- a/canto-curses/canto_curses/command.py
+++ b/canto-curses/canto_curses/command.py
@@ -14,7 +14,6 @@
import logging
import curses
import shlex
-import pipes
import readline
And the curses interface starts again. Tried simple testing if I can still read feed entries or open them in a browser. And that works.
Can create a MR, but as I'm unsure if I didn't overlook something, I want some more eyes on this if possible.