Trouble building installer for asteroid sample on win_amd64

[Update]

How difficult would it be for you all to fix this anyhow? I don’t want to ask you all to go through a lot of effort for legacy py2 unless really necessary, so I might go ahead to reattempt the python2 -> python3 upgrade at some point, which needs to happen in the future anyhow.

[Original]

Hello,

I am unable to use deploy-ng to build an installer for the asteroid sample program when I’m using python2.7 (64bit) downloaded from python.org. I’m on windows 10 here.

The non-working executable does nothing. It does not hang, and does not print anything to the log file.

When I change to a HelloWorld program, it has the same problem unless I change the ‘gui_apps’ option to ‘console_apps’ option.

When I use the python3.7 that ships with panda3d-1.10-x64 the executable works just fine.

My default setup.py:

from setuptools import setup

setup(
    name="asteroids",
    options = {
        'build_apps': {
            'include_patterns': [
                '**/*.png',
                '**/*.jpg',
                '**/*.egg',
            ],
            'gui_apps': {
                'asteroids': 'main.py',
            },
            'log_filename': 'C:\\Panda3D-1.10.0-x64\\samples\\asteroids\\output.log',
            'log_append': False,
            'plugins': [
                'pandagl',
                'p3openal_audio',
            ],
            'platforms': [
                'win_amd64',
            ],
        }
    }
)

Python2.7 build of default asteroids program

Build output:

running build_apps
Building platforms: win_amd64
Gathering wheels for platform: win_amd64
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://archive.panda3d.org/branches/deploy-ng/opt, https://archive.panda3d.org/branches/deploy-ng
Collecting panda3d (from -r C:\Panda3D-1.10.0-x64\samples\asteroids\requirements.txt (line 2))
  File was already downloaded c:\panda3d-1.10.0-x64\samples\asteroids\build\__whl_cache__\panda3d-1.10.1-cp27-cp27m-win_amd64.whl
Successfully downloaded panda3d
You are using pip version 19.0.1, however version 19.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Could not find an optimized wheel (using index https://archive.panda3d.org/branches/deploy-ng/opt) for platform: win_amd64
Building runtime for platform: win_amd64
warning: build_apps: could not find dependency MSVCR90.dll (referenced by python27.dll)

warning: build_apps: could not find dependency VCRUNTIME140.dll (referenced by deploy-stubw.exe)

warning: build_apps: could not find dependency SETUPAPI.dll (referenced by libpanda.dll)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by _hashlib.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by bz2.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by unicodedata.pyd)

warning: build_apps: could not find dependency CRYPT32.dll (referenced by _ssl.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by _ssl.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by _ctypes.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by _socket.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by select.pyd)

There are some missing modules: ['IronPythonConsole', 'System', 'System.Windows.Forms.Clipboard', '_scproxy', 'builtins', 'clr', 'console', 'modes.editingmodes', 'pyreadline.keysyms.make_KeyPress', 'pyreadline.keysyms.make_KeyPress_from_keydescr', 'pyreadline.keysyms.make_keyinfo', 'pyreadline.keysyms.make_keysym', 'resource', 'startup', 'win32evtlog', 'win32evtlogutil']
Copying game files for platform: win_amd64

Writing /c/Panda3D-1.10.0-x64/samples/asteroids/build/win_amd64/models/plane.egg.bam

Contents of build dir

total 57M
-rwxr-xr-x 1 User 197121 118K Feb 15 13:38 _ctypes.pyd*
-rwxr-xr-x 1 User 197121 1.5M Feb 15 13:38 _hashlib.pyd*
-rwxr-xr-x 1 User 197121  50K Feb 15 13:38 _socket.pyd*
-rwxr-xr-x 1 User 197121 2.1M Feb 15 13:38 _ssl.pyd*
-rwxr-xr-x 1 User 197121 3.0M Feb 15 13:38 asteroids.exe*
-rwxr-xr-x 1 User 197121  91K Feb 15 13:38 bz2.pyd*
-rwxr-xr-x 1 User 197121  12M Feb 15 13:38 cg.dll*
-rwxr-xr-x 1 User 197121 429K Feb 15 13:38 cgGL.dll*
drwxr-xr-x 1 User 197121    0 Feb 15 13:38 dist/
-rwxr-xr-x 1 User 197121 269K Feb 15 13:38 libp3direct.dll*
-rwxr-xr-x 1 User 197121 432K Feb 15 13:38 libp3dtool.dll*
-rwxr-xr-x 1 User 197121 1.2M Feb 15 13:38 libp3dtoolconfig.dll*
-rwxr-xr-x 1 User 197121 165K Feb 15 13:38 libp3interrogatedb.dll*
-rwxr-xr-x 1 User 197121 662K Feb 15 13:38 libp3openal_audio.dll*
-rwxr-xr-x 1 User 197121 127K Feb 15 13:38 libp3windisplay.dll*
-rwxr-xr-x 1 User 197121  15M Feb 15 13:38 libpanda.dll*
-rwxr-xr-x 1 User 197121 2.5M Feb 15 13:38 libpandaexpress.dll*
-rwxr-xr-x 1 User 197121 599K Feb 15 13:38 libpandagl.dll*
drwxr-xr-x 1 User 197121    0 Feb 15 13:38 models/
-rwxr-xr-x 1 User 197121 619K Feb 15 13:38 MSVCP140.dll*
-rwxr-xr-x 1 User 197121  12M Feb 15 13:38 panda3d.core.pyd*
-rwxr-xr-x 1 User 197121 850K Feb 15 13:38 panda3d.direct.pyd*
-rwxr-xr-x 1 User 197121 3.3M Feb 15 13:38 python27.dll*
-rwxr-xr-x 1 User 197121  12K Feb 15 13:38 select.pyd*
drwxr-xr-x 1 User 197121    0 Feb 15 13:38 textures/
-rwxr-xr-x 1 User 197121 676K Feb 15 13:38 unicodedata.pyd*
-rwxr-xr-x 1 User 197121  86K Feb 15 13:38 VCRUNTIME140.dll*

Python2.7 build of hello world with gui_app

Build output :

running build_apps
Building platforms: win_amd64
Gathering wheels for platform: win_amd64
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://archive.panda3d.org/branches/deploy-ng/opt, https://archive.panda3d.org/branches/deploy-ng
Collecting panda3d (from -r C:\Panda3D-1.10.0-x64\samples\asteroids\requirements.txt (line 2))
  File was already downloaded c:\panda3d-1.10.0-x64\samples\asteroids\build\__whl_cache__\panda3d-1.10.1-cp27-cp27m-win_amd64.whl
Successfully downloaded panda3d
You are using pip version 19.0.1, however version 19.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Could not find an optimized wheel (using index https://archive.panda3d.org/branches/deploy-ng/opt) for platform: win_amd64
Building runtime for platform: win_amd64
warning: build_apps: could not find dependency MSVCR90.dll (referenced by python27.dll)

warning: build_apps: could not find dependency VCRUNTIME140.dll (referenced by deploy-stubw.exe)

warning: build_apps: could not find dependency SETUPAPI.dll (referenced by libpanda.dll)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by _hashlib.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by unicodedata.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by bz2.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by select.pyd)

Copying game files for platform: win_amd64

Writing /c/Panda3D-1.10.0-x64/samples/asteroids/build/win_amd64/models/plane.egg.bam

Contents of build dir

total 40M
-rwxr-xr-x 1 User 197121 1.5M Feb 15 13:39 _hashlib.pyd*
-rwxr-xr-x 1 User 197121 1.1M Feb 15 13:39 asteroids.exe*
-rwxr-xr-x 1 User 197121  91K Feb 15 13:39 bz2.pyd*
-rwxr-xr-x 1 User 197121  12M Feb 15 13:39 cg.dll*
-rwxr-xr-x 1 User 197121 429K Feb 15 13:39 cgGL.dll*
drwxr-xr-x 1 User 197121    0 Feb 15 13:39 dist/
-rwxr-xr-x 1 User 197121 432K Feb 15 13:39 libp3dtool.dll*
-rwxr-xr-x 1 User 197121 1.2M Feb 15 13:39 libp3dtoolconfig.dll*
-rwxr-xr-x 1 User 197121 662K Feb 15 13:39 libp3openal_audio.dll*
-rwxr-xr-x 1 User 197121 127K Feb 15 13:39 libp3windisplay.dll*
-rwxr-xr-x 1 User 197121  15M Feb 15 13:39 libpanda.dll*
-rwxr-xr-x 1 User 197121 2.5M Feb 15 13:39 libpandaexpress.dll*
-rwxr-xr-x 1 User 197121 599K Feb 15 13:39 libpandagl.dll*
drwxr-xr-x 1 User 197121    0 Feb 15 13:39 models/
-rwxr-xr-x 1 User 197121 619K Feb 15 13:39 MSVCP140.dll*
-rwxr-xr-x 1 User 197121 3.3M Feb 15 13:39 python27.dll*
-rwxr-xr-x 1 User 197121  12K Feb 15 13:39 select.pyd*
drwxr-xr-x 1 User 197121    0 Feb 15 13:39 textures/
-rwxr-xr-x 1 User 197121 676K Feb 15 13:39 unicodedata.pyd*
-rwxr-xr-x 1 User 197121  86K Feb 15 13:39 VCRUNTIME140.dll*

Building helloworld console_app with python2

Build output
running build_apps
Building platforms: win_amd64
Gathering wheels for platform: win_amd64
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7.
Looking in indexes: https://pypi.org/simple, https://archive.panda3d.org/branches/deploy-ng/opt, https://archive.panda3d.org/branches/deploy-ng
Collecting panda3d (from -r C:\Panda3D-1.10.0-x64\samples\asteroids\requirements.txt (line 2))
File was already downloaded c:\panda3d-1.10.0-x64\samples\asteroids\build_whl_cache_\panda3d-1.10.1-cp27-cp27m-win_amd64.whl
Successfully downloaded panda3d
You are using pip version 19.0.1, however version 19.0.2 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.
Could not find an optimized wheel (using index https://archive.panda3d.org/branches/deploy-ng/opt) for platform: win_amd64
Building runtime for platform: win_amd64
warning: build_apps: could not find dependency MSVCR90.dll (referenced by python27.dll)

warning: build_apps: could not find dependency VCRUNTIME140.dll (referenced by deploy-stub.exe)

warning: build_apps: could not find dependency SETUPAPI.dll (referenced by libpanda.dll)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by _hashlib.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by unicodedata.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by bz2.pyd)

warning: build_apps: could not find dependency MSVCR90.dll (referenced by select.pyd)

Copying game files for platform: win_amd64

Writing /c/Panda3D-1.10.0-x64/samples/asteroids/build/win_amd64/models/plane.egg.bam

Contents of build dir

total 40M
-rwxr-xr-x 1 User 197121 1.5M Feb 15 13:47 _hashlib.pyd*
-rwxr-xr-x 1 User 197121 1.1M Feb 15 13:47 asteroids.exe*
-rwxr-xr-x 1 User 197121  91K Feb 15 13:47 bz2.pyd*
-rwxr-xr-x 1 User 197121  12M Feb 15 13:47 cg.dll*
-rwxr-xr-x 1 User 197121 429K Feb 15 13:47 cgGL.dll*
drwxr-xr-x 1 User 197121    0 Feb 15 13:47 dist/
-rwxr-xr-x 1 User 197121 432K Feb 15 13:47 libp3dtool.dll*
-rwxr-xr-x 1 User 197121 1.2M Feb 15 13:47 libp3dtoolconfig.dll*
-rwxr-xr-x 1 User 197121 662K Feb 15 13:47 libp3openal_audio.dll*
-rwxr-xr-x 1 User 197121 127K Feb 15 13:47 libp3windisplay.dll*
-rwxr-xr-x 1 User 197121  15M Feb 15 13:47 libpanda.dll*
-rwxr-xr-x 1 User 197121 2.5M Feb 15 13:47 libpandaexpress.dll*
-rwxr-xr-x 1 User 197121 599K Feb 15 13:47 libpandagl.dll*
drwxr-xr-x 1 User 197121    0 Feb 15 13:47 models/
-rwxr-xr-x 1 User 197121 619K Feb 15 13:47 MSVCP140.dll*
-rwxr-xr-x 1 User 197121 3.3M Feb 15 13:47 python27.dll*
-rwxr-xr-x 1 User 197121  12K Feb 15 13:47 select.pyd*
drwxr-xr-x 1 User 197121    0 Feb 15 13:47 textures/
-rwxr-xr-x 1 User 197121 676K Feb 15 13:47 unicodedata.pyd*
-rwxr-xr-x 1 User 197121  86K Feb 15 13:47 VCRUNTIME140.dll*