Skip to content

UnboundLocalError: cannot access local variable 'game_id' causes install failure on classic GOG games #5420

@Revan67

Description

@Revan67

Describe the bug

Installing certain classic GOG games fails with a gogdl crash. The download completes successfully (100%), but the install fails at the final step, with the game info folder being undefined in Heroic.

Add logs

gog.log

UnboundLocalError: cannot access local variable 'game_id' where it is not associated with a value
[PYI-34616:ERROR] Failed to execute script 'cli' due to unhandled exception!

heroic.log

game info folder is undefined in GOG install
Installation of 2125201406 failed!

Steps to reproduce

Attempting to install either game will result in a silent error; there is no visible error message, and it just fails.

Expected behavior

Silently download and install the games

Screenshots

No response

Heroic Version

Latest Stable

System Information

Affected games: STAR WARS™: X-Wing Alliance™, Star Trek™: Judgment Rites
Note: Judgment Rites downloaded to 100% successfully before failing, confirming the issue is in the post-download install step, not the download itself.

OS: Windows 11 24H2

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:unconfirmedSomeone works on identifying the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions