Skip to content

Conversation

@SirRGB
Copy link
Contributor

@SirRGB SirRGB commented Nov 23, 2024

grafik
Im kinda stuck here. Picking a correct or incorrect rom has no effect on this screen.

poetry run python openandroidinstaller/openandroidinstaller.py
package:media_kit_libs_linux registered.
2024-11-23 17:16:53.319 | INFO     | __main__:main:218 - Running OpenAndroidInstaller version '0.5.4-beta' on 'linux'.
2024-11-23 17:16:53.326 | INFO     | __main__:log_version_infos:200 - Android Debug Bridge version 1.0.41
2024-11-23 17:16:53.331 | INFO     | __main__:log_version_infos:206 - fastboot version 35.0.1-11580240
2024-11-23 17:16:53.335 | INFO     | __main__:log_version_infos:212 - Heimdall version: Heimdall v1.4.2
2024-11-23 17:16:53.336 | INFO     | __main__:main:220 - ----------------------------------------------------------------------------------------------------
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:184: DeprecationWarning: window_height is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.height instead.
  page.window_height = 900
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:185: DeprecationWarning: window_height is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.height instead.
  page.window_width = int(1.5 * page.window_height)
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:185: DeprecationWarning: window_width is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.width instead.
  page.window_width = int(1.5 * page.window_height)
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:186: DeprecationWarning: window_top is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.top instead.
  page.window_top = 100
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:187: DeprecationWarning: window_left is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.left instead.
  page.window_left = 120
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:190: DeprecationWarning: window_min_width is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.min_width instead.
  page.window_min_width = 1000
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:191: DeprecationWarning: window_min_height is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.window.min_height instead.
  page.window_min_height = 600
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:278: DeprecationWarning: banner is deprecated in version 0.23.0 and will be removed in version 0.26.0. Use Page.overlay.append(banner) instead.
  page.banner = Banner(
/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/openandroidinstaller.py:66: DeprecationWarning: UserControl is deprecated since version 0.21.0 and will be removed in version 0.26.0. UserControl is deprecated. See https://flet.dev/docs/getting-started/custom-controls.
  super().__init__()
2024-11-23 17:16:55.855 | INFO     | __main__:to_next_view:175 - Confirmed and moved to next step.
2024-11-23 17:16:57.019 | INFO     | tooling:search_device:598 - Search devices on linux with /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/bin...
2024-11-23 17:16:57.094 | INFO     | tooling:search_device:635 - Found device code 'cedric'
2024-11-23 17:16:57.132 | INFO     | installer_config:_find_config_file:108 - Device code 'cedric' is supported by config '/home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/assets/configs/cedric.yaml'.
2024-11-23 17:16:57.139 | SUCCESS  | installer_config:validate_config:190 - Config is valid.
2024-11-23 17:16:57.140 | INFO     | installer_config:_load_config:136 - Loaded device config from /home/sirrgb/Downloads/git/openandroidinstaller/openandroidinstaller/assets/configs/cedric.yaml.
2024-11-23 17:16:57.140 | INFO     | installer_config:_load_config:138 - Config metadata: {'maintainer': 'Tobias Sterbak (tsterbak)', 'device_name': 'Motorola Moto G5', 'is_ab_device': False, 'device_code': 'cedric', 'supported_device_codes': ['cedric']}.
2024-11-23 17:16:58.025 | INFO     | app_state:toggle_flash_unlock_bootloader:86 - Skipping bootloader unlocking.
2024-11-23 17:16:58.887 | INFO     | app_state:toggle_flash_recovery:113 - Skipping flashing recovery.
2024-11-23 17:17:00.304 | INFO     | __main__:to_next_view:175 - Confirmed and moved to next step.
2024-11-23 17:17:04.078 | INFO     | views.requirements_view:enable_continue_button:306 - All requirements ticked. Allow to continue
2024-11-23 17:17:04.886 | INFO     | __main__:to_next_view:175 - Confirmed and moved to next step.
2024-11-23 17:17:04.886 | INFO     | utils:get_download_link:47 - Checking https://download.lineageos.org/api/v2/devices/cedric
2024-11-23 17:17:05.189 | INFO     | utils:get_download_link:56 - https://download.lineageos.org/api/v2/devices/cedric doesn't exist, status_code: 400

@SirRGB SirRGB force-pushed the dev branch 2 times, most recently from 346526e to 1515bfc Compare November 23, 2024 16:45
@tsterbak
Copy link
Member

Looks similar to issue #591.
I was not able to reproduce it so far.

@tsterbak tsterbak added the enhancement New feature or request label Nov 23, 2024
@SirRGB
Copy link
Contributor Author

SirRGB commented Nov 23, 2024

Well I can pick a file in the file picker, but openandroidinstaller doesnt seem to pick it up.

Edit: tried the 0.5.3 beta flatpak again and it works
seems to be unrelated to the issue you mentioned, but might be due to the updated dependencies?

@tsterbak
Copy link
Member

Maybe the behavior of the file picker (events) changed with the new flet version? 🤔

@SirRGB SirRGB force-pushed the dev branch 7 times, most recently from 3e4ace8 to 9dc2f7e Compare December 8, 2024 11:58
@SirRGB SirRGB changed the title DNM: Update Dependencies WIP: Update Dependencies Dec 10, 2024
@tsterbak tsterbak self-requested a review December 26, 2024 09:23
@tsterbak
Copy link
Member

tsterbak commented Dec 26, 2024

The latest docs of flet state "In Linux, the FilePicker control depends on Zenity when running Flet as an app. This is not a requirement when running Flet in a browser." (https://flet.dev/docs/controls/filepicker)

Not sure if this was a requirement before. Could this be the issue with the filepicker?

@tsterbak
Copy link
Member

Another thing I can think of: Could you try claiming you need to install a recovery? Maybe something in the control flow goes wrong there? 🤔

@SirRGB
Copy link
Contributor Author

SirRGB commented Dec 26, 2024

Iirc Ive tried picking a recovery too, but I assume Zenity is what makes the filepicker fail, I kinda overlooked that, Ill try later today.
Btw do you know why adding the loop argument fixes the tests? I think Ive also tried the values 0 and 2 and it always just worked? I have no clue what it does...

@tsterbak
Copy link
Member

Btw do you know why adding the loop argument fixes the tests? I think Ive also tried the values 0 and 2 and it always just worked? I have no clue what it does...

I have no idea 😅 it looks like something new in flet. Having it at 1 for now should be fine :)

@SirRGB
Copy link
Contributor Author

SirRGB commented Jan 2, 2025

Yea, tried to install zenity on the host machine and added it as dependency, manually imported it, just to be sure, yet no success so far.

@tsterbak
Copy link
Member

tsterbak commented Feb 7, 2025

Hey, I finally made some progress and found and fixed the issue. Now the updated dependecies are on the dev branch.
Not even sure why it worked before, the issue was in the code...

Signed-off-by: SirRGB <sirrgb@proton.me>
* RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.10'

Signed-off-by: SirRGB <sirrgb@proton.me>
Signed-off-by: SirRGB <sirrgb@proton.me>
@SirRGB SirRGB marked this pull request as ready for review February 9, 2025 13:10
@SirRGB SirRGB changed the title WIP: Update Dependencies fix python 3.12 support Feb 9, 2025
Copy link
Member

@tsterbak tsterbak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@tsterbak tsterbak merged commit 1f96597 into openandroidinstaller-dev:dev Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants