Traceback (most recent call last):
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 357, in
main()
~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 353, in main
interact()
~~~~~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 255, in interact
install_app(args)
~~~~~~~~~~~^^^^^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 95, in install_app
container.stop()
~~~~~~~~~~~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/tools/container.py", line 46, in stop
run(["waydroid", "container", "stop"])
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kawakamik/waydroid_script/waydroid_script/tools/helper.py", line 48, in run
raise subprocess.CalledProcessError(
...<3 lines>...
)
subprocess.CalledProcessError: Command '['waydroid', 'container', 'stop']' returned non-zero exit status 0.
cant find any solution to this
i runned " git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
python3 -m venv venv
source venv/bin/activate
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py" before, but it gave the same thing
when i run "sudo venv/bin/python3 main.py" it gives me this:
? Select Android version Android 11
? Please select an action Install
? Select apps ['gapps', 'libhoudini']
ERROR: [20:00:48] Stopping container
Traceback (most recent call last):
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 357, in <module>
main()
~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 353, in main
interact()
~~~~~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 255, in interact
install_app(args)
~~~~~~~~~~~^^^^^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 95, in install_app
container.stop()
~~~~~~~~~~~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/tools/container.py", line 46, in stop
run(["waydroid", "container", "stop"])
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kawakamik/waydroid_script/waydroid_script/tools/helper.py", line 48, in run
raise subprocess.CalledProcessError(
...<3 lines>...
)
subprocess.CalledProcessError: Command '['waydroid', 'container', 'stop']' returned non-zero exit status 0.
cant find any solution to this
i runned " git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
python3 -m venv venv
source venv/bin/activate
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py" before, but it gave the same thing
I had to do a fresh install, then I tried to do it one by one, and it worked. Now, installing multiple ones, works.
Maybe upon updating waydroid it caused the issues. Will see, trying to be wary of it now.
I had to do a fresh install, then I tried to do it one by one, and it worked. Now, installing multiple ones, works.
Maybe upon updating waydroid it caused the issues. Will see, trying to be wary of it now.
I encountered the same issue on Arch Linux. The root cause is that waydroid container stop now outputs logs (e.g., [11:03:07] Stopping container) to stderr even when it exits successfully (exit code 0).
The script's tools/helper.py incorrectly treats any output in stderr as a fatal error, ignoring the successful return code.
Fix:
Modify waydroid_script/tools/helper.py.
Find the run function (around line 48) and change the check condition:
# Old code (causes crash):# if result.stderr:# New code (fixes the issue):ifresult.returncode!=0andresult.stderr:
I encountered the same issue on Arch Linux. The root cause is that `waydroid container stop` now outputs logs (e.g., `[11:03:07] Stopping container`) to **stderr** even when it exits successfully (exit code 0).
The script's `tools/helper.py` incorrectly treats *any* output in stderr as a fatal error, ignoring the successful return code.
**Fix:**
Modify `waydroid_script/tools/helper.py`.
Find the `run` function (around line 48) and change the check condition:
```python
# Old code (causes crash):
# if result.stderr:
# New code (fixes the issue):
if result.returncode != 0 and result.stderr:
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
when i run "sudo venv/bin/python3 main.py" it gives me this:
? Select Android version Android 11
? Please select an action Install
? Select apps ['gapps', 'libhoudini']
ERROR: [20:00:48] Stopping container
Traceback (most recent call last):
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 357, in
main()
~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 353, in main
interact()
~~~~~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 255, in interact
install_app(args)
~~~~~~~~~~~^^^^^^
File "/home/kawakamik/waydroid_script/waydroid_script/main.py", line 95, in install_app
container.stop()
~~~~~~~~~~~~~~^^
File "/home/kawakamik/waydroid_script/waydroid_script/tools/container.py", line 46, in stop
run(["waydroid", "container", "stop"])
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kawakamik/waydroid_script/waydroid_script/tools/helper.py", line 48, in run
raise subprocess.CalledProcessError(
...<3 lines>...
)
subprocess.CalledProcessError: Command '['waydroid', 'container', 'stop']' returned non-zero exit status 0.
cant find any solution to this
i runned " git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
python3 -m venv venv
source venv/bin/activate
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py" before, but it gave the same thing
oh the OS is CachyOS x86_64
kernel: Linux 6.17.9-2-cachyos
Same Here :(
Same for me.
same here
I think manual patching is required. Is this repo dead? Because no updates.
i guess ill fork and update
here the Fixed script
I had to do a fresh install, then I tried to do it one by one, and it worked. Now, installing multiple ones, works.
Maybe upon updating waydroid it caused the issues. Will see, trying to be wary of it now.
I encountered the same issue on Arch Linux. The root cause is that
waydroid container stopnow outputs logs (e.g.,[11:03:07] Stopping container) to stderr even when it exits successfully (exit code 0).The script's
tools/helper.pyincorrectly treats any output in stderr as a fatal error, ignoring the successful return code.Fix:
Modify
waydroid_script/tools/helper.py.Find the
runfunction (around line 48) and change the check condition: