mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #198] Error #178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cpstest-tech on GitHub (Oct 2, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/198
Hello, I am trying to use this app for converting my Ursina Game Engine Project, will attach the settings that i used and the output


pyinstaller --noconfirm --onedir --windowed --icon "D:/Download/1608658_cube_icon.ico" --add-data "C:/Users/Paolo/PycharmProjects/MinecraftPythonEdition/assets;assets/" "C:/Users/Paolo/PycharmProjects/MinecraftPythonEdition/Mineceraft.py"Code of the game:
`from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
app = Ursina()
grass_texture = load_texture('assets/grass_block.png')
stone_texture = load_texture('assets/stone_block.png')
brick_texture = load_texture('assets/brick_block.png')
dirt_texture = load_texture('assets/dirt_block.png')
sky_texture = load_texture('assets/skybox.png')
punch_sound = Audio('assets/punch_sound',loop = False, autoplay = False)
block_pick = 1
window.fps_counter.enabled = True
window.exit_button.visible = False
def update():
global block_pick
if held_keys['1']: block_pick = 1
if held_keys['2']: block_pick = 2
if held_keys['3']: block_pick = 3
if held_keys['4']: block_pick = 4
class Voxel(Button):
def init(self, position = (0,0,0), texture = grass_texture):
super().init(
parent = scene,
position = position,
model = 'assets/block',
origin_y = 0.5,
texture = texture,
color = color.color(0,0,random.uniform(0.9,1)),
scale = 0.5)
class Sky(Entity):
def init(self):
super().init(
parent = scene,
model = 'sphere',
texture = sky_texture,
scale = 150,
double_sided = True)
for z in range(48):
for x in range(32):
voxel = Voxel((x,0,z))
player = FirstPersonController()
sky = Sky()
app.run()`
The game works perfectly if ran with python, but when converted it gives me those errors
@brentvollebregt commented on GitHub (Oct 3, 2021):
Potentially a file
Config.prchas not been packaged and is expected? Judging by this, another library may be providing it - however since it's not imported using theimportkeyword, PyInstaller does not package it.I would recommend copying this file, reference it explicitly in your code (it seems you can tell it where to look) and then include this file as an additional file. Make sure to test using a debugger before you package to an exe.
However, this seems to be library-specific so I cannot offer much help sorry - you will need to investigate with the library being used.
@github-actions[bot] commented on GitHub (Dec 3, 2021):
This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
@github-actions[bot] commented on GitHub (Dec 8, 2021):
Closing issue due to no activity in more than 60 days.