RPi-Distro / rpi-source

Raspberry Pi kernel source installer
MIT License
140 stars 39 forks source link

TypeError: cannot use a string pattern on a bytes-like object #18

Closed will127534 closed 1 year ago

will127534 commented 1 year ago

Caused by this line: https://github.com/RPi-Distro/rpi-source/blob/5ede92310292d10184890c1c1623ee28bf9db6b3/rpi-source#L261

Specifically the line needs to change to fw_rev = re.search(r'firmware as of ([0-9a-fA-F]+)', debian_changelog.decode('utf-8'))