[GH-ISSUE #147] error in: "One File" #137

Closed
opened 2026-02-26 12:20:36 +03:00 by kerem · 3 comments
Owner

Originally created by @GIKExe on GitHub (Dec 15, 2020).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/147

the main file is: шаблон.py
I also import: server in it.py and player.py
I also have to upload to" onefile " the format: Subdex_Bold.ttf

also, all additional files I save to: "."
in the file шаблон.exe, in the code шаблон.py, on the line: font = pygame.font.Font('Subdex_Bold.ttf', 26) the error occurs: "wrong file path"!

( if that I activated: pygame.init() )

Help me!

Originally created by @GIKExe on GitHub (Dec 15, 2020). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/147 the main file is: шаблон.py I also import: server in it.py and player.py I also have to upload to" onefile " the format: Subdex_Bold.ttf also, all additional files I save to: "." in the file шаблон.exe, in the code шаблон.py, on the line: font = pygame.font.Font('Subdex_Bold.ttf', 26) the error occurs: "wrong file path"! ( if that I activated: pygame.init() ) Help me!
kerem closed this issue 2026-02-26 12:20:36 +03:00
Author
Owner

@GIKExe commented on GitHub (Dec 15, 2020):

image
image

<!-- gh-comment-id:745494813 --> @GIKExe commented on GitHub (Dec 15, 2020): ![image](https://user-images.githubusercontent.com/72767917/102259031-a766cb80-3f1f-11eb-96e1-ac178263a921.png) ![image](https://user-images.githubusercontent.com/72767917/102259758-923e6c80-3f20-11eb-86ea-d4e7f71dd324.png)
Author
Owner

@brentvollebregt commented on GitHub (Dec 16, 2020):

Were you able to get this working as one-directory (not one file)?

<!-- gh-comment-id:745750834 --> @brentvollebregt commented on GitHub (Dec 16, 2020): Were you able to get this working as one-directory (not one file)?
Author
Owner

@GIKExe commented on GitHub (Dec 16, 2020):

Were you able to get this working as one-directory (not one file)?

Yes, I could, but this is a little different. I really do not understand why the address in "onefile" is not the one that was set. this problem only affects the font.ttf file.

<!-- gh-comment-id:746154910 --> @GIKExe commented on GitHub (Dec 16, 2020): > Were you able to get this working as one-directory (not one file)? Yes, I could, but this is a little different. I really do not understand why the address in "onefile" is not the one that was set. this problem only affects the font.ttf file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#137
No description provided.