Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Q: What happens when four WASPs find themselves in the same room? A: A dinner party.


comp / comp.lang.python / Re: Crash when launching python

SubjectAuthor
* Crash when launching pythonGuenther Sohler
`- Re: Crash when launching pythonStefan Ram

1
Subject: Crash when launching python
From: Guenther Sohler
Newsgroups: comp.lang.python
Date: Wed, 4 Sep 2024 15:27 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: guenther.sohler@gmail.com (Guenther Sohler)
Newsgroups: comp.lang.python
Subject: Crash when launching python
Date: Wed, 4 Sep 2024 17:27:40 +0200
Lines: 15
Message-ID: <mailman.33.1725463675.2917.python-list@python.org>
References: <CAASeUHqhP-TKjWkNqb_2o59a6hH6BRYa_kuNZn-gZ3wzC45NXQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de xLAwMd3IriwyKOJCmE46oAbL+j90Wt8pXTEBnkeBdO5Q==
Cancel-Lock: sha1:A6A+4WiIULNagIt7joh3E5kOBRo= sha256:ql4ctVHm8JXP20nmI0QOYstycdF3GY8je0UT0zCvdT4=
Return-Path: <guenther.sohler@gmail.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=gmail.com header.i=@gmail.com header.b=Z+BFR1nd;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'looks': 0.02;
'subject:python': 0.06; 'debugging': 0.07; 'subject:when': 0.07;
'console,': 0.09; 'integrate': 0.09; 'macos': 0.09; 'python':
0.16; 'to:addr:python-list': 0.20; 'message-id:@mail.gmail.com':
0.32; 'but': 0.32; 'there': 0.33; 'able': 0.34;
'received:google.com': 0.34; 'runs': 0.35; 'from:addr:gmail.com':
0.35; 'files': 0.36; 'display': 0.36; 'quite': 0.39; 'still':
0.40; 'files.': 0.40; 'ship': 0.81
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1725463672; x=1726068472; darn=python.org;
h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
:date:message-id:reply-to;
bh=tdkCwiFcA4zFftXXbxmJIrwpbZi6pAoXlWjmZ54Upes=;
b=Z+BFR1ndnU6RCIebL+XkxmHJxKAo9k7ijZYEhpRoMbJRC9qxKyG5jxlPuz2EySLIRY
vI1oc1UF2/zTiPyYEc1VHNznMxGvri9yLOAROZkj3vCc1Yb+xJZEYMom0eelVYvtRb3n
c2hFvAi8IxFSqmdUngKntyPkXM0Dxi+I5dUJwmRTFZKI9/5apCHWAIs3XKnDQbWBDjhX
spv75wQZ/4pzX16pTMLOfv9X8jD/B2IYLdnYcq6kTp75VcPRbHnSawe9A/ZE17kkfAE4
hKBxXZRgH1+lDKLupgC9rjtDSIhQPAHkFej4F45OYIjRRoXvcsqg07JJnbCFCorbhwAs
YM+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1725463672; x=1726068472;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=tdkCwiFcA4zFftXXbxmJIrwpbZi6pAoXlWjmZ54Upes=;
b=tUmBIxDFamjHjvVJYKY3O8PQXC9xYGSB8+Bhg2KYFCnsUB0JHVyIvKFWTAqyxBhBD7
imwFrPrQMYyRNJOXpy6BQGKmM0W4ZErzh1bs1SWfQDrMD66ltAz75G5rdEAq5bcDwRj9
zRgMTZT2EgRQA02AdGiJXRlVmAeHXHK7FxEOjX+Q5II/wnSv5r25qt3Lu2yXjMsXHIdh
Z88KQRwTPh63d8R7W3gDI4Oo8EsnWjSlnReYH4RiSYKgvjhsd6VjfXWhucsVzjy4izlt
wuHbjD2KN+yVbXBzHlY4p81OU61j7RFeg65i7GidPXHui+lcFJGkFhk+Gx+/s6AF8ADb
4iDQ==
X-Gm-Message-State: AOJu0YwmpicqEtPm6XzC2Q4RFzyculsoxtNkenplNkPXAp2sQy52EiWg
8KtkwPrq3/9ZcxyDPUdMLbzXH2aPqV/0V253QY+isK/bTaDJHJSEE1Vsb/R19bhxeLtCXSWszE1
Exp0sJ7IdfG0Dl30K7VGiFsre+Oe5fkqw
X-Google-Smtp-Source: AGHT+IEtxmWlZ4zzu9tgaiOEz9SQd35GK/c5aSWdHcq2t68WbdtS4Z3rlaZKJ8MfX0T/dbi7HrZ4GteuIEnf908z93Y=
X-Received: by 2002:a05:6870:d202:b0:261:9fc:16b9 with SMTP id
586e51a60fabf-27810d27c10mr8176601fac.33.1725463672160; Wed, 04 Sep 2024
08:27:52 -0700 (PDT)
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: <CAASeUHqhP-TKjWkNqb_2o59a6hH6BRYa_kuNZn-gZ3wzC45NXQ@mail.gmail.com>
View all headers

Hi,

My "Project" is to integrate python support into OpenSCAD. It runs quite
well, but
there are still issues on MacOS. On My MacOS it works, but it crashes when
I ship
the DMG files.
It looks very much like python is not able to find the "startup" python
files and therefore crashes.

Is it possible to turn on debugging and to display on the console, where
python is loading files from ?

Thank you

Subject: Re: Crash when launching python
From: Stefan Ram
Newsgroups: comp.lang.python
Organization: Stefan Ram
Date: Wed, 4 Sep 2024 15:52 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Crash when launching python
Date: 4 Sep 2024 15:52:28 GMT
Organization: Stefan Ram
Lines: 20
Expires: 1 Jul 2025 11:59:58 GMT
Message-ID: <loading-20240904165126@ram.dialup.fu-berlin.de>
References: <mailman.33.1725463675.2917.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de YedDy24AoQ5Kgyx4XoIyGggkvvVb69/H44pte3ZlM8GLjL
Cancel-Lock: sha1:EnwJ+BmTJ+3WclzyS3WL9HyRnls= sha256:wWYnU8zB2Kbv8a9YJKvE7dQFGm7GIa8OG/G1jYONJLw=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
View all headers

Guenther Sohler <guenther.sohler@gmail.com> wrote or quoted:
>Is it possible to turn on debugging and to display on the console, where
>python is loading files from ?

The "-v" flag? It's like a snitch for module loading. It'll spill
the beans on where each module's coming from - whether it's a file
or baked right into Python. Stack those "-v"s for the full 411.

Now, if you're feeling extra Californian, you can set the
"PYTHONVERBOSE" environment variable to some integer. It's like
hitting the "-v" button multiple times, but with that laid-back
West Coast vibe.

Oh, and get this - "sys.settrace(tracefunc)" is like the
ultimate stalker for your code. It lets you set up a trace
function that'll tail your Python source code closer than
paparazzi on Rodeo Drive. Perfect for when you wanna debug
your code like you're solving a Hollywood mystery!

1

rocksolid light 0.9.8
clearnet tor