-
Notifications
You must be signed in to change notification settings - Fork 17
[Bug] AttributeError: 'Namespace' object has no attribute 'silent' #127
Comments
This issue is the same as #125 |
Thanks |
@nerdneilsfield Can you check if this build works? Just replace the executable with the one in the Bash Launcher folder. |
Hey @redromnon. It took some digging and trial and error but I think I was able to figure it out. In order to debug with VS Code, I had to do the following to get HeroicBashLauncher to work without being bundled up by PyInstaller and being in the Games/Heroic/HeroicBashLauncher directory (please let me know if there's a better way to do this):
{
"version": "0.2.0",
"configurations": [
{
"name": "HeroicBashLauncher",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/HeroicBashLauncher.py",
"cwd": "${REPLACE_WITH_PATH_TO_HOME}/Games/Heroic/HeroicBashLauncher/",
"console": "integratedTerminal",
"justMyCode": true
}
]
}
After a bit more searching, I think this StackOverflow does a good job explaining the bug which seems to relate to the visibility of global variables in imported modules: https://stackoverflow.com/questions/15959534/visibility-of-global-variables-in-imported-modules
TL;DR: I think one solution could be to change createlaunchfile.py and anywhere else that's using |
Thanks a ton @afwolfe |
This also explains why the bug doesn't pop in |
No problem. It looks like around line 17 should be the |
HeroicBashLauncher must have contained it under |
Made the changes and hopefully, it works fine. This is the updated build. |
Describe the bug
can not run the HeroicBash Luancher,
AttributeError: 'Namespace' object has no attribute 'silent'
Expected behavior
the script should run and add the games to Steam Library
Screenshots
log
Details
Additional context
None
The text was updated successfully, but these errors were encountered: