Note that there are some explanatory texts on larger screens.

plurals
  1. POPyInstaller won't load the PyQt's images to the GUI
    primarykey
    data
    text
    <p>I've been having some complications to pass my script into an executable, but I finally managed to. The main problem is that PyInstaller doesn't load the images to the GUI.</p> <p>This is how it should look like:</p> <p><img src="https://i.stack.imgur.com/qeROj.png" alt="How it should look like"></p> <p>This is how it looks like:</p> <p><img src="https://i.stack.imgur.com/eEFeI.png" alt="How it looks like"></p> <p>And I can't seem to find the problem, this is the .spec file:</p> <pre><code>a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(HOMEPATH,'support\\useUnicode.py'), 'programa.py'], pathex=['img', 'C:\\Users\\Poblet\\ManGet\\HeyMang\\pyinstaller']) pyz = PYZ(a.pure) exe = EXE(pyz, a.scripts, exclude_binaries=1, name=os.path.join('build\\pyi.win32\\Hey Mang!', 'Hey Mang!.exe'), debug=False, icon='heymang.ico', strip=False, upx=True, console=False ) coll = COLLECT( exe, Tree('C:\\Users\\Poblet\\ManGet\\HeyMang\\pyinstaller\\img'), a.binaries, a.zipfiles, a.datas, strip=False, upx=True, name=os.path.join('dist', 'Hey Mang!')) app = BUNDLE(coll, name=os.path.join('dist', 'Hey Mang!.app')) </code></pre> <p>And it supposes to grab those images, like it says here:</p> <pre><code>Warnings written to C:\Users\Poblet\ManGet\HeyMang\pyinstaller\Hey Mang!\warnHey Mang!.txt checking PYZ rebuilding outPYZ1.toc because outPYZ1.pyz is missing building PYZ outPYZ1.toc checking PKG rebuilding outPKG3.toc because outPKG3.pkg is missing building PKG outPKG3.pkg checking EXE rebuilding outEXE2.toc because Hey Mang!.exe missing building EXE from outEXE2.toc I: SRCPATH [('heymang.ico', None)] I: Updating icons from ['heymang.ico'] to c:\users\poblet\appdata\local\temp\tmpr34zmp I: Writing RT_GROUP_ICON 0 resource with 76 bytes I: Writing RT_ICON 1 resource with 1128 bytes I: Writing RT_ICON 2 resource with 4264 bytes I: Writing RT_ICON 3 resource with 9640 bytes I: Writing RT_ICON 4 resource with 16936 bytes I: Writing RT_ICON 5 resource with 67624 bytes </code></pre> <p>And they are in the folder, but they won't work for a reason or another.</p> <p>The entire source code (minus the PyInstaller files) is <a href="https://github.com/DoctorMalboro/HeyMang" rel="noreferrer">here</a>.</p> <p>I appreciate your help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload