I am new to running Panda 3D software. My problem is the following. At the time of creating the binaries of my program following the steps of the tutorial: 1: Create a setup.py file for your application
2: Execute python setup.py bdist_apps
It seems to do nothing, I leave images of the setup.py and the cmd window.
I get the following
C:\Panda3D-1.10.6-x64\python>python.exe setup.py build_apps python.exe: canât open file âsetup.pyâ: [Errno 2] No such file or directory
Wait, is that all of your âsetup.pyâ that you posted there? Because if so, then it seems to have had some of its content cut offâit ends suddenly after âpluginsâ, without closing the brackets for any of âbuild_appsâ, âoptionsâ, or âsetupâ. (Which might be why the vertical line on the left of the image is red: itâs indicating a problem with the code in the file.)
Youâre right
You will see the code is taken from the asteroids example.
Following the tutorials on the official Panda website, this example is the only one that can generate binary files.
Anyway I already put the closure, and the result is the same
Ah, waitâcross-checking with another example, I notice that the âsetup.pyâ used by the âAsteroidsâ example is missing something: it doesnât specify any platforms to build for!
Perhaps thereâs a default, but in case there isnât, the lack of a target platform might be the reason that youâre not getting any output: the system is being told to build for no platforms at all.
Try adding this after plugins:
"platforms" : [
"win_amd64"
# Or "win32", of you're using a 32-bit system
]
I have a 64 bit system. I understand that these systems run 32 bit. please correct me if Iâm wrong.
Anyway if I donât put anything in the setup.py it creates for all the default platforms (linux, mac, Windows) as the documentation says, and it shows me an error for each system.
I have exactly the same error if I try on Windows 64 bit, build a âwin32â build"
running build_apps
Building platforms: win32
Gathering wheels for platform: win32
Looking in indexes: https://pypi.org/simple, https://archive.panda3d.org/simple/opt, https://archive.panda3d.org/thirdparty
Collecting panda3d (from -r C:\Panda3D-1.10.6-x64\samples\asteroids\requirements.txt (line 1))
File was already downloaded c:\panda3d-1.10.6-x64\samples\asteroids\build\__whl_cache__\win32_cp37m\panda3d-1.10.6+opt-cp37-cp37m-win32.whl
Successfully downloaded panda3d
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Building runtime for platform: win32
There are some missing modules: ['__builtin__', '_posixsubprocess']
warning: build_apps: could not find dependency VERSION.dll (referenced by python37.dll)
warning: build_apps: could not find dependency VCRUNTIME140.dll (referenced by python37.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 bcrypt.dll (referenced by libcrypto-1_1.dll)
Copying game files for platform: win32
Writing /c/Panda3D-1.10.6-x64/samples/asteroids/build/win32/models/plane.egg.bam
C:\Panda3D-1.10.6-x64\samples\asteroids>
The conclusion is simple, you canât be on a 64-bit system and build a 32-bit build in reverse too.