Okay, now I added 2 more .dll files to the directory.
- CgGL.dll
- libp3windisplay.dll
Now I don’t have an error. Instead, it doesn’t do anything.
:display: loading display module: libpandagl.dll
Known pipe types:
wglGraphicsPipe
(all display modules loaded.)
:display:windisplay: OS version: 10.0.2.19042
:display:windisplay:
:display:windisplay: max Mhz 4101000000, current Mhz 4101000000
:ShowBase: Default graphics pipe is wglGraphicsPipe (OpenGL).
Maybe the Panda3D distribution system would be great to get it working. I copied the Panda3D Hello World example from the manual to test if it works without the render pipeline. I also copied the astroids example from the distribution example and made some changed to it.
from setuptools import setup
setup(
name="test",
options = {
'build_apps': {
'include_patterns': [
'source/*.png',
'source/*.bam',
],
'console_apps': {
'test': 'example.py',
},
'plugins': [
"pandagl"
],
'platforms': [
'win_amd64',
"win32"
]
}
}
)
I ran the bdist_apps
command and tried to open the test.exe
file in the build/win_amd64
directory.
I used the specification console_apps to see error messages. If I switch it to gui_apps, it doesn’t start, and if I run it from the console, it immediately closes without any message.
If I am leaving the specification console_apps, it doesn’t start either, but I get this error while running it from the console:
Traceback (most recent call last):
File "importlib._bootstrap_external", line 1353, in _path_importer_cache
KeyError: 'C:\\GitHub\\Ursina Tests\\whl\\build\\win_amd64'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "__main__", line 66, in <module>
File "__main__", line 12, in __init__
File "direct.showbase.ShowBase", line 179, in __init__
File "direct.showbase.ShowBase", line 546, in __setupProfile
File "importlib", line 127, in import_module
File "importlib._bootstrap", line 1030, in _gcd_import
File "importlib._bootstrap", line 1007, in _find_and_load
File "importlib._bootstrap", line 982, in _find_and_load_unlocked
File "importlib._bootstrap", line 925, in _find_spec
File "importlib._bootstrap_external", line 1414, in find_spec
File "importlib._bootstrap_external", line 1383, in _get_spec
File "importlib._bootstrap_external", line 1355, in _path_importer_cache
File "importlib._bootstrap_external", line 1331, in _path_hooks
File "importlib._bootstrap_external", line 1601, in path_hook_for_FileFinder
File "importlib._bootstrap_external", line 1476, in __init__
File "importlib._bootstrap_external", line 171, in _path_isabs
AttributeError: module 'nt' has no attribute '_path_splitroot'