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

TypeError: _install_update_win() got an unexpected keyword argument 'debug' #126

Closed
dennisvang opened this issue Mar 12, 2024 · 0 comments · Fixed by #127
Closed

TypeError: _install_update_win() got an unexpected keyword argument 'debug' #126

dennisvang opened this issue Mar 12, 2024 · 0 comments · Fixed by #127
Assignees
Labels
bug Something isn't working

Comments

@dennisvang
Copy link
Owner

dennisvang commented Mar 12, 2024

Description

On Windows, calling Client.download_and_apply_update() with debug=True results in a TypeError:

TypeError: _install_update_win() got an unexpected keyword argument 'debug'

This breaks the installation of the downloaded update...

This specific bug only affects apps using the undocumented debug argument that was present in _install_update_win() before v0.4.1.

Note, however, that a similar issue would arise for any unknown kwargs passed to Client.download_and_apply_update().

Versions affected: v0.4.1 through v0.7.0

Cause

The direct cause is the replacement of the debug kwarg by a log_file_name kwarg in #41.

This is exacerbated by the fact that _install_update_win() does not accept unknown kwargs, whereas install_update() does.

Note that the _install_update_mac() function does properly accept unknown kwargs.

Solution

Let the install function accept unknown kwargs, as in: _install_update_win(..., **kwargs)

Unfortunately, any existing apps experiencing this issue cannot be fixed without a manual re-install.

@dennisvang dennisvang added the bug Something isn't working label Mar 12, 2024
@dennisvang dennisvang self-assigned this Mar 12, 2024
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

Successfully merging a pull request may close this issue.

1 participant