| Summary: | [GTK] update-webkit-flatpak doesn't work in Python3 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alice Mikhaylenko <alicem> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | bugs-noreply, pnormand |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Fedora 32, Python 3.8.2. flatpakutils is python2-only currently. Then it should use `python2` and not `python` which points to Python 3 here. Well, actually, with Python3.8.2 here the SDK installs fine:
python3.8 Tools/Scripts/update-webkit-flatpak
Adding repo webkit-sdk
Updating Flatpak Release environment
Adding repo flathub
Installing from webkit-sdk org.webkit.Platform x86_64 0.2
Looking for matches…
ID Branch Op Remote Download
1. [✓] org.webkit.Platform.Locale 0.2 i webkit-sdk 17.5 kB / 1.3 GB
2. [✓] org.webkit.Platform 0.2 i webkit-sdk 357.8 MB / 1.2 GB
Installation complete.
Installing from webkit-sdk org.webkit.Sdk x86_64 0.2
Looking for matches…
ID Branch Op Remote Download
1. [✓] org.webkit.Sdk.Locale 0.2 i webkit-sdk 17.5 kB / 1.3 GB
2. [✓] org.webkit.Sdk 0.2 i webkit-sdk 486.7 MB / 2.3 GB
Installation complete.
Installing from flathub org.freedesktop.Platform.GL.default x86_64 19.08
Looking for matches…
ID Branch Op Remote Download
1. [✓] org.freedesktop.Platform.GL.default 19.08 i flathub 94.4 MB / 94.9 MB
Installation complete.
Umm, I pulled and it works now. So apparently it was fixed and I had an old checkout. Wait, sorry, wrong issue /o\ Actually this too, yes. Sorry :( |
``` ...rojects/WebKit/Tools/Scripts ./update-webkit-flatpak Updating Flatpak Release environment Traceback (most recent call last): File "./update-webkit-flatpak", line 28, in <module> WebkitFlatpak.load_from_args(["--update"] + sys.argv[1:]).run() File "../../Tools/flatpak/flatpakutils.py", line 770, in run return self.main() File "../../Tools/flatpak/flatpakutils.py", line 766, in main return self.setup_dev_env() File "../../Tools/flatpak/flatpakutils.py", line 796, in setup_dev_env self.setup_icecc() File "../../Tools/flatpak/flatpakutils.py", line 790, in setup_icecc icc_version_filename, = re.findall(r'.*creating (.*)', tmpfile.read()) File "/usr/lib64/python3.8/re.py", line 239, in findall return _compile(pattern, flags).findall(string) TypeError: cannot use a string pattern on a bytes-like object ```