Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Your goose is cooked. (Your current chick is burned up too!)


comp / comp.os.linux.misc / Re: Python meanderings

SubjectAuthor
* Python meanderingsChris Ahlstrom
+- Re: Python meanderingsComputer Nerd Kev
`* Re: Python meanderingsFarley Flud
 +- Re: Python meanderingsvallor
 `* Re: Python meanderings186282@ud0s4.net
  `* Re: Python meanderingsrbowman
   +- Re: Python meanderingsFarley Flud
   `- Re: Python meanderings186282@ud0s4.net

1
Subject: Python meanderings
From: Chris Ahlstrom
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Organization: None
Date: Mon, 13 Jan 2025 16:27 UTC
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
Subject: Python meanderings
Date: Mon, 13 Jan 2025 11:27:30 -0500
Organization: None
Lines: 37
Message-ID: <vm3etj$1rlkk$2@dont-email.me>
Reply-To: OFeem1987@teleworm.us
Injection-Date: Mon, 13 Jan 2025 17:27:32 +0100 (CET)
Injection-Info: dont-email.me; posting-host="13456c24b8181a401e5059896898cdd9";
logging-data="1955476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SGfiuNwWrlnD5SkroLDCb"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:L1MznJv68UH1T42cppJtEtXMElQ=
X-Face: 63n<76,LYJQ2m#'5YL#.T95xqyPiG`ffIP70tN+j"(&@6(4l\7uL)2+/-r0)/9SjZ`qw=
Njn mr93Xrerx}aQG-Ap5IHn"xe;`5:pp"$RH>Kx_ngWw%c\+6qSg!q"41n2[.N/;Pu6q8?+Poz~e
A9? $6_R7cm.l!s8]yfv7x+-FYQ|/k
View all headers

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.

Subject: Re: Python meanderings
From: Computer Nerd Kev
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Organization: Ausics - https://newsgroups.ausics.net
Date: Mon, 13 Jan 2025 21:09 UTC
References: 1
Message-ID: <678580fa@news.ausics.net>
From: not@telling.you.invalid (Computer Nerd Kev)
Subject: Re: Python meanderings
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
References: <vm3etj$1rlkk$2@dont-email.me>
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/2.4.31 (i586))
NNTP-Posting-Host: news.ausics.net
Date: 14 Jan 2025 07:09:14 +1000
Organization: Ausics - https://newsgroups.ausics.net
Lines: 39
X-Complaints: abuse@ausics.net
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!news.bbs.nz!news.ausics.net!not-for-mail
View all headers

In comp.os.linux.misc Chris Ahlstrom <OFeem1987@teleworm.us> wrote:
> 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.

If I'm looking for a program and find a Python script that does
exactly what I want, I keep looking. Too much time wasted trying to
make them run for me, or wasted later when they break compatibility
in a newer Python release.

But I have assumed that Python scripts with Debian (stable)
packages are safe because it's someone else's problem to deal with
making them run with the Python that's pacakged there. But you say
that RaySession came from "the Debian repo" so I guess that
package's maintainer couldn't even get it right. Maybe I should be
even more strict with exterminating these pesky snakes?

--
__ __
#_ < |\| |< _#

Subject: Re: Python meanderings
From: Farley Flud
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Organization: UsenetExpress - www.usenetexpress.com
Date: Mon, 13 Jan 2025 22:03 UTC
References: 1
From: ff@linux.rocks (Farley Flud)
Subject: Re: Python meanderings
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
References: <vm3etj$1rlkk$2@dont-email.me>
Mime-Version: 1.0
Message-Id: <pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 26
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Mon, 13 Jan 2025 22:03:04 +0000
Nntp-Posting-Date: Mon, 13 Jan 2025 22:03:04 +0000
X-Received-Bytes: 1107
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
View all headers

On Mon, 13 Jan 2025 11:27:30 -0500, Chris Ahlstrom wrote:

>
> 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.
>

You are a brave person indeed.

Whenever I encounter a project that requires Python I run away
like mad.

It could be that any developer who chooses Python is totally
incompetent.

It could be something else.

But whatever, it is no Python for me ever.

--
Systemd: solving all the problems that you never knew you had.

