Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start on windows: OSError: cannot load file I18n #1229

Open
edave64 opened this issue Aug 9, 2022 · 12 comments
Open

Failed to start on windows: OSError: cannot load file I18n #1229

edave64 opened this issue Aug 9, 2022 · 12 comments

Comments

@edave64
Copy link

edave64 commented Aug 9, 2022

Describe the bug
An error occurs when I try to run the "run_tuxemon.exe". Details in the screenshot.

To Reproduce
I just used the tuxemon_windows_binary.zip for v0.4.34. The same issues happens when using the current tuxemon-installer.exe

Expected behavior
I would expect the game to launch.

Screenshots
The error

Note that neither the folders "C:\hostedtoolcache" nor "D:\a" actually exist.

Desktop (please complete the following information):

  • OS: Windows 10
  • Python Version 3.9.13, according to the screenshot.
  • Actually installed python versions on my system are "2.7.18" and "3.10.6"

Additional context
Building from source doesn't work for me either, but that's a different issue that I'll have to look into.

@kerizane
Copy link
Collaborator

kerizane commented Aug 10, 2022

@Murmele not sure if this is due to the GitHub actions, or if the script was already broken. Probably the latter.

@Murmele
Copy link
Contributor

Murmele commented Aug 10, 2022

Sounds like the latter one, because I just copy pasted the build of the windows CI file. I will check out in the CI file if I forgott something. Are you able to reproduce the buildlocally to find out if it is a package issue or an application issue?

@kerizane
Copy link
Collaborator

I am removing the broken artifacts from the release, for investigating the bug you can get them from here:

https://github.com/Tuxemon/Tuxemon/actions/runs/2810055930

@Murmele
Copy link
Contributor

Murmele commented Aug 11, 2022

ok thanks!

@Murmele
Copy link
Contributor

Murmele commented Aug 11, 2022

When I am looking into the executable, l18n is here: mods/tuxemon/l18n/

@Murmele
Copy link
Contributor

Murmele commented Aug 11, 2022

Tried with wine I get the same error message
image

@Murmele
Copy link
Contributor

Murmele commented Aug 11, 2022

the l18n is normaly located in .tuxemon/cache or?

@Murmele
Copy link
Contributor

Murmele commented Aug 11, 2022

When executing the installer, l18n is in .wine/drive_c/Program Files (x86)/Tuxemon/mods/tuxemon/l18n/

@kerizane
Copy link
Collaborator

kerizane commented Aug 11, 2022

Yes, l18n is usually within .tuxemon/cache

There are two folders called l18n each containing en_US/LC_MESSAGES and then a single file:

base.po (pre-compiled translations) is within mods/tuxemon, base.mo (compiled translations) is within the cache.

@kerizane
Copy link
Collaborator

@Murmele could you comment out the automatic windows publishing (leave the build) until somebody fixes this?

@Murmele
Copy link
Contributor

Murmele commented Sep 14, 2022

@kerizane yes I can do

@Vuizur
Copy link

Vuizur commented Jun 20, 2024

I looked into it: The reason for the bug is that LIBDIR on Windows is exe.win-amd64-3.12\lib\tuxemon, the mods folder is calculated in the code with mods_folder = os.path.normpath(os.path.join(LIBDIR, "..", "mods")), so it searches in \exe.win-amd64-3.12\lib\mods, which doesn't exist. The only mods folder on disk that actually exists is exe.win-amd64-3.12\mods. So it should be really easy to fix. (Unfortunately I don't understand the code well enough to understand the desired behaviour and submit a PR.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants