[PyInstaller] Re: Problem to install pyinstaller 4,1

2021-03-15 Thread Mélissa Ch .
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 the same issue, 
but nothing seam to be solve. Some have go into the Pyinstaller and modifie 
some code line inside, but it seam too risky, and i not welling enough and 
experimented to play this card. So i wondered if they have other issue or 
solution. Or maybe another "programme" to do the same to transform the .Py 
file  I have hear of NSIS or Py2exe This is the exit result of 
auto-py-to-exe in windowed mode if this can help.

Running auto-py-to-exe v2.8.0

Building directory: C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y

Provided command: pyinstaller --noconfirm --onedir --windowed --debug 
"all"  "D:/PycharmProjects/script/game main.py"

Recursion Limit is set to 5000

Executing: pyinstaller --noconfirm --onedir --windowed --debug all 
D:/PycharmProjects/script/game main.py --distpath 
C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\application --workpath 
C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build --specpath 
C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y



97273 INFO: PyInstaller: 4.2

97286 INFO: Python: 3.6.8

97302 INFO: Platform: Windows-10-10.0.19041-SP0

97319 INFO: wrote C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\game main.spec

97346 INFO: UPX is not available.

97368 INFO: Extending PYTHONPATH with paths
['D:\\PycharmProjects\\script',
 'C:\\Users\\HP\\AppData\\Local\\Temp\\tmpt76yjg9y']

97843 INFO: checking Analysis

97859 INFO: Building Analysis because Analysis-00.toc is non existent

97874 INFO: Initializing module dependency graph...

97934 INFO: Caching module graph hooks...

98016 WARNING: Several hooks defined for module 'win32ctypes.core'. Please 
take care they do not conflict.

98098 INFO: Analyzing base_library.zip ...

102775 INFO: Caching module dependency graph...

102880 INFO: running Analysis Analysis-00.toc

102937 INFO: Adding Microsoft.Windows.Common-Controls to dependent 
assemblies of final executable
  required by d:\programme1\python36\python.exe

103077 INFO: Analyzing D:\PycharmProjects\script\game main.py

103248 INFO: Processing module hooks...

103262 INFO: Loading module hook 'hook-difflib.py' from 
'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103317 INFO: Excluding import of doctest from module difflib

10 INFO: Loading module hook 'hook-encodings.py' from 
'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103438 INFO: Loading module hook 'hook-heapq.py' from 
'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103455 INFO: Excluding import of doctest from module heapq

103470 INFO: Loading module hook 'hook-pickle.py' from 
'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103501 INFO: Excluding import of argparse from module pickle

103530 INFO: Loading module hook 'hook-xml.py' from 
'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103840 INFO: Loading module hook 'hook-_tkinter.py' from 
'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

104046 INFO: checking Tree

104077 INFO: Building Tree because Tree-00.toc is non existent

104081 INFO: Building Tree Tree-00.toc

104302 INFO: checking Tree

104323 INFO: Building Tree because Tree-01.toc is non existent

104339 INFO: Building Tree Tree-01.toc

104437 INFO: checking Tree

104453 INFO: Building Tree because Tree-02.toc is non existent

104484 INFO: Building Tree Tree-02.toc

104519 INFO: Looking for ctypes DLLs

104523 INFO: Analyzing run-time hooks ...

104533 INFO: Including run-time hook 
'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'

104589 INFO: Looking for dynamic libraries

104829 INFO: Looking for eggs

104840 INFO: Using Python library d:\programme1\python36\python36.dll

104861 INFO: Found binding redirects: 
[]

105310 INFO: Warnings written to 
C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\warn-game 
main.txt

105369 INFO: Graph cross-reference written to 
C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\xref-game 
main.html

105423 INFO: checking PYZ

105469 INFO: Building PYZ because PYZ-00.toc is non existent

105494 INFO: Building PYZ (ZlibArchive) 
C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\PYZ-00.pyz

105512 INFO: Building PYZ (ZlibArchive) 
C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\PYZ-00.pyz 
completed successfully.

105543 INFO: checking PKG

105552 INFO: Building PKG because PKG-00.toc is non existent

105564 INFO: Building PKG (CArchive) PKG-00.pkg

105661 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.

105686 INFO: Bootloader 
d:\programme1\python36\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw_d.exe

105698 INFO: 

[PyInstaller] Re: pyinstaller interactive python console

2021-03-15 Thread Bachir Aoun
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 community package. 
> Scientists are typically facing difficulties installing  and compiling the 
> package on their windows machine.
> (they need to set python path, install visual studio compiler, etc.)
>
> I am trying to bundle everything in one executable, the goal is still to 
> be able to open the app and have a python terminal launched.
>
> here's my question on stack overflow for more info
>
>
> https://stackoverflow.com/questions/66625019/pyinstaller-interactive-python-console
>
>
> I appreciate any help
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/6d3b2380-00f1-4735-ba2b-33f5ec992df6n%40googlegroups.com.


[PyInstaller] Re: Problem to install pyinstaller 4,1

2021-03-15 Thread bwoodsend


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.

Brénainn

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/acd92606-11e6-4ade-bd2b-04617214995an%40googlegroups.com.


Re: [PyInstaller] Re: pyinstaller interactive python console

2021-03-15 Thread Jones, Bryan
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 Bachir Aoun wrote:
>
>> Hi,
>> I am trying to create a standalone for a scientific community package.
>> Scientists are typically facing difficulties installing  and compiling the
>> package on their windows machine.
>> (they need to set python path, install visual studio compiler, etc.)
>>
>> I am trying to bundle everything in one executable, the goal is still to
>> be able to open the app and have a python terminal launched.
>>
>> here's my question on stack overflow for more info
>>
>>
>> https://stackoverflow.com/questions/66625019/pyinstaller-interactive-python-console
>>
>>
>> I appreciate any help
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pyinstaller+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pyinstaller/6d3b2380-00f1-4735-ba2b-33f5ec992df6n%40googlegroups.com
> 
> .
>


-- 
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi State, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CAHhYbD9TTercAtHGZFxS7SaY1dbS3EF7zu8q4xhw-mVk5SyYTg%40mail.gmail.com.


Re: [PyInstaller] Re: pyinstaller interactive python console

2021-03-15 Thread bwoodsend


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 on your machine then get 
them to install the .whl files it produces.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/5ee7953e-a19b-4460-97d4-1748aac3ed86n%40googlegroups.com.


[PyInstaller] Re: Problem to install pyinstaller 4,1

2021-03-15 Thread bwoodsend


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 message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/eeb06a76-144b-4c93-b9e5-17ea9d8d4143n%40googlegroups.com.