Subject: Re: Python meanderings
From: vallor
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Date: Mon, 13 Jan 2025 23:53 UTC
References: 1 2
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
Subject: Re: Python meanderings
Date: 13 Jan 2025 23:53:18 GMT
Lines: 31
Message-ID: <lulnbeFk2qvU3@mid.individual.net>
References: <vm3etj$1rlkk$2@dont-email.me>
<pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 21ZoZkuf/5pT30LYLZwJuwfHGENx6uWjT986KXulv2D0VBCUbf
Cancel-Lock: sha1:2VzlbGIfKHc7pD+a/belvudAv/c= sha256:FNeX0D+nR9ojJVh2YEYCzcnhKBOTHgcltDnJkUdgcj8=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.161 (Hmm2; c45f6052; Linux-6.13.0-rc7)
View all headers

On Mon, 13 Jan 2025 22:03:04 +0000, Farley Flud <ff@linux.rocks> wrote in
<pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks>:

> On Mon, 13 Jan 2025 11:27:30 -0500, Chris Ahlstrom wrote:
>
>
>> 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.
>>
>>
> You are a brave person indeed.
>
> Whenever I encounter a project that requires Python I run away like mad.
>
> It could be that any developer who chooses Python is totally
> incompetent.
>
> It could be something else.
>
> But whatever, it is no Python for me ever.

How can you tell when Feeb is wrong? Whenever
he writes.

(His distro's package manager uses Python.)

--
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
OS: Linux 6.13.0-rc7 Release: Mint 21.3 Mem: 258G
"I used to have a handle on life, then it broke."

Subject: Re: Python meanderings
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Organization: wokiesux
Date: Tue, 14 Jan 2025 01:55 UTC
References: 1 2
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-3.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 14 Jan 2025 01:55:44 +0000
Subject: Re: Python meanderings
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
References: <vm3etj$1rlkk$2@dont-email.me>
<pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Mon, 13 Jan 2025 20:55:45 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <3DidnYy-G8O9WRj6nZ2dnZfqn_GdnZ2d@earthlink.com>
Lines: 24
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-MNpYN5+P0j4eXCvBqFcOrSGGH0PGloo168aXre4+0v7Uou4pFrpSDj22khuswh1iQcUDgDu31BWEpcL!icCkO+zo2Gv2592UfL5qSFNpen9UzXrNgkSsHR3xJfeBovU2hFxUctpwijHRtYs95cT2dU+rY5+S!msEHRs7qlgb5my9O7OhM
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 1/13/25 5:03 PM, Farley Flud wrote:
> On Mon, 13 Jan 2025 11:27:30 -0500, Chris Ahlstrom wrote:
>
>>
>> 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.
>>
>
> You are a brave person indeed.
>
> Whenever I encounter a project that requires Python I run away
> like mad.
>
> It could be that any developer who chooses Python is totally
> incompetent.
>
> It could be something else.
>
> But whatever, it is no Python for me ever.

Python is perfectly good, so WHERE could the
problem be .... :-)

Subject: Re: Python meanderings
From: rbowman
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Date: Tue, 14 Jan 2025 04:16 UTC
References: 1 2 3
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bowman@montana.com (rbowman)
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
Subject: Re: Python meanderings
Date: 14 Jan 2025 04:16:49 GMT
Lines: 7
Message-ID: <lum6phFoosuU3@mid.individual.net>
References: <vm3etj$1rlkk$2@dont-email.me>
<pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks>
<3DidnYy-G8O9WRj6nZ2dnZfqn_GdnZ2d@earthlink.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net fv02t/LUKvLAKBA1WzATpA5FXY3n3Y3Q+q9qPdQPvf+o7voUZw
Cancel-Lock: sha1:UrypEtlIGcY3G/lqc2XCIflJhvc= sha256:bbTJGNeK2oNNgMC6vFbdDVZwnGLq1kBHShPfdxwhumE=
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
View all headers

On Mon, 13 Jan 2025 20:55:45 -0500, 186282@ud0s4.net wrote:

> Python is perfectly good, so WHERE could the problem be ....

A world renown C programmer would never stoop to something as plebeian as
Python. Why do something adequate for the task in 50 lines when you can do
it in 500?

Subject: Re: Python meanderings
From: Farley Flud
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Followup: comp.os.linux.advocacy
Organization: UsenetExpress - www.usenetexpress.com
Date: Tue, 14 Jan 2025 10:56 UTC
References: 1 2 3 4
From: fsquared@fsquared.linux (Farley Flud)
Subject: Re: Python meanderings
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
Followup-To: comp.os.linux.advocacy
References: <vm3etj$1rlkk$2@dont-email.me> <pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks> <3DidnYy-G8O9WRj6nZ2dnZfqn_GdnZ2d@earthlink.com> <lum6phFoosuU3@mid.individual.net>
User-Agent: Pan/0.146 (Hic habitat felicitas; d7a48b4 gitlab.gnome.org/GNOME/pan.git)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 19
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!news.swapon.de!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Tue, 14 Jan 2025 10:56:09 +0000
Nntp-Posting-Date: Tue, 14 Jan 2025 10:56:09 +0000
X-Received-Bytes: 1278
X-Complaints-To: abuse@usenetexpress.com
Organization: UsenetExpress - www.usenetexpress.com
Message-Id: <181a89d88233698c$2007$2484$802601b3@news.usenetexpress.com>
View all headers

On Tue, 14 Jan 2025 04:16:49 +0000, a bunch of assholes wrote:

>
>
>> Python is perfectly good, so WHERE could the problem be ....
> [snip remainder of collective idiocy]

I do beg your fucking pardons. I should have said that I will run like
hell from Python GUI projects. Repeat: I will run like hell from Python
GUI projects.

But I assumed that it would be undestood from the context of the OP.

However, the proper understanding of context requires a modicum of
intelligence which you all fucking buzzards do not possess.

--
Hail Linux! Hail FOSS! Hail Stallman!

Subject: Re: Python meanderings
From: 186282@ud0s4.net
Newsgroups: comp.os.linux.advocacy, comp.os.linux.misc
Organization: wokiesux
Date: Wed, 15 Jan 2025 04:09 UTC
References: 1 2 3 4
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 15 Jan 2025 04:09:09 +0000
Subject: Re: Python meanderings
Newsgroups: comp.os.linux.advocacy,comp.os.linux.misc
References: <vm3etj$1rlkk$2@dont-email.me>
<pan$de392$a8fd95f1$d57dc675$fcade1a8@linux.rocks>
<3DidnYy-G8O9WRj6nZ2dnZfqn_GdnZ2d@earthlink.com>
<lum6phFoosuU3@mid.individual.net>
From: 186283@ud0s4.net (186282@ud0s4.net)
Organization: wokiesux
Date: Tue, 14 Jan 2025 23:09:08 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
MIME-Version: 1.0
In-Reply-To: <lum6phFoosuU3@mid.individual.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Message-ID: <4W6dnexF9cN4qRr6nZ2dnZfqn_GdnZ2d@earthlink.com>
Lines: 18
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 99.101.150.97
X-Trace: sv3-QlD4Lv5nnmvXaEswUZebXvOChs+Rh7MvdMKSgdmNhg4/hk8KJA3Ws2Wvx+EMonJECe3h8PsWFI5fi9V!tB2R/Wpi8U5NzUfXHBHIrcHTvW5IKOvNHiwdgKo3juXBSpBMx2fsqmRH2qorKta+NFfzJ7pMppzO!USRLull14QnUCgTzvtzt
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
View all headers

On 1/13/25 11:16 PM, rbowman wrote:
> On Mon, 13 Jan 2025 20:55:45 -0500, 186282@ud0s4.net wrote:
>
>> Python is perfectly good, so WHERE could the problem be ....
>
> A world renown C programmer would never stoop to something as plebeian as
> Python. Why do something adequate for the task in 50 lines when you can do
> it in 500?

Depends - do you get paid by the hour ? :-)

In any case, Python isn't THAT much more verbose, and
it's easier to understand. Yer 'C' code may be smaller,
but ideally there's a LOT of comment lines .... even
you won't understand half of it in a year or two.

But, as said, I often split the diff and program
in Pascal.

1

rocksolid light 0.9.8
clearnet tor