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

“IndexError: list index out of range” when trying to run in silent mode #57

Closed
cudail opened this issue Nov 24, 2024 · 1 comment
Closed

Comments

@cudail
Copy link

cudail commented Nov 24, 2024

Hey! This tool seems really cool. The inconsistencies in game naming on Steam and ALLCAPS™ GAME OF THE YEAR EDITION titles is a constant if mild annoyance.

And it seems to work fine, but I was trying to set up a script and .desktop file to call it in silent mode before starting Steam and discovered that it fails to launch for me in silent mode. I can start steammetadataeditor from the command line just fine but steammetadataeditor -s or steammetadataeditor --silent results in the following error:

Traceback (most recent call last):
  File "/opt/sme/main.py", line 46, in <module>
    main()
  File "/opt/sme/main.py", line 35, in main
    main_window = MainWindow()
                  ^^^^^^^^^^^^
  File "/opt/sme/gui/main_window.py", line 66, in __init__
    self.appinfo = Appinfo(
                   ^^^^^^^^
  File "/opt/sme/appinfo.py", line 71, in __init__
    self.parsedAppInfo[app] = self.read_app(app)
                              ^^^^^^^^^^^^^^^^^^
  File "/opt/sme/appinfo.py", line 180, in read_app
    app["sections"] = self.parse_subsections()
                      ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sme/appinfo.py", line 123, in parse_subsections
    key = self.read_string_appinfo29()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/sme/appinfo.py", line 87, in read_string_appinfo29
    return self.string_pool[index]
           ~~~~~~~~~~~~~~~~^^^^^^^
IndexError: list index out of range

I am using Manjaro with KDE Plasma desktop 6.1.5 and installed steam-metadata-editor-git via AUR.

@cudail
Copy link
Author

cudail commented Nov 24, 2024

Ah I just realised that there is already a pull request open to address this #55 (and applying the change from it to main_window.py manually myself does seem to solve the error. I will close this issue!

@cudail cudail closed this as completed Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant