Eric,
Good Idea & done with the os.devnull solution!
Steve
From: pyinstaller@googlegroups.com On Behalf Of
Eric Fahlgren
Sent: Wednesday, April 26, 2023 3:09 PM
To: pyinstaller@googlegroups.com
Subject: Re: [PyInstaller] ValueError: Unable to configure formatter 'default'
Steve,
That s
to os.devnull for windowed exes rather than using None in
that case.
All the best,
Steve Barnes
From: 'Chris Barker - NOAA Federal' via PyInstaller
Sent: Wednesday, April 26, 2023 3:07 PM
To: pyinstaller@googlegroups.com
Subject: Re: [PyInstaller] ValueError: Unable to configure formatter 'default'
Hmm
Hmm,Seems this is a bug / missing feature in PyIntaller. Writing to stdout/err is pretty common dnd can be done down in the stack of libraries, so not always in full control of the application author. Is there a /dev/null equiv on Windows? Or a “hidden” console that can be written to (I think
Thank you Steve for your response.
The logging that it refers to is from uvicorn module and doesn't come from
my code. So I tried updating all the relevant modules but nothing helped.
Finally, I updated my pip module, followed by pyinstaller module update.
This helped and I am able to run the
Steve,
That seems common and broad enough that you should consider adding a wiki
page for it...
https://github.com/pyinstaller/pyinstaller/wiki/Recipes
Eric
On Tue, Apr 25, 2023 at 10:42 PM Steve Barnes
wrote:
> Hi Alisha,
>
>
>
> I have seen this problem before and eventually figured out the
Hi Alisha,
I have seen this problem before and eventually figured out the cause. You are
directly or indirectly using either stdout or stderr as an out put for logger
but pyinstaller and some or most exe builders produce exes which, when running
in Windowed mode, set both of these to None and