Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Barry Scott Newsgroups: comp.lang.python Subject: Re: Crash when launching python Date: Wed, 4 Sep 2024 20:48:21 +0100 Lines: 37 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de Xgdg/jtdXx6uFr8afAHn8gEz2xdhkamu/J/cV8QonZMA== Cancel-Lock: sha1:AuSv6Ki1yggI9s8o73c53y2op6M= sha256:gnESYOVss0T92AGz3ozbQjvi4MrgVQ8k5Owk0Xt1NCM= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:python': 0.06; 'debug': 0.07; 'debugging': 0.07; 'subject:when': 0.07; 'cc:addr :python-list': 0.09; 'console,': 0.09; 'from:addr:barry': 0.09; 'received:217.70': 0.09; 'received:217.70.178': 0.09; 'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09; 'terminal': 0.09; 'cc:no real name:2**0': 0.14; '"show': 0.16; 'barry': 0.16; 'can:': 0.16; 'from:addr:barrys-emacs.org': 0.16; 'from:name:barry scott': 0.16; 'message-id:@barrys-emacs.org': 0.16; 'option.': 0.16; 'stdout': 0.16; 'tracebacks': 0.16; 'useful.': 0.16; 'wrote:': 0.91 In-Reply-To: X-Mailer: Apple Mail (2.3776.700.51) X-GND-Sasl: barry@barrys-emacs.org 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Bytes: 4568 > On 4 Sep 2024, at 16:27, Guenther Sohler via Python-list = wrote: >=20 > Is it possible to turn on debugging and to display on the console, = where > python is loading files from ? >=20 I assume you have a .app that is then packaged into a .dmg. It will be the .app that you need to either build with a debug version = of your code or after building the .app edit the debug code into it. Do you know that .app files are a tree of files? You can right-click on an .app in Finder and it will have a "Show = Package Context" option. Or using the terminal and you can: cd .app/Contents then have a look around. Beware that you cannot use print to stdout for a .app as its = stdin/stdout do not go anywhere useful. What I do is use code like this in the main function: sys.stdout =3D open( '/home/barry/debug.log', 'w', 1 ) sys.stderr =3D sys.stdout=20 Now you can use print(); look in the debug.log to see what happened. Also any tracebacks will end up in the debug.log. Barry