Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

We don't really understand it, so we'll give it to the programmers.


devel / comp.lang.python / 回复: Problem using cx_Freeze > auto-py-to-exe

SubjectAuthor
o 回复: Problem using cx_Freeze > auto-py-to-exDaniel Lee

1
回复: Problem using cx_Freeze > auto-py-to-exe

<mailman.297.1660898389.20444.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=23677&group=comp.lang.python#23677

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: Daniel-ZX.Li@hotmail.com (Daniel Lee)
Newsgroups: comp.lang.python
Subject: 回复: Problem using cx_Freeze > auto-py-to-ex
e
Date: Fri, 19 Aug 2022 08:39:43 +0000
Lines: 49
Message-ID: <mailman.297.1660898389.20444.python-list@python.org>
References: <mailman.16.1660838401.12030.python-list@python.org>
<2B29A26F-4863-4D69-8F66-B06EE837F3B1@boomer.org>
<CAPTjJmpwNomaifX39V8bjB1hxB9KmPYeEmxBW-oVQUSSwT5PYQ@mail.gmail.com>
<62fe8d13.370a0220.6babc.5c8f@mx.google.com>
<CAPTjJmoQxsPn4WeHVUDjusVB5Zf5VJKTxxJKJvcSSOPkdinfgw@mail.gmail.com>
<62fed3d7.920a0220.9eb9d.1b96@mx.google.com>
<CAPTjJmou7QKZR2yCs5iMWbMj6W6qDUh+zrCcL+B2p8sL_0PqPg@mail.gmail.com>
<ME3P282MB3808BCECA22342F8E800F2D4C06C9@ME3P282MB3808.AUSP282.PROD.OUTLOOK.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
X-Trace: news.uni-berlin.de 2HfnutFFDErbpjEDar97VANtTKHEEr0zFX/ODbTPYpXw==
Return-Path: <Daniel-ZX.Li@hotmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=hotmail.com header.i=@hotmail.com header.b=HYoDVPTe;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2022': 0.05; 'arrays':
0.07; 'aug': 0.07; 'string': 0.07; 'angelico': 0.09; 'breaks':
0.09; 'json': 0.09; 'much,': 0.09; 'url-ip:13.107.213.67/32':
0.09; 'url-ip:13.107.213/24': 0.09; 'url-ip:13.107.246.67/32':
0.09; 'url-ip:13.107.246/24': 0.09; 'url:master': 0.09; '&gt;':
0.14; 'url:mailman': 0.15; '"add': 0.16; '(b)': 0.16; 'apis':
0.16; 'chrisa': 0.16; 'generates': 0.16; 'ignored': 0.16;
'internal"': 0.16; 'line"': 0.16; 'low-level': 0.16; 'outputs':
0.16; 'subject:auto': 0.16; 'subset': 0.16; 'wrote:': 0.16;
'problem': 0.16; 'grant': 0.17; 'to:addr:python-list': 0.20;
'fri,': 0.22; 'code': 0.23; 'subject:using': 0.23; 'to:name
:python-list@python.org': 0.24; 'url:listinfo': 0.25; 'done':
0.28; 'chris': 0.28; 'think': 0.32; "doesn't": 0.32; 'empty':
0.32; 'files,': 0.32; 'maintaining': 0.32; "wouldn't": 0.32;
'skip:2 10': 0.32; 'but': 0.32; 'particular': 0.33; 'skip:" 20':
0.34; 'header:In-Reply-To:1': 0.34; 'definitely': 0.35; 'final':
0.35; 'really': 0.37; 'using': 0.37; "it's": 0.37; 'url-
ip:13.107/16': 0.38; 'file': 0.38; 'way': 0.38; 'single': 0.39;
'define': 0.40; 'want': 0.40; 'url:https': 0.61; "there's": 0.61;
'url:amp': 0.62; 'format': 0.62; "you'd": 0.64; 'key': 0.64;
're:': 0.64; 'url:%2b': 0.64; 'url:data': 0.64; 'years': 0.65;
'cheat': 0.69; 'end,': 0.69; 'export': 0.69; 'url:%3d': 0.70;
'charset:gb2312': 0.70; 'url:%2f': 0.73; 'deal': 0.73; 'url:url':
0.73; 'url:%3a': 0.74; 'signature': 0.76; 'industry': 0.81;
'saves': 0.84; 'subjectcharset:gb2312': 0.91; 'pain': 0.93
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=C8hW4DtXWlAjZbgyexJhYDt4VM8VExMRAUdMY/5GFdsUSwaOnABgmRJ/nAz7dnSk+l1HkeqHFU3yJriYsT1uyemOpjFtxVBvU0F3NWZ/0vL5rGsh/ry1thQzb9ZaqJZH6cOoRA6AZlCfhU+m1J5szwIXUxoyg97ZCBaIUYd9cxQKjP35wxF0sd6q7dZcNk93/6Zs4PHxA8Wrg7H5GwBKa+NIubB0C9E9Hr2mW3wZdb4hxoqumvu5J/dnWa3EBqYGt2aAdWFM7jFC8s+0P0IdHak/9LWun5Mov0Hx2epvnR44F3RgKjU6wtKBw1d32ZQX7qn/AV/bMOzIOdbnqoE5Ng==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=ENhw2gYFWLnhG8Nqi0FbMUgGi+lii4PUbUIFCcmRhrU=;
b=BXtToDAadW0w09+/abzS/g9m3gHsM3Y/dHmhqZlEbg5iGbLwRERbjm03kl7dbHN31vmct0hBWCpEC/wX9UdNZxEjNSKwWO8XP5MvyH8CsA8cApNVpr6aALUz4u/p3eoCx1ZNRYfwC/j0q0v91UqvtMEqY4CNnDANXWUmJlOSUerBsPTA7wODhdpeze0zYcDzeCBP9GxKAEs3rB+xSIcMZ3svZbECosAnlEJueljF10yyTQ8uP5i42MiVq76vvQwPfZ+kfU2wqIHMhVl7PDyQsdg9gAmEKtbalbeZ1nmdV47afYHGbzDAGulzdDYAGLCen/Oyzb10MjBBHe/XO8gp3w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=ENhw2gYFWLnhG8Nqi0FbMUgGi+lii4PUbUIFCcmRhrU=;
b=HYoDVPTe+9/jef6+kJlRZRmG4ySJ8ZjIq9Zg1nOan/0zzqRELBZVIsJT/e5+8jeN3YZmpCqN0Cm3iygoLn6UEqk8DUSE5pYncIex+ioMsc3EIPipTmpBUungkG0Jv17iBspZABjixs9EQG3sDG1TAlxSUHVH1j334jKWwrQjQ1R8fTwc6smibdF/V3ylDAJXLAgypzIPIDcXWfNybnUUL2v21eA3rmo+u176EqlxaTeetb831pBAPVoaEIk56ZR531L2xKcgDrkHj2yVv35ooqr+22wDOGmIbvuye/nJVDZOERvuUKmUyiAlumHb9sxAwJKhnRWR04ey2GZyNScYBg==
Thread-Topic: Problem using cx_Freeze > auto-py-to-exe
Thread-Index: AQHYsy8yGGRlAZF9oE+RQbO7hBW05K20+P+AgAALpVuAAB/EgIAANJbLgAAHv4CAAIcY1Q==
In-Reply-To: <CAPTjJmou7QKZR2yCs5iMWbMj6W6qDUh+zrCcL+B2p8sL_0PqPg@mail.gmail.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-tmn: [xvuCzT92eljpEIlB+Ep5JBEcrmzUCW1spb2YgkHGVJ4=]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 61de61c7-4dd5-488c-c413-08da81be5d21
x-ms-traffictypediagnostic: SY4P282MB2427:EE_
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: ftessz7zD/GB32K8xP9U8vjF21cduESiNmx55lSK6okwe4CqnxwWjmLFbufTESP+nuNyJxd78Xvo7FZve0NTfSlwB/Tu5iCLox9y/hghN8Y946wDN4A9B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1gZ1YcX+zo
pxsapeeVbmqK7p7uh4CehDxOGt3FcV43sn4BoeZrBNlUP
YasR82R+q9E96AkxXLBg8ok2WBhtK3jN+/ngkdXfiYL2Z
Zq3fci+3/X2raxO5JHdmBKxRJ5Xb+V8mVOszC8YNvCadZ
sC6H1bzhayih7Oxyezmvc5hcKTSAIDmS9abzdHWukUNs1
s1BLX10MBnAcSYFkDFX49JaiQRvrq3YR3hIIypLHfAoO7
hvNjOdme6SrObXr11WgWpMeSXtDpxu43RoabNDlT579Q1
uj7IRmVeqVd6bOABGubKd5wxTVyeIzkRokYqpors6MthU
NhOlWagHXBMSDMmoqGC1R6pgcIvOsW5Xfk1mbczQqvFBs
tq4ckh6rfWncwsjlzbQC8xdIygyheGNcEh44br4wnwqgh
ozHB9/KiZThPnRUjEwtH8CV9hZToHn1oZ2baoEEpHkchF
+PBHpPVvBsM+mC34LbYnLH/xXQGuiCFG0ekQqu+Dn0o7S
PdjX91EpCATj16u6RtRu+C41Xl7iDeuiw7HoSCEur3Xic
qexeD2W/Li1NEwtfqQKjFkv93v475RL3X6fK+q77AEh3d
QQTslGwqleEeCOw1+fNs9f6y7BmX/9kEL5XcnkNgqID8c
cs3y7P+4a2ToD/skXlA9uyiWoQJPC+vZV5nfozHezt6Ld
nNj2b7SgD1G4MsGPIGYBCBTmNNoAy0zy/RO/uq6K877zo
D7zaxM0Ok694UBegPAL160MSM0vRXoqfuaa4raoOUOZFJ
/IzF8YfCaRvrUG7c/1QAXfLPlumR3fmmuouDExT4FgE83
70yEVeBhSuHHY+p8UTRESXRCwmieSyUJMzM7ExvRrqdpt
SYgDH0OiwPnfpNmXJk=
X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-746f3.templateTenant
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: ME3P282MB3808.AUSP282.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 61de61c7-4dd5-488c-c413-08da81be5d21
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Aug 2022 08:39:43.2141 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY4P282MB2427
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <ME3P282MB3808BCECA22342F8E800F2D4C06C9@ME3P282MB3808.AUSP282.PROD.OUTLOOK.COM>
X-Mailman-Original-References: <mailman.16.1660838401.12030.python-list@python.org>
<2B29A26F-4863-4D69-8F66-B06EE837F3B1@boomer.org>
<CAPTjJmpwNomaifX39V8bjB1hxB9KmPYeEmxBW-oVQUSSwT5PYQ@mail.gmail.com>
<62fe8d13.370a0220.6babc.5c8f@mx.google.com>
<CAPTjJmoQxsPn4WeHVUDjusVB5Zf5VJKTxxJKJvcSSOPkdinfgw@mail.gmail.com>
<62fed3d7.920a0220.9eb9d.1b96@mx.google.com>
<CAPTjJmou7QKZR2yCs5iMWbMj6W6qDUh+zrCcL+B2p8sL_0PqPg@mail.gmail.com>
 by: Daniel Lee - Fri, 19 Aug 2022 08:39 UTC

Thank you so much, I really appreciate it.
发件人: Chris Angelico<mailto:rosuav@gmail.com>
发送时间: 2022年8月19日 8:39
收件人: python-list@python.org<mailto:python-list@python.org>
主题: Re: Problem using cx_Freeze > auto-py-to-exe
On Fri, 19 Aug 2022 at 10:07, Grant Edwards <grant.b.edwards@gmail.com> wrote:
>
> On 2022-08-18, Chris Angelico <rosuav@gmail.com> wrote:
> > On Fri, 19 Aug 2022 at 05:05, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> >> On 2022-08-18, Chris Angelico <rosuav@gmail.com> wrote:
> >>
> >> > It's one of the frustrations with JSON, since that format doesn't
> >> > allow the trailing comma :)
> >>
> >> Yep, that's a constant, low-level pain for all the C code I deal with
> >> which generates JSON. You'd think after 10+ years of maintaining code
> >> that outputs JSON, I wouldn't trip over that any longer...
> >
> > With some JSON files, I just cheat and define a shim at the end of arrays...
> >
> > https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2FRosuav%2FMustardMine%2Fmaster%2Ftemplate.json&amp;data=05%7C01%7C%7Cc74e60f1d42f4904e66c08da817b37fa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964663486534639%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=W5LULRCXXGHodvem7CdscC9KZDrU7ONXbCAlIuBZ8Xg%3D&amp;reserved=0
>
> That's OK if it's strictly internal. Almost all of the JSON data I
> work with is part of published APIs ― many of which are defined by
> industry consortiums or corporate-wide "standards".
>
That's an export/import format that I defined, so I mandated (a) that
there's an empty-string key as a signature (on import, it can be
anywhere, but on export, it's that final shim), and (b) all arrays are
allowed to have an empty string at the end, which is ignored on
import. Saves so much trouble.
That particular export format is actually designed as a git-managed
config file as well, which is why the line breaks are done the way
they are (anything on a single line is intended to be added/removed as
a single unit), which is why I definitely don't want the "add a comma
to the previous line" deltas.
"Strictly internal" is a subset of "protocols/standards that you are
in control of". :)
ChrisA
--
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-list&amp;data=05%7C01%7C%7Cc74e60f1d42f4904e66c08da817b37fa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964663486554552%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=5nlih9a9slRg%2FWdtsS4IbskQKIKUTfj%2BqefVsWa0C4Q%3D&amp;reserved=0


devel / comp.lang.python / 回复: Problem using cx_Freeze > auto-py-to-exe

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor