cannot freeze stand-alone exe files #264
Unanswered
hacker101red
asked this question in
Q&A
Replies: 1 comment
-
I have the same problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i cannot freeze stand-alone exe files with ursina library can anyone help?(i use windows and i use the default dowload location)
error traceback:
missing model: cube
:display: loading display module: libtinydisplay.dll
:display(warning): Unable to load libtinydisplay.so: Path not found
:display: loading display module: libpandadx8.dll
:display(warning): Unable to load libpandadx8.so: Path not found
:display: loading display module: libpandadx9.dll
:display(warning): Unable to load libpandadx9.so: Path not found
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
File "quiz.py", line 6, in
File "ursina\main.py", line 27, in init
File "direct\showbase\ShowBase.py", line 339, in init
File "direct\showbase\ShowBase.py", line 1021, in openDefaultWindow
File "direct\showbase\ShowBase.py", line 1056, in openMainWindow
File "direct\showbase\ShowBase.py", line 766, in openWindow
File "direct\showbase\ShowBase.py", line 746, in
File "direct\showbase\ShowBase.py", line 818, in _doOpenWindow
File "direct\showbase\ShowBase.py", line 647, in makeDefaultPipe
File "direct\directnotify\Notifier.py", line 130, in error
Exception: No graphics pipe is available!
Your Config.prc file must name at least one valid panda display
library via load-display or aux-display.
[20736] Failed to execute script 'quiz' due to unhandled exception!
quiz.py:
from ursina import *
from random import randint
import math
from ursina.prefabs.platformer_controller_2d import PlatformerController2d
app = Ursina()
window.title = 'My Game'
window.iconbitmap="bb.ico"
window.exit_button.visible = True
window.minimize_button=True
window.background='background'
Sky(texture="sky.jpg")
player=PlatformerController2d(scale_y=1, x=-24,jump_height=5, collider="box", y=10, color=rgb(255,255,255), texture="mouse")
ground = Entity(model='quad', y=-2, scale_x=50, collider="box", scale_y=10, texture = "ground")
camera.add_script(SmoothFollow(target=player, offset=[0,1,-30]))
wall=Entity(model="quad", x=-25, scale_x=50, collider="box", texture="wall")
spikes=Entity(model="cube", x=26, collider="box", y=-5, texture="trap", scale=1.5)
wall2=Entity(model="quad", x=-26,scale_y=50, collider="box", texture="wall")
ground2=Entity(model="quad", x=28, collider="box", texture="ground1", scale_y=9, y=-2)
spikes2=Entity(model="cube", x=30, collider="box", y=-5, texture="trap", scale=1.5)
ground3=Entity(model='quad', y=-2, scale_x=50, collider="box", scale_y=10, texture = "ground", x=56)
finish=Entity(model="cube", x=80, y=5, collider="box", texture="finish")
def update():
red=randint(0, 255)
blue=randint(0, 255)
green=randint(0, 255)
fini=finish.intersects(player)
hiti=spikes.intersects(player)
hiti2=spikes2.intersects(player)
if fini.hit:
txt3=Text(text="you won!", scale=5, position=(0,0,0))
if hiti.hit:
txt=Text(text="game over", scale=5, position=(0,0,0))
if hiti2.hit:
txt2=Text(text="game over", scale=5, position=(0,0,0))
app.run()
(don't bother about textures it works without them)
the tool used for freezing is pyinstaller
Beta Was this translation helpful? Give feedback.
All reactions