Python meanderings

Liste des GroupesRevenir à col misc 
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 Jan 25 * Python meanderings8Chris Ahlstrom
13 Jan 25 +- Re: Python meanderings1Computer Nerd Kev
13 Jan 25 `* Re: Python meanderings6Farley Flud
14 Jan 25  +- Re: Python meanderings1vallor
14 Jan 25  `* Re: Python meanderings4186282@ud0s4.net
14 Jan 25   `* Re: Python meanderings3rbowman
14 Jan 25    +- Re: Python meanderings1Farley Flud
15 Jan 25    `- Re: Python meanderings1186282@ud0s4.net

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal