Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197008

Re: FileNotFoundError thrown due to file name in file, rather than file itself

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Mats Wichmann <mats@wichmann.us>
Newsgroups comp.lang.python
Subject Re: FileNotFoundError thrown due to file name in file, rather than file itself
Date Tue, 12 Nov 2024 13:28:04 -0700
Lines 11
Message-ID <mailman.101.1731443290.4695.python-list@python.org> (permalink)
References <87v7wt986z.fsf@zedat.fu-berlin.de> <CAJQBtg=UOiOmmHa25EUZtrZO19F1O0_VxCO6gWjZ5ebAMHnXCA@mail.gmail.com> <mailman.92.1731341107.4695.python-list@python.org> <875xosyfr0.fsf@zedat.fu-berlin.de> <CAJQBtg=nr+KC5iz_WY7nqkGK+YBEWAPq40ksaWJCAOT_+=pHxg@mail.gmail.com> <f60479e0-b3a9-487e-9625-804d4aab26bf@wichmann.us>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de cNTBiXMglcID8w6d/WG/9gAlzvpfa69Ck311JujGTJBQ==
Cancel-Lock sha1:2Hx9vToKloKIiXesginsNfVf/dc= sha256:WoCSBm+HTp2krkAYNqNuneXRbu1tTrxRzMfNLeKtQnE=
Return-Path <mats@wichmann.us>
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=messagingengine.com header.i=@messagingengine.com header.b=f0p+PmSB; dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status OK 0.105
X-Spam-Level *
X-Spam-Evidence '*H*': 0.80; '*S*': 0.01; 'subject:name': 0.07; 'that.': 0.15; 'logs': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:internal': 0.16; 'received:messagingengine.com': 0.16; 'wrote:': 0.16; "aren't": 0.19; 'to:addr:python-list': 0.20; 'option': 0.20; 'subject:file': 0.22; 'run': 0.23; 'header:User-Agent:1': 0.30; 'python-list': 0.32; 'there': 0.33; 'header:In-Reply-To:1': 0.34; 'really': 0.36; 'way': 0.38; 'want': 0.40; 'helps': 0.60; 'gives': 0.62; 'your': 0.64; 'thus': 0.64; 'right': 0.68; 'currently,': 0.69; 'received:202': 0.69; 'left': 0.83; 'subject: \n ': 0.84; 'subject:than': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=wichmann.us; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=2018-07.pbsmtp; t= 1731443286; x=1731529686; bh=a+aCJ4lKCkJP8ADFRSWxFF9WnlVZDu+20hX TQ1kslA4=; b=F2iDx3sg0hE1dEIJekRAnrGNJmZtvmfpVDUdcDaw9/KVJ0lN2ZL iJH4npa0wGnVyljooeVrErcQ4pZDCpNgeEbNzuFq9cRE2RPZU5P+k8nzX5px8jmC kVlXrFx2r1EgNr9zaB0x0fvCaON6gjVfKB6EgE8PpAwRTilCpGu7Q4Gg=
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731443286; x=1731529686; bh=a +aCJ4lKCkJP8ADFRSWxFF9WnlVZDu+20hXTQ1kslA4=; b=f0p+PmSBo0Oox0r9E FZE8LBR7gyczruEBhFYX2eeVhurhPV7FwrLhkTDeBBvpWpNg5d9xA8I/M5xp3283 Bw52RcQy+aJXK9DpMkhI4gphULyqXK4LejqvADzljx6CkuSYHBONKtFi3WCLA911 nMxXFIfCzeX3ihvdItPY5O0p83i8k1K4hEGqrQ7IWAmh1ttM+iChFIE50CWL0Rzy RO/smUjPN1nlwGX44i5dUVMu7uGFDmQ1DWqD4dcRpRQdps96FraijTci3FVcXeSS aB1P9bVgcZ2djGz79vQS/PJ8BgEHwwVJorcEZ9p+dC1ufvdU3pZiJHDUei3/wxnd i7eHw==
X-ME-Sender <xms:VrozZ7sSIbeZANR0-46_ssr9D4kf5wPJvPk_XQfmEiCNHyV26zs_lQ> <xme:VrozZ8cXQ2aSAnWt1A1lWLPb-S4yqsP-JwgqTeDn8BX7mq2WYDo8FONl3JzTNHFCR 2ehL2IflBvPxL0VLak>
X-ME-Received <xmr:VrozZ-xBwkaK-klqvXzGuB1BxDXEWc3L0X1ZchSYGLtMI1Y-7chzMFktpnPyOZ3WxNABq1-hQxIql05UFxDDrbfg5wB_cMav3Q>
X-ME-Proxy-Cause gggruggvucftvghtrhhoucdtuddrgeefuddrudeggddufeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfg fuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeforghtshcuhghitghhmhgrnhhn uceomhgrthhsseifihgthhhmrghnnhdruhhsqeenucggtffrrghtthgvrhhnpedtjeduve eiteegteejgeehiedufeekgfdvjefgvedtteduffeuieelieevtdegffenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghtshesfihitghhmh grnhhnrdhushdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepphihthhhohhnqdhlihhsthesphihthhhohhnrdhorhhg
X-ME-Proxy <xmx:VrozZ6OFY1o0o0UOArNI3kFkCBpbq3_nIKwll3pIKJ7Ng4DeprTEXA> <xmx:VrozZ78c-K60HhvKkkptDEWS29njKanoR1kO67kMYpBHiaagV8NC_Q> <xmx:VrozZ6VzcgyAyg2Jfkuq1ao2dBKZj9ggtO74Q93sudtPGMPKOMctIw> <xmx:VrozZ8cMW0VqcaW8O9RIkmrgkTP1DY5RDN3fx-U4tJX32M3ebW6v8g> <xmx:VrozZ4EwZQm_hf36W48_C4rsNIeNZq3Cg8J4HQJ0gG_6MXNwkYBY1hxu>
Feedback-ID i387144f0:Fastmail
User-Agent Mozilla Thunderbird
Content-Language en-US
Autocrypt addr=mats@wichmann.us; keydata= xsDiBD9xp6oRBAC1vd3YI8Gcr1CxpV1gldNQu0uQsNaICDk+Ai3+R163s/P83JOYG+SBEA3P v7iZx70qpQ3RzP7KrjF1Nm6j0em9ccUX2fPQUCAxXw5Hiq7CSMiwQQZRI6shcnyMh9XTKViT WK5MrKDyvjDEn7epjKzKwPS5SG039l6XaOKU0A4uGwCgsNqUQqC0gMMcbKlJV8ql58iKmbMD /ii8FPQrXmyS/FnsPs7UddV5qMHKm7NUH5oiKuMVyakInRyq9iIxuu3D4Ec6mWRKcGsjmIkW HXCSz0aefs6dsqNqpU54cYioJ3wP5LzHK7oclgJPryVt5Qezbdutf8SQf8gVkaNIlkxwGUzi bKTZ6CHzwlz9nNgeel0XPUcZzFxGA/4paeCg2rMSVuAhUQbsLYHu4XzTs9P16zaXkrtxc4m5 b+BF5xsLgTpyO5l859XudS2Gp+7/Y37dAU4QlyGGOboWmF1y9U5DnzBwG8ghsnym+ga58MJh LdRdQQ6xQolCpEXOuzm40f2r5uMxF3KOJ7WpIPuGAkeCPru9BmlATH+zOs0gTWF0cyBXaWNo bWFubiA8bWF0c0B3aWNobWFubi51cz7CYQQTEQIAIQIbAwYLCQgHAwIDFQIDAxYCAQIeAQIX gAUCT0VyZwIZAQAKCRDAMaCQc9hUxiZBAJ9cWziGp7hVfsu5T+cQptc3rLNndQCgrZh8u5LW BfJ5e/Y+3PwZ8UEm+ELOwE0EP5is8BAEAMtwzcA8TYf5UTjDMgwcSNoErTc9ag+IX05QFgL8 aF8sfJRv5atcitqQy0gSIsOzI+L/AFdPN/+QQI3dL1tCq14t32KPDtigDhzm6jVPXX5z+V9u xnD8XTp+ZvNcWoHXjViM8aXeLLEiCpiVCho307h3XShvqoKINWRQWeAsKKDDAAMFA/48zaey wiiEyvI0meJ1KkNHxdLP0yLODr1WV6j9xkPkLWOaIDw7dlwEOlF1N1YtZ2wa0p1wsttdIbIx ffgwXmcH4zrdxUIMz3U0BqYzk5H+5cYFXECXTFVOmweS+JECYMj80PjRoKCO1eVO1N30zksB 36NnhZWPRWIhjK3ZarIYH8JGBBgRAgAGBQI/mKzwAAoJEMAxoJBz2FTG6VEAoKDYHfDp5Q3q PuPvPahCE9HsXMgAAJ9INTqcLSJrOfyJ8q95nBO1T26H2Q==
In-Reply-To <CAJQBtg=nr+KC5iz_WY7nqkGK+YBEWAPq40ksaWJCAOT_+=pHxg@mail.gmail.com>
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 <f60479e0-b3a9-487e-9625-804d4aab26bf@wichmann.us>
X-Mailman-Original-References <87v7wt986z.fsf@zedat.fu-berlin.de> <CAJQBtg=UOiOmmHa25EUZtrZO19F1O0_VxCO6gWjZ5ebAMHnXCA@mail.gmail.com> <mailman.92.1731341107.4695.python-list@python.org> <875xosyfr0.fsf@zedat.fu-berlin.de> <CAJQBtg=nr+KC5iz_WY7nqkGK+YBEWAPq40ksaWJCAOT_+=pHxg@mail.gmail.com>
Xref csiph.com comp.lang.python:197008

Show key headers only | View raw


On 11/12/24 12:10, Left Right via Python-list wrote:

> Finally, if you want your logs to go to a file, and currently, your
> only option is stderr, your shell gives you a really, really simple
> way of redirecting stderr to a file.  So, really, there aren't any
> excuses to do that.

an awful lot of the programs that need to do extensive logging don't run 
under control of a shell, and thus "shell redirection" helps not at all.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-11 15:05 +0100
  Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-11 17:04 +0100
    Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:15 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-12 20:10 +0100
        Re: FileNotFoundError thrown due to file name in file, rather than file itself Greg Ewing <greg.ewing@canterbury.ac.nz> - 2024-11-13 14:04 +1300
          Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-13 02:13 +0000
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Mats Wichmann <mats@wichmann.us> - 2024-11-12 13:28 -0700
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-13 07:34 +1100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-13 08:11 +0100
        Re: FileNotFoundError thrown due to file name in file, rather than file itself Barry <barry@barrys-emacs.org> - 2024-11-14 16:01 +0000
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Roel Schroeven <roel@roelschroeven.net> - 2024-11-13 10:12 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Michael Torrie <torriem@gmail.com> - 2024-11-13 21:07 -0700
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-14 08:03 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-14 19:13 +1100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself D'Arcy Cain <darcy@VybeNetworks.com> - 2024-11-13 06:37 -0700
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Ethan Furman <ethan@stoneleaf.us> - 2024-11-14 09:32 -0800
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Michael Torrie <torriem@gmail.com> - 2024-11-14 08:44 -0700
        Re: FileNotFoundError thrown due to file name in file, rather than file itself Jon Ribbens <jon+usenet@unequivocal.eu> - 2024-11-14 18:12 +0000
  Re: FileNotFoundError thrown due to file name in file, rather than file itself dieter.maurer@online.de - 2024-11-11 18:24 +0100
  Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-11 21:05 +0000
  Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-12 12:17 +1100
    Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:00 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself dieter.maurer@online.de - 2024-11-13 19:36 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Kushal Kumaran <kushal@locationd.net> - 2024-11-13 14:40 -0800
    Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:03 +0100

csiph-web