Code Monkey home page Code Monkey logo

pyinstaller-setup's People

Contributors

nfjones avatar ninivert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ninivert jftuga

pyinstaller-setup's Issues

Unable to build a 'Hello world'

I'm getting an Error loading Python DLL '...\build\hello\python37.dll' error. I'm sure I'm missing some step

build.py

from pyinstaller_setuptools import setup

setup(scripts=["hello.py"])

hello.py

print("Hello")

Full console output

(venv) C:\Users\Jimmy\PycharmProjects\baloon-jam-19>python build.py build
running build
running build_scripts
creating build
creating build\scripts-3.7
copying hello.py -> build\scripts-3.7

(venv) C:\Users\Jimmy\PycharmProjects\baloon-jam-19>python build.py install
running install
running bdist_egg
running egg_info
creating UNKNOWN.egg-info
writing UNKNOWN.egg-info\PKG-INFO
writing dependency_links to UNKNOWN.egg-info\dependency_links.txt
writing top-level names to UNKNOWN.egg-info\top_level.txt
writing manifest file 'UNKNOWN.egg-info\SOURCES.txt'
reading manifest file 'UNKNOWN.egg-info\SOURCES.txt'
writing manifest file 'UNKNOWN.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
warning: install_lib: 'build\lib' does not exist -- no Python modules to install

creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\EGG-INFO
installing scripts to build\bdist.win-amd64\egg\EGG-INFO\scripts
running install_scripts
running build_scripts
creating build\bdist.win-amd64\egg\EGG-INFO\scripts
copying build\scripts-3.7\hello.py -> build\bdist.win-amd64\egg\EGG-INFO\scripts
copying UNKNOWN.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying UNKNOWN.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying UNKNOWN.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying UNKNOWN.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\UNKNOWN-0.0.0-py3.7.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing UNKNOWN-0.0.0-py3.7.egg
Removing c:\users\jimmy\pycharmprojects\baloon-jam-19\venv\lib\site-packages\UNKNOWN-0.0.0-py3.7.egg
Copying UNKNOWN-0.0.0-py3.7.egg to c:\users\jimmy\pycharmprojects\baloon-jam-19\venv\lib\site-packages
UNKNOWN 0.0.0 is already the active version in easy-install.pth
Installing hello.py script to C:\Users\Jimmy\PycharmProjects\baloon-jam-19\venv\Scripts

Installed c:\users\jimmy\pycharmprojects\baloon-jam-19\venv\lib\site-packages\unknown-0.0.0-py3.7.egg
Processing dependencies for UNKNOWN==0.0.0
Finished processing dependencies for UNKNOWN==0.0.0

(venv) C:\Users\Jimmy\PycharmProjects\baloon-jam-19>python build.py pyinstaller
622 INFO: PyInstaller: 3.5
622 INFO: Python: 3.7.1
623 INFO: Platform: Windows-10-10.0.18362-SP0
624 INFO: wrote C:\Users\Jimmy\PycharmProjects\baloon-jam-19\hello.spec
627 INFO: UPX is not available.
629 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Jimmy\\PycharmProjects\\baloon-jam-19',
 'C:\\Users\\Jimmy\\PycharmProjects\\baloon-jam-19']
629 INFO: checking Analysis
629 INFO: Building Analysis because Analysis-00.toc is non existent
630 INFO: Initializing module dependency graph...
647 INFO: Initializing module graph hooks...
665 INFO: Analyzing base_library.zip ...
7602 INFO: running Analysis Analysis-00.toc
7709 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\users\jimmy\pycharmprojects\baloon-jam-19\venv\scripts\python.exe
8467 INFO: Caching module hooks...
8522 INFO: Analyzing C:\Users\Jimmy\PycharmProjects\baloon-jam-19\hello.py
8525 INFO: Loading module hooks...
8525 INFO: Loading module hook "hook-encodings.py"...
8716 INFO: Loading module hook "hook-pydoc.py"...
8756 INFO: Loading module hook "hook-xml.py"...
9222 INFO: Looking for ctypes DLLs
9222 INFO: Analyzing run-time hooks ...
9231 INFO: Looking for dynamic libraries
9486 INFO: Looking for eggs
9486 INFO: Using Python library c:\users\jimmy\pycharmprojects\baloon-jam-19\venv\scripts\python37.dll
9487 INFO: Found binding redirects:
[]
9497 INFO: Warnings written to C:\Users\Jimmy\PycharmProjects\baloon-jam-19\build\hello\warn-hello.txt
9539 INFO: Graph cross-reference written to C:\Users\Jimmy\PycharmProjects\baloon-jam-19\build\hello\xref-hello.html
9652 INFO: checking PYZ
9652 INFO: Building PYZ because PYZ-00.toc is non existent
9653 INFO: Building PYZ (ZlibArchive) C:\Users\Jimmy\PycharmProjects\baloon-jam-19\build\hello\PYZ-00.pyz
10199 INFO: Building PYZ (ZlibArchive) C:\Users\Jimmy\PycharmProjects\baloon-jam-19\build\hello\PYZ-00.pyz completed successfully.
10214 INFO: checking PKG
10215 INFO: Building PKG because PKG-00.toc is non existent
10215 INFO: Building PKG (CArchive) PKG-00.pkg
10282 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
10285 INFO: Bootloader c:\users\jimmy\pycharmprojects\baloon-jam-19\venv\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe
10285 INFO: checking EXE
10285 INFO: Building EXE because EXE-00.toc is non existent
10286 INFO: Building EXE from EXE-00.toc
10286 INFO: Appending archive to EXE C:\Users\Jimmy\PycharmProjects\baloon-jam-19\build\hello\hello.exe
10365 INFO: Building EXE from EXE-00.toc completed successfully.
10373 INFO: checking COLLECT
10373 INFO: Building COLLECT because COLLECT-00.toc is non existent
10374 INFO: Building COLLECT COLLECT-00.toc
11535 INFO: Building COLLECT COLLECT-00.toc completed successfully.

(venv) C:\Users\Jimmy\PycharmProjects\baloon-jam-19>cd build\hello

(venv) C:\Users\Jimmy\PycharmProjects\baloon-jam-19\build\hello>hello.exe
Error loading Python DLL 'C:\Users\Jimmy\PycharmProjects\baloon-jam-19\build\hello\python37.dll'.
LoadLibrary: The specified module could not be found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.