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

Win10: Sideband throws python exception on first run #73

Open
cobraPA opened this issue Feb 23, 2025 · 4 comments
Open

Win10: Sideband throws python exception on first run #73

cobraPA opened this issue Feb 23, 2025 · 4 comments

Comments

@cobraPA
Copy link

cobraPA commented Feb 23, 2025

Read the Contribution Guidelines
Before creating a bug report on this issue tracker, you must read the Contribution Guidelines. Issues that do not follow the contribution guidelines will be deleted without comment.

  • The issue tracker is used by developers of this project. Do not use it to ask general questions, or for support requests.
  • Ideas and feature requests can be made on the Discussions. Only feature requests accepted by maintainers and developers are tracked and included on the issue tracker. Do not post feature requests here.
  • After reading the Contribution Guidelines, delete this section only ("Read the Contribution Guidelines") from your bug report, and fill in all the other sections.

Describe the Bug
First of all: Is this really a bug? Is it reproducible?

If this is a request for help because something is not working as you expected, stop right here, and go to the discussions instead, where you can post your questions and get help from other users.

If this really is a bug or issue with the software, remove this section of the template, and provide a clear and concise description of what the bug is.

Win10:
From the release of Sideband 1.4.0 download the zip
Extract in the user Downloads directory
Run Sideband.exe

Python crash notice occurs:

Traceback (most recent call last):
File "main.py", line 1, in
debug_build = False
^^^^^^^^^^^^^^^^^
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 384, in exec_module
File "sbapp\main.py", line 6333, in
run()
File "sbapp\main.py", line 6327, in run
SidebandApp().run()
^^^^^^^^^^^^^
File "sbapp\main.py", line 334, in init
self.set_ui_theme()
File "sbapp\main.py", line 529, in set_ui_theme
if self.sideband.config["telemetry_allow_requests_from_anyone"]:
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'telemetry_allow_requests_from_anyone'

To Reproduce
Describe in detail how to reproduce the bug.

New install with all files removed

Expected Behavior
A clear and concise description of what you expected to happen.

Logs & Screenshots
Please include any relevant log output. If applicable, also add screenshots to help explain your problem. In most cases, without any relevant log output, we will not be able to determine the cause of the bug, or reproduce it.

System Information

  • OS and version : Win10
  • Python version: Running packaged Sideband.exe
  • Program version: 1.4.0 release

Additional context
Add any other context about the problem here.

@markqvist
Copy link
Owner

Weird. That really shouldn't be able to happen, since the config is always loaded, checked and migrated before the UI is initialised.

I've tried a fresh install and wiping the configuration directory, but I can't reproduce it on Windows 10 here.

Changing line 529 of main.py to:

if "telemetry_allow_requests_from_anyone" in self.sideband.config and self.sideband.config["telemetry_allow_requests_from_anyone"]:

Would probably solve it, but I'm hesitant to do that as a quick fix, since the underlying cause is likely to be something much stranger. Are you 100% certain there is not something strange going on with this particular Win10 system?

Is this reproducible on multiple machines in your end?

@cobraPA
Copy link
Author

cobraPA commented Feb 24, 2025

Only one failure machine on first install. Do you know if anything besides .config, .kivy and .sideband is created? I moved those away and tried to repeat, and it started this time without the error. I don't think there is anything special, other than it is a Win10 VM running in Bootcamp/Parallels on Mac.

@markqvist
Copy link
Owner

That is really puzzling. I can't think of anything else, off the top of my head. I'll keep it in mind and see if I can eventually reproduce it. Thanks for posting!

@cobraPA
Copy link
Author

cobraPA commented Feb 24, 2025

Sounds good, no problem marking this 'can't reproduce' or something. If I find a case for that I can add details and reopen.

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

2 participants