Python Forum
Creating an executable from a script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating an executable from a script
#1
Hi all,

I am using Python 3.6.7 32-bit on a Win-7 64bit system
I am attempting to create an executable from a script I created in eclipse 20190917-1200.
I have installed pywin32 via 'pip install pywin32', and verified I had the latest pyinstaller via 'python.exe -m pip install --upgrade pyinstaller'

I attempted creating the executable via 'pyinstaller.exe --onefile --windowed CopyExt.py', as well as 'pyinstaller.exe CopyExt.py'

Both attempts failed with:
Quote:Fatal error: PyInstaller does not include a pre-compiled bootloader for your
platform. For more details and instructions how to build the bootloader see
<https://pyinstaller.readthedocs.io/en/stable/bootloader-building.html>

In the generated output (besides the error messages), the only messages that seem to express any type of concer are:
969 INFO: UPX is not available
1467 INFO: Building because toc changed
and
1836 INFO: Bootloader c:\program files (x86)\python36-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
1836 INFO: checking EXE
1836 INFO: Building EXE because EXE-00.toc is non existent
1836 INFO: Building EXE from EXE-00.toc

I attempted to follow the instructions in the link mentioned in the error by:
downloading the PyInstaller 3.6 tar.gz, and fully extracting it
CDing to the bootloader folder and running 'python ./waf all' and received the following error:

Quote:could not configure a C compiler!
(complete log in C:\AXLdev\Python\gitclone3_6\PyInstaller-3.6.tar\dist\PyInstaller-3.6\PyInstaller-3.6\bootloader\build\config.log)

In doing some checking, according to this link"
https://stackoverflow.com/questions/5358...yinstaller

I shouldnt require a C install.

I am fairly new to python, and have not tried compiling a script before so Im not really sure where I stand.

does anyone have any ideas?

thanks
Reply


Messages In This Thread
Creating an executable from a script - by wolf8963 - May-05-2020, 05:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to compile a Python script for a Windows / Linux executable? netanelst 2 1,414 May-24-2022, 07:02 AM
Last Post: netanelst
  Python executable Script (Wrapper) Hwang 2 1,979 Jan-12-2022, 06:53 PM
Last Post: Hwang
  No module named '_cffi_backend' error with executable not with python script stephanh 2 5,873 Nov-25-2021, 06:52 AM
Last Post: stephanh
  Help with Creating a Script for Automating Reports SunWers 1 1,978 Dec-29-2020, 10:21 PM
Last Post: jjc385
  Need help creating a simple script Nonameface 12 4,817 Jul-14-2020, 02:10 PM
Last Post: BitPythoner
  Creating an executable vman44 8 3,735 Apr-19-2020, 08:41 PM
Last Post: vman44
  Need help creating complex loop around existing script CephloRhod 5 2,884 Apr-16-2020, 01:23 PM
Last Post: deanhystad
  Best method: Python script called from another app, package as complete executable ironfelix717 2 2,207 Jul-24-2019, 07:39 AM
Last Post: DeaD_EyE
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,701 May-11-2019, 08:12 PM
Last Post: keames

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020