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

Error when importing profile #17

Closed
GalaxyCurse opened this issue Feb 10, 2022 · 2 comments
Closed

Error when importing profile #17

GalaxyCurse opened this issue Feb 10, 2022 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@GalaxyCurse
Copy link

File "/home/curse/Devel/OneDriveGUI-main/src/OneDriveGUI.py", line 1333, in <lambda> self.refresh_process_status.timeout.connect(lambda: self.onedrive_process_status()) File "/home/curse/Devel/OneDriveGUI-main/src/OneDriveGUI.py", line 1360, in onedrive_process_status self.profile_status_pages[profile_name].label_status.setText("stopped") KeyError:'my@email.address'

I've tried both with and without my email address in the "Profile Name" field, but same result.
It does write a config though, but the "next" button is unavailable. Only "back" and "cancel".

[my@email.address] config_file = /home/curse/.config/onedrive/config enable_debug = False mode = monitor

So I close down the gui and try again this error comes up.

$ python OneDriveGUI.py Traceback (most recent call last): File "/home/curse/Devel/OneDriveGUI-main/src/OneDriveGUI.py", line 1615, in <module> settings_window = SettingsWindow() File "/home/curse/Devel/OneDriveGUI-main/src/OneDriveGUI.py", line 476, in __init__ self.page = ProfileSettingsPage(profile) File "/home/curse/Devel/OneDriveGUI-main/src/OneDriveGUI.py", line 725, in __init__ self.checkBox_sync_root_files.setChecked(self.get_check_box_state("sync_root_files")) File "/home/curse/Devel/OneDriveGUI-main/src/OneDriveGUI.py", line 972, in get_check_box_state return self.temp_profile_config[f"{property}"].strip('"') in "true" KeyError: 'sync_root_files'

I'm not sure if the error is at my end or...

@bpozdena bpozdena self-assigned this Feb 11, 2022
@bpozdena bpozdena added the bug Something isn't working label Feb 11, 2022
@bpozdena bpozdena added this to the v0.2.0 milestone Feb 11, 2022
@bpozdena
Copy link
Owner

Thanks for the report, @GalaxyCurse

I did anticipate this scenario, but I never tested the original solution. This issue is now fixed.

To fix the issue:
1)Replace 'OneDriveGUI.py' with the latest one from main branch.
2)Delete '~/.config/onedrive-gui/profile'
3)Run the GUI and import the profile again.

@GalaxyCurse
Copy link
Author

I can confirm that it's fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants