Hi Brénainn,
ok i use auto-py-to-exe to transform my .Py file into a .exe file. and when
i do it not windowed( the result is on a terminal when i click on the .exe
file) it work perfectly, but when i try to made it windowed is there the
problem come. I saw on the web a lot of peoples who have
just fyi, what i did to solve the need for now is to read the file and
call exec.
this is a patch solution hoping that there is one that is more native to
pyinstaller.
On Sunday, March 14, 2021 at 11:01:08 AM UTC-5 Bachir Aoun wrote:
> Hi,
> I am trying to create a standalone for a scientific
Ughh that can be anything. You’re building in windowed mode which makes it
very hard to understand problems. Remove any -w, --windowed or --no-console
flags from your pyinstaller command then try again. Run the program from
terminal. It’ll still break but the error will be easier to see.
Use Conda.
On Mon, Mar 15, 2021 at 8:39 AM Bachir Aoun wrote:
> just fyi, what i did to solve the need for now is to read the file and
> call exec.
> this is a patch solution hoping that there is one that is more native to
> pyinstaller.
>
> On Sunday, March 14, 2021 at 11:01:08 AM UTC-5
If you just want an interactive console you can PyInstaller-ify:
import code
code.interact()
That being said, you shouldn’t need to get people to install a C compiler.
If you depend on libraries which are available as precompiled wheels then
you should be able to run pip wheel library-name
Are you using subprocess anywhere in your code (possibly indirectly through
another library)? That’s the usual cause for console mode to work but
windowed to break. You need explicitly set all 3 stdin, stdout and stderr
to either subprocess.DEVNULL or subprocess.PIPE.
--
You received this