Questions tagged [pyinstaller]

PyInstaller is a multi-platform tool designed to convert Python (.py) files into stand-alone executable files on Windows, Linux, macOS, Solaris, and AIX.

Filter by
Sorted by
Tagged with
147votes
14answers
180kviews

Bundling data files with PyInstaller (--onefile)

I'm trying to build a one-file EXE with PyInstaller which is to include an image and an icon. I cannot for the life of me get it to work with --onefile. If I do --onedir it works all works very well. ...
user avatar
96votes
8answers
83kviews

Determining application path in a Python EXE generated by pyInstaller

I have an application that resides in a single .py file. I've been able to get pyInstaller to bundle it successfully into an EXE for Windows. The problem is, the application requires a .cfg file ...
user avatar
  • 82.9k
69votes
7answers
55kviews

App created with PyInstaller has a slow startup

I have an application written in Python and 'compiled' with PyInstaller. It also uses PyQt for the GUI framework. Running this application has a delay of about 10 seconds before the main window loads ...
user avatar
  • 3,103
60votes
10answers
178kviews

Windows- Pyinstaller Error "failed to execute script " When App Clicked

I am having a tough time overcoming this error, I have searched everywhere for that error message and nothing seems relevant to my situation: "failed to execute script new-app" new-app is my python ...
user avatar
  • 1,933
58votes
5answers
86kviews

Reducing size of pyinstaller exe

I have a simple pandas pyinstaller exe which is over 40MB. My exe example: import collections import csv import selenium import pandas print('hi') 40MB+ for this seems a bit overkill. How can I ...
user avatar
57votes
9answers
160kviews

Pyinstaller setting icons don't change

When I use the command: pyinstaller.exe --icon=test.ico -F --noconsole test.py All icons do not change to test.ico. Some icons remain as the pyinstaller's default icon. Why? All icon change in ...
user avatar
  • 1,033
57votes
11answers
92kviews

Program made with PyInstaller now seen as a Trojan Horse by AVG

About a month ago, I used PyInstaller and Inno Setup to produce an installer for my Python 3 script. My AVG Business Edition AntiVirus just started complaining with today's update that the program has ...
user avatar
  • 765
54votes
5answers
18kviews

How can I use pywin32 with a virtualenv without having to include the host environment's site-packages folder?

I'm working with PyInstaller under Python 2.6, which is only partially supported due to the mess MS have created with their manifest nonense which now affects Python since it is now MSVC8 compiled. ...
user avatar
  • 74.3k
53votes
2answers
46kviews

Get all modules/packages used by a python project

I have a python GUI application. And now I need to know what all libraries the application links to. So that I can check the license compatibility of all the libraries. I have tried using strace, but ...
user avatar
  • 1,106
49votes
6answers
98kviews

Getting rid of console output when freezing Python programs using Pyinstaller

I have recently written a fairly simple program for my grandfather using Python with GUI from Tkinter, and it works beautifully for what he will be using it for. However, there is, of course, the ugly ...
user avatar
  • 505
48votes
3answers
49kviews

docker compose: Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted

After installing docker and docker-compose on: NAME="Red Hat Enterprise Linux Server" VERSION="7.6 (Maipo)" When executing: sudo docker-compose -version It returns: Error while loading shared ...
user avatar
44votes
6answers
36kviews

What does a "version file" look like?

I've been googling this for ages now without results. The PyInstaller manual says: --version-file=FILE add a version resource from FILE to the exe That sounds nice. I want to put version ...
user avatar
  • 51.8k
39votes
5answers
48kviews

Including a directory using Pyinstaller

All of the documentation for Pyinstaller talks about including individual files. Is it possible to include a directory, or should I write a function to create the include array by traversing my ...
user avatar
38votes
5answers
100kviews

Pyinstaller adding data files

I'm struggling with pyinstaller. Whenever I build this specific script with a kivy GUI and a .kv file, and run the .exe after the build, I get a fatal error: IOError: [Errno 2] No such file or ...
user avatar
  • 485
38votes
9answers
56kviews

pyinstaller creating EXE RuntimeError: maximum recursion depth exceeded while calling a Python object

I am running WinPython 3.4.4.3 with pyinstaller 3.2 (obtained via pip install pyinstaller). Now I've got some really simple Qt4 code that I want to convert to EXE and I've run into problem that I ...
user avatar
  • 491

15 30 50 per page
1
2 3 4 5
385