Python meanderings

Liste des GroupesRevenir à ol advocacy 
Sujet : Python meanderings
De : OFeem1987 (at) *nospam* teleworm.us (Chris Ahlstrom)
Groupes : comp.os.linux.advocacy comp.os.linux.misc
Date : 13. Jan 2025, 17:27:30
Autres entêtes
Organisation : None
Message-ID : <vm3etj$1rlkk$2@dont-email.me>
User-Agent : slrn/1.0.3 (Linux)
I had a list of 120 items I wanted to construct for a configuration file. After
editing 20 of them I thought, this is nuts, it'll take me forever. So I decided
to write a simple python script. I took a look at a Python program I wrote many
years ago, but it was much more complex than I remebers, with making
directories, handling a fair number of command-line options, file-tree walking.
Too much, so I made a small script to do the job and it was pretty easy.

Now I want to run an audio/MIDI session manager. The JACK project ported the
Non Session Manager as the "New Session Manager", and includes the original
GUI. But I wanted something a little more modern.

Downloaded, built, and installed the Python app "agordejo". It does not run on
this Debian system. "This application failed to start because no Qt platform
plugin could be initialized." Haven't figured that out.

So there's another Python-based session manager, RaySession, which is part of
the Debian repo. I install that and run it, and I get a traceback about 15
levels deep. "No module named cgitb".

    https://docs.python.org/3/library/cgitb.html

    This module is no longer part of the Python standard library. It was
    removed in Python 3.13 after being deprecated in Python 3.11. The removal
    was decided in PEP 594.

    A fork of the module on PyPI can now be used instead: legacy-cgi. This is a
    copy of the cgi module, no longer maintained or supported by the core
    Python team.

    The last version of Python that provided the cgitb module was Python 3.12.

Installing legacy-cgi from the link didn't work (wants a virtual setup).
But python3-legacy-cgi in the repo works, and I can now run RaySession.

--
Q: How do you stop an elephant from charging?
A: Take away his credit cards.

Date Sujet#  Auteur
13 Jan17:27 * Python meanderings11Chris Ahlstrom
13 Jan20:58 +- Re: Python meanderings1rbowman
13 Jan22:09 +- Re: Python meanderings1Computer Nerd Kev
13 Jan23:03 `* Re: Python meanderings8Farley Flud
14 Jan00:53  +- Re: Python meanderings1vallor
14 Jan02:55  +* Re: Python meanderings4186282@ud0s4.net
14 Jan05:16  i`* Re: Python meanderings3rbowman
14 Jan11:56  i `* Re: Python meanderings2Farley Flud
14 Jan16:05  i  `- Re: Python meanderings1The Natural Philosopher
14 Jan04:54  `* Re: Python meanderings2DFS
14 Jan06:01   `- Re: Python meanderings1Nick Charles

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal