Waydroid won't start (issue with escape sequence)

This is the output:
waydroid show-full-ui
/usr/lib/waydroid/tools/helpers/net.py:34: SyntaxWarning: invalid escape sequence '\d'
return re.search("(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
[22:58:11] Starting waydroid session
[22:58:11] WayDroid container is not listening
waydroid show-full-ui
/usr/lib/waydroid/tools/helpers/net.py:34: SyntaxWarning: invalid escape sequence '\d'
return re.search("(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
[22:58:11] Starting waydroid session
[22:58:11] WayDroid container is not listening
I'm not sure what's causing that, tried on zsh (my usual shell), fish, and bash. The net.py has the following output:
cat /usr/lib/waydroid/tools/helpers/net.py
# Copyright 2023 Maximilian Wende
# SPDX-License-Identifier: GPL-3.0-or-later
from shutil import which
import tools.helpers.run
import logging
import re

def adb_connect(args):
"""
Creates an android debugging connection from the host system to the
Waydroid device, if ADB is found on the host system and the device
has booted.
"""
# Check if adb exists on the system.
if not which("adb"):
return

# Start and 'warm up' the adb server
tools.helpers.run.user(args, ["adb", "start-server"])

ip = get_device_ip_address()
if not ip:
return

tools.helpers.run.user(args, ["adb", "connect", ip])
logging.info("Established ADB connection to Waydroid device at {}.".format(ip))

def get_device_ip_address():
# The IP address is queried from the DHCP lease file.
lease_file = "/var/lib/misc/dnsmasq.waydroid0.leases"

try:
with open(lease_file) as f:
return re.search("(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
except:
pass%
cat /usr/lib/waydroid/tools/helpers/net.py
# Copyright 2023 Maximilian Wende
# SPDX-License-Identifier: GPL-3.0-or-later
from shutil import which
import tools.helpers.run
import logging
import re

def adb_connect(args):
"""
Creates an android debugging connection from the host system to the
Waydroid device, if ADB is found on the host system and the device
has booted.
"""
# Check if adb exists on the system.
if not which("adb"):
return

# Start and 'warm up' the adb server
tools.helpers.run.user(args, ["adb", "start-server"])

ip = get_device_ip_address()
if not ip:
return

tools.helpers.run.user(args, ["adb", "connect", ip])
logging.info("Established ADB connection to Waydroid device at {}.".format(ip))

def get_device_ip_address():
# The IP address is queried from the DHCP lease file.
lease_file = "/var/lib/misc/dnsmasq.waydroid0.leases"

try:
with open(lease_file) as f:
return re.search("(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
except:
pass%
6 Replies
Feng Lengshun
Feng Lengshun7mo ago
Could this be an upstream issue or maybe an issue with my env/shell configs?
Madiator2011
Madiator20117mo ago
With version of android you try to run? I think for now only Android 11 works
Feng Lengshun
Feng Lengshun7mo ago
I don't know? I was trying to do wayland init
Andrew Baker
Andrew Baker6mo ago
Just tried running
ujust wayland-init
ujust wayland-init
and got the same thing.
andrew@fedora:~/Downloads$ ujust init-waydroid
[sudo] password for andrew:
/usr/lib/waydroid/tools/helpers/net.py:34: SyntaxWarning: invalid escape sequence '\d'
return re.search("(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
[07:58:59] Downloading https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_x86_64/lineage-18.1-20231209-VANILLA-waydroid_x86_64-system.zip/download
[Downloading] 767.3 MB/767.37 MB 6919.83 kbps(approx.)[07:59:54] Validating system image
[07:59:55] Extracting to /var/lib/waydroid/images
[08:00:01] Downloading https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_x86_64/lineage-18.1-20231209-MAINLINE-waydroid_x86_64-vendor.zip/download
[Downloading] 180.22 MB/180.61 MB 25684.05 kbps(approx.)[08:00:13] Validating vendor image
[08:00:13] Extracting to /var/lib/waydroid/images
andrew@fedora:~/Downloads$ ujust init-waydroid
[sudo] password for andrew:
/usr/lib/waydroid/tools/helpers/net.py:34: SyntaxWarning: invalid escape sequence '\d'
return re.search("(\d{1,3}\.){3}\d{1,3}\s", f.read()).group().strip()
[07:58:59] Downloading https://sourceforge.net/projects/waydroid/files/images/system/lineage/waydroid_x86_64/lineage-18.1-20231209-VANILLA-waydroid_x86_64-system.zip/download
[Downloading] 767.3 MB/767.37 MB 6919.83 kbps(approx.)[07:59:54] Validating system image
[07:59:55] Extracting to /var/lib/waydroid/images
[08:00:01] Downloading https://sourceforge.net/projects/waydroid/files/images/vendor/waydroid_x86_64/lineage-18.1-20231209-MAINLINE-waydroid_x86_64-vendor.zip/download
[Downloading] 180.22 MB/180.61 MB 25684.05 kbps(approx.)[08:00:13] Validating vendor image
[08:00:13] Extracting to /var/lib/waydroid/images
It goes off to download LineageOS 18.1
Andrew Baker
Andrew Baker6mo ago
Launches okay though.
No description
Andrew Baker
Andrew Baker6mo ago
That regex is borked Didn't match on a IP address either
No description