waydroid icon indicating copy to clipboard operation
waydroid copied to clipboard

mine is also gbinder installed in the 3.10 directory. But I don't know how to install it in the 3.11 directory.

Open tianyi725 opened this issue 2 years ago • 7 comments

it's can't find the module in python 3.11 site-packages directory because it's have been build for python 3.10 before, you just need do rebuild and reinstall python-gbinder against 3.11 to make ir works again on your current update system, eg. you use yay as your aur helper program, run yay -S python-gbinder

package files list before rebuild and reinstall

❯ pacman -Ql python-gbinder
python-gbinder /usr/
python-gbinder /usr/lib/
python-gbinder /usr/lib/python3.10/
python-gbinder /usr/lib/python3.10/site-packages/
python-gbinder /usr/lib/python3.10/site-packages/gbinder.cpython-310-x86_64-linux-gnu.so
python-gbinder /usr/lib/python3.10/site-packages/gbinder_python-1.1.1-py3.10.egg-info/
python-gbinder /usr/lib/python3.10/site-packages/gbinder_python-1.1.1-py3.10.egg-info/PKG-INFO
python-gbinder /usr/lib/python3.10/site-packages/gbinder_python-1.1.1-py3.10.egg-info/SOURCES.txt
python-gbinder /usr/lib/python3.10/site-packages/gbinder_python-1.1.1-py3.10.egg-info/dependency_links.txt
python-gbinder /usr/lib/python3.10/site-packages/gbinder_python-1.1.1-py3.10.egg-info/top_level.txt

after

❯ pacman -Ql python-gbinder
python-gbinder /usr/
python-gbinder /usr/lib/
python-gbinder /usr/lib/python3.11/
python-gbinder /usr/lib/python3.11/site-packages/
python-gbinder /usr/lib/python3.11/site-packages/gbinder.cpython-311-x86_64-linux-gnu.so
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.1-py3.11.egg-info/
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.1-py3.11.egg-info/PKG-INFO
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.1-py3.11.egg-info/SOURCES.txt
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.1-py3.11.egg-info/dependency_links.txt
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.1-py3.11.egg-info/top_level.txt

fyi, packages that you've installed from aur would not automatally updated when you do update using sudo pacman -Syu you need use aur helper yay -Syu also you can check the others aur packages that need to be updated too related to python version update pacman -Qqo /usr/lib/python3.10/ or you can pass the to yay to install it simultaneously yay -S $(pacman -Qqo /usr/lib/python3.10/)

Originally posted by @cniw in https://github.com/waydroid/waydroid/issues/884#issuecomment-1536161653

Hello, mine is also gbinder installed in the 3.10 directory.

But I don't know how to install it in the 3.11 directory.

Can you help me with that? thankyou

I have tried reinstalling by following the steps here https://github.com/waydroid/gbinder-python

Still no good

I put the command:

python setup.py build_ext --inplace --cython python setup.py sdist --cython

Replace with:

python3 setup.py build_ext --inplace --cython python3 setup.py sdist --cython

Neither can.

tianyi725 avatar Jun 17 '23 12:06 tianyi725

@cniw Can you help me? thanks

tianyi725 avatar Jun 17 '23 13:06 tianyi725

I found a problem:

I installed waydroid when I used this line command: yay -S waydroid

You will see that python-gbinder has been automatically installed.

But it installs itself into 3.10's directory.

I don't know how to change to 3.11 directory

help me thankyou

tianyi725 avatar Jun 17 '23 13:06 tianyi725

Still no good

I put the command:

python setup.py build_ext --inplace --cython python setup.py sdist --cython

Replace with:

python3 setup.py build_ext --inplace --cython python3 setup.py sdist --cython

Neither can.

Don't install manually, use your package manager to keep your system save see my last comment to install it via package manager (yay=>makepkg=>pacman) https://github.com/waydroid/waydroid/issues/344#issuecomment-1537462687

cniw avatar Jun 17 '23 15:06 cniw

Still no good I put the command: python setup.py build_ext --inplace --cython python setup.py sdist --cython Replace with: python3 setup.py build_ext --inplace --cython python3 setup.py sdist --cython Neither can.

Don't install manually, use your package manager to keep your system save see my last comment to install it via package manager (yay=>makepkg=>pacman) #344 (comment)

Thank you for your reply

For some reason, with those two commands, there is no gbinder error.

But, I don't know where the problem is, there's always this error: Failed to get service waydroidplatform I've installed waydroid countless times, but I always end up with this problem. I really do not understand what is the reason? Can you help me? Can you tell me what this is about? It's driving me crazy.

waydroid session start

[oo@oo-pc ~]$ waydroid session start
[21:37:59] Failed to start Clipboard manager service, check logs
[gbinder] Service manager /dev/binder has appeared

waydroid status

[oo@oo-pc ~]$ waydroid status
Session:	RUNNING
Container:	RUNNING
Vendor type:	MAINLINE
Session user:	oo(1000)
Wayland display:	wayland-0

waydroid show-full-ui

[oo@oo-pc ~]$ waydroid show-full-ui
[21:38:19] Failed to get service waydroidplatform, trying again...
[21:38:20] Failed to get service waydroidplatform, trying again...
[21:38:21] Failed to get service waydroidplatform, trying again...
[21:38:22] Failed to get service waydroidplatform, trying again...
[21:38:23] Failed to get service waydroidplatform, trying again...
[21:38:24] Failed to get service waydroidplatform, trying again...
[21:38:25] Failed to get service waydroidplatform, trying again...
[21:38:26] Failed to get service waydroidplatform, trying again...

tianyi725 avatar Jun 18 '23 14:06 tianyi725

Hi, I also installed waydroid from AUR, but I'm unamble to run it because of python-gbinder error. The package is installed, reinstalled and rebuilt multiple times, also I checked my Python version running python --version and also gbinder's using pacman -Ql python-gbinder and they are the same, 3.11.

python --version
Python 3.11.7
pacman -Ql python-gbinder  
python-gbinder /usr/  
python-gbinder /usr/lib/  
python-gbinder /usr/lib/python3.11/  
python-gbinder /usr/lib/python3.11/site-packages/  
python-gbinder /usr/lib/python3.11/site-packages/gbinder.cpython-311-x86_64-linux-gnu.so  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/PKG-INFO  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/SOURCES.txt  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/dependency_links.txt  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/top_level.txt

I really don't know why Waydroid doesn't see gbinder, can someone help me?

PS: I'm able to start Waydroid from the application, but with the error above I can't access the shell and then activate the Google certificate.

alessandro-vulcu-code avatar Apr 15 '24 09:04 alessandro-vulcu-code

Hi, I also installed waydroid from AUR, but I'm unamble to run it because of python-gbinder error. The package is installed, reinstalled and rebuilt multiple times, also I checked my Python version running python --version and also gbinder's using pacman -Ql python-gbinder and they are the same, 3.11.

python --version
Python 3.11.7
pacman -Ql python-gbinder  
python-gbinder /usr/  
python-gbinder /usr/lib/  
python-gbinder /usr/lib/python3.11/  
python-gbinder /usr/lib/python3.11/site-packages/  
python-gbinder /usr/lib/python3.11/site-packages/gbinder.cpython-311-x86_64-linux-gnu.so  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/PKG-INFO  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/SOURCES.txt  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/dependency_links.txt  
python-gbinder /usr/lib/python3.11/site-packages/gbinder_python-1.1.2-py3.11.egg-info/top_level.txt

I really don't know why Waydroid doesn't see gbinder, can someone help me?

PS: I'm able to start Waydroid from the application, but with the error above I can't access the shell and then activate the Google certificate.

It was all a tricky upgrade!

Try rebuilding the AUR python-gbinder package with the flag --rebuild. Like this:

[package manager] -S --rebuild python-gbinder 

And then editing the .PKGBUILD to include the desired python binary. For me the new major version was Python 3.12.3, but only Python 3.11.x had python-gbinder installed. You'll want to replace the lines containing python3.11 to python3.12 in case you have installed it now or simply want to check if the upgraded version works instead. At least with Paru it's necessary to install a command-line file manager (pacman -S vifm suffices it) to choose the files to be edit upon building, and that will inherit the $EDITOR shell variable as the text editor to be used in editing.

lorods avatar Apr 29 '24 21:04 lorods

How do I edit the .PKGBUILD? What line I should add to the file? Could you please explain better what I have to do? Thanks 🫶🏻

alessandro-vulcu-code avatar May 02 '24 07:05 alessandro-vulcu-code

Hello All, I just had the same problem. I also did some yay rebuilds of python-gbinder based on the former discussion.

In the end, what fixed it for me, was to do the AUR system upgrade, as the pacman systemupgrade destroyed the dependency not taking into account the AUR :

(sudo) yay -Syu

After that, waydroid started normally again without reboot.

AlpCentaur avatar May 18 '24 12:05 AlpCentaur