You are not logged in.

#1 2024-01-08 21:22:44

loflorem
Member
Registered: 2022-11-28
Posts: 9

waydroid init does not start due to ModuleNotFoundError

Hello,

I am going thought the Waydroid documentation here: https://wiki.archlinux.org/title/Waydroid

I am using linux-zen kernel and I could successfully install the AUR package and related dependencies needed during the process (including here in case they are relevant):

- lxc (Arch repository)
- libglibutil (AUR)
- libgbinder (AUR)
- Cython (pip)
- python-gbinder (AUR)
- waydroid (AUR)

However, when I run

 waydroid init 

The following python-like error appears

Traceback (most recent call last):
  File "/usr/bin/waydroid", line 6, in <module>
    import tools
  File "/usr/lib/waydroid/tools/__init__.py", line 8, in <module>
    import dbus.mainloop.glib
ModuleNotFoundError: No module named 'dbus'

Is there any step further that I should do to install Waydroid, or would you have any tip to investigate it further?

Thanks in advance.

Last edited by loflorem (2024-01-08 21:23:53)

Offline

#2 2024-01-08 21:28:26

dogknowsnx
Member
Registered: 2021-04-12
Posts: 648

Re: waydroid init does not start due to ModuleNotFoundError

How exactly did you go about installing 'waydroid'? Your list of deps does not account for dbus-python...

EDIT: Did you run

waydroid init

as root?

Last edited by dogknowsnx (2024-01-08 21:47:24)


RI - Rest your Eyes and Self

"We are eternal, all this pain is an illusion" - Maynard James Keenan

Offline

#3 2024-01-08 21:33:38

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,895
Website

Re: waydroid init does not start due to ModuleNotFoundError

Mod note: Moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#4 2024-01-09 23:03:31

loflorem
Member
Registered: 2022-11-28
Posts: 9

Re: waydroid init does not start due to ModuleNotFoundError

@dogknowsnx I have run with root

I installed the packages as follows:

From the arch repository with pacman -Syu
From the AUR, by cloning the git repository and running makepkg -sirc
From pip using pip install

After your suggestion, I installed via pip install the dbus-python. Now, the error that appears when I run waydroid init as root is "ModuleNotFoundError: No module named 'gbinder'". Here the full stack trace in case that helps:

Traceback (most recent call last):
  File "/usr/bin/waydroid", line 6, in <module>
    import tools
  File "/usr/lib/waydroid/tools/__init__.py", line 12, in <module>
    from . import actions
  File "/usr/lib/waydroid/tools/actions/__init__.py", line 3, in <module>
    from tools.actions.initializer import init, wait_for_init, remote_init_client
  File "/usr/lib/waydroid/tools/actions/initializer.py", line 5, in <module>
    from tools import helpers
  File "/usr/lib/waydroid/tools/helpers/__init__.py", line 5, in <module>
    import tools.helpers.props
  File "/usr/lib/waydroid/tools/helpers/props.py", line 8, in <module>
    from tools.interfaces import IPlatform
  File "/usr/lib/waydroid/tools/interfaces/IPlatform.py", line 1, in <module>
    import gbinder
ModuleNotFoundError: No module named 'gbinder'

However, I already installed `python-gbinder' (AUR) with `makepkg -sirc' from here https://aur.archlinux.org/packages/python-gbinder.

Offline

#5 2024-01-09 23:48:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,593

Re: waydroid init does not start due to ModuleNotFoundError

What does `type -a python` give you?

Offline

#6 2024-01-10 23:29:11

loflorem
Member
Registered: 2022-11-28
Posts: 9

Re: waydroid init does not start due to ModuleNotFoundError

`type -a python' gives the following (both for root and my user)

python is /home/myuser/.pyenv/shims/python
python is /usr/bin/python

Last edited by loflorem (2024-01-10 23:30:10)

Offline

#7 2024-01-11 00:01:51

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,593

Re: waydroid init does not start due to ModuleNotFoundError

So you're overriding the system python, which is why it can't find things that are installed. You either need to use the system python or manage the programs and dependencies yourself outside of pacman.

Offline

Board footer

Powered by FluxBB