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

Installing fails #212

Closed
HandSomeNissan opened this issue Jan 2, 2025 · 12 comments
Closed

Installing fails #212

HandSomeNissan opened this issue Jan 2, 2025 · 12 comments

Comments

@HandSomeNissan
Copy link

HandSomeNissan commented Jan 2, 2025

This is the error, i looked up in the issues and it seems most of the issues are from having another python on the steam deck but i dont have any, not sure what could be causing this: Downloading waydroid image from sourceforge.
This can take a few seconds to a few minutes depending on the internet connection and the speed of the sourceforge mirror.
Sometimes it connects to a slow sourceforge mirror and the downloads are slow -. This is beyond my control!
If the downloads are slow due to a slow sourceforge mirror - cancel the script (CTL-C) and run it again.
Traceback (most recent call last):
File "/usr/bin/waydroid", line 7, in
import tools
File "/usr/lib/waydroid/tools/init.py", line 8, in
import dbus.mainloop.glib
ModuleNotFoundError: No module named 'dbus'
Waydroid did not initialize correctly.
This could be a hash mismatch / corrupted download.
This could also be a python issue. Attach this screenshot when filing a bug report!
Output of whereis python - python: /usr/bin/python
Output of which python - /usr/bin/python
Output of python version - Python 3.11.7
Something went wrong! Performing cleanup. Run the script again to install waydroid.
Cleanup completed. Please open an issue on the GitHub repo or leave a comment on the YT channel - 10MinuteSteamDeckGamer.

In addition, it said something about gpg agent being outdated by one version or something. SteamOS is also on the latest stable version.

@HandSomeNissan
Copy link
Author

Full error: SteamOS Waydroid Installer Script by ryanrudolf
https://github.com/ryanrudolfoba/SteamOS-Waydroid-Installer
YT - 10MinuteSteamDeckGamer
Script is running in Desktop Mode.
Checking if kernel is supported.
SteamOS 3.6.20 - kernel version 6.5.0-valve22-1-neptune-65 is supported. Proceed to next step.
Checking if home partition has enough free space
home partition has 103048512 free space.
home partition has enough free space.
Checking if var partition has enough free space
var partition has 201381 free space.
var partition has enough free space.
Please enter current sudo password:
Checking if the sudo password is correct.
Sudo password is good!
Cloning casualsnek repo.
This can take a few minutes depending on the speed of the internet connection and if github is having issues.
If the git clone is slow - cancel the script (CTL-C) and run it again.
Casualsnek repo has been successfully cloned!
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: Note: Outdated servers may lack important security fixes.
gpg: Note: Use the command "gpgconf --kill all" to restart them.
==> Appending keys from archlinux.gpg...
==> Appending keys from holo.gpg...
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
gpg: WARNING: server 'gpg-agent' is older than us (2.4.4 < 2.4.5)
==> Updating trust database...
gpg: next trustdb check due at 2025-01-25
pacman keyring has been initialized!
Binder kernel module not found or not up to date! Installing binder!
Binder kernel module has been installed!
waydroid and cage has been installed!
Downloading waydroid image from sourceforge.
This can take a few seconds to a few minutes depending on the internet connection and the speed of the sourceforge mirror.
Sometimes it connects to a slow sourceforge mirror and the downloads are slow -. This is beyond my control!
If the downloads are slow due to a slow sourceforge mirror - cancel the script (CTL-C) and run it again.
Traceback (most recent call last):
File "/usr/bin/waydroid", line 7, in
import tools
File "/usr/lib/waydroid/tools/init.py", line 8, in
import dbus.mainloop.glib
ModuleNotFoundError: No module named 'dbus'
Waydroid did not initialize correctly.
This could be a hash mismatch / corrupted download.
This could also be a python issue. Attach this screenshot when filing a bug report!
Output of whereis python - python: /usr/bin/python
Output of which python - /usr/bin/python
Output of python version - Python 3.11.7
Something went wrong! Performing cleanup. Run the script again to install waydroid.
Cleanup completed. Please open an issue on the GitHub repo or leave a comment on the YT channel - 10MinuteSteamDeckGamer.

@agilgur5
Copy link
Contributor

agilgur5 commented Jan 6, 2025

ModuleNotFoundError: No module named 'dbus'

Possibly a duplicate of #165 (and #187)?

@HandSomeNissan
Copy link
Author

Possibly a duplicate of #165 (and #187)?

Maybe but I still don't know how to fix it. Don't really know what to do.

@ryanrudolfoba
Copy link
Owner

This is not an issue related to the script. This points out to the python and dependencies installed on your system.

Unfortunately I dont have a fix for this as I havent encountered this eversince I started writing this waydroid installer script.

@agilgur5
Copy link
Contributor

agilgur5 commented Jan 7, 2025

For reference, all the Python issues can be resolved upstream by casualsnek/waydroid_script#204.

It seems like casualsnek hasn't made a commit in a year though (see also casualsnek/waydroid_script#208). I'm considering forking it to update it and improve it as such, but the Waydroid ecosystem has had a lot of unmaintained tooling unfortunately (like Anbox before it. See also waydroid/waydroid#1553), so I'm wondering if that's even worthwhile/manageable long-term 😕

@ryanrudolfoba
Copy link
Owner

For reference, all the Python issues can be resolved upstream by casualsnek/waydroid_script#204.

It seems like casualsnek hasn't made a commit in a year though (see also casualsnek/waydroid_script#208). I'm considering forking it to update it and improve it as such, but the Waydroid ecosystem has had a lot of unmaintained tooling unfortunately (like Anbox before it. See also waydroid/waydroid#1553), so I'm wondering if that's even worthwhile/manageable long-term 😕

For the OP his error is way before casualsnek script is called. His error happens during waydroid initialization - python errors out and waydroid is not able to initialize and grab the image from sourceforge. Script bails out and performs cleanup.

@agilgur5
Copy link
Contributor

agilgur5 commented Jan 7, 2025

Oh is it? My bad, I misread the log, I thought that was in the casualsnek's script's Python code and saw the log Casualsnek repo has been successfully cloned! before the error.

I see now that the casualsnek repo isn't used till later and that this specific error ends up happening during waydroid init. Thanks for the correction Ryan! Let me know if I got/get anything else wrong!

That does mean that the casualsnek clone could be moved later down to be a bit more efficient in the error case (as in, don't download it until waydroid init succeeded).
And that the error is upstream in Waydroid itself, meaning that waydroid init is relying on a Python dep being properly installed by the user instead of packaging it itself. Looks like this is caused by waydroid/waydroid#915 then

@ryanrudolfoba
Copy link
Owner

Yes that sounds about right.

@HandSomeNissan
Copy link
Author

Well, i guess ill try to factory reset my deck and see if that works

@agilgur5
Copy link
Contributor

agilgur5 commented Jan 11, 2025

Well, i guess ill try to factory reset my deck and see if that works

@HandSomeNissan you can try to pip install dbus-python per the upstream issue, but pacman should auto-install it from the AUR manifest as it's in the deps.
And since you don't have multiple Python envs (at least the script didn't detect it), I wouldn't think it was installed elsewhere, so not really sure why your Deck isn't finding it 😕

Yes that sounds about right.

Thanks for the confirmation Ryan!
Btw, if you want, you can give me collaborator access and I can help triage, format, organize, label, re-title, etc issues I know the answers to as well as help code review (like I am in #220).

@HandSomeNissan
Copy link
Author

@HandSomeNissan you can try to pip install dbus-python per the upstream issue, but pacman should auto-install it from the AUR manifest as it's in the deps. And since you don't have multiple Python envs (at least the script didn't detect it), I wouldn't think it was installed elsewhere, so not really sure why your Deck isn't finding it 😕

Seems like theres no pip command? isnt Python preinstalled on the deck though, so there should be pip?

@agilgur5
Copy link
Contributor

agilgur5 commented Jan 16, 2025

Yea I would think so in most cases 👀 And you do have Python installed per your logs.

You can try python -m pip install dbus-python instead if pip isn't on $PATH; that'll use the current Python executable's pip module more directly.

If that doesn't work either, can also try installing pip with python -m ensurepip --upgrade per the first link

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

3 participants