You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: extractall() got an unexpected keyword argument 'filter' on stock macOS (Python 3.9.6) #1
Porting a game with the GUI app (release DMG) fails with:
TypeError: extractall() got an unexpected keyword argument 'filter'
Cause
Engine.swift hard-codes /usr/bin/python3, which on stock macOS is Apple's Python 3.9.6. recomp/gamenetworkingsockets.py:78 calls:
t.extractall(src, filter="data")
The filter= argument only exists in Python 3.12+ (and later 3.8–3.11 patch releases), so it fails on the system Python. Users can't upgrade /usr/bin/python3 (it's part of the protected system volume), and the app ignores other Python installs, so there's no fix on the user side short of editing the app bundle.
Suggested fix
Only pass filter when it's supported:
if hasattr(tarfile, "data_filter"):
t.extractall(src, filter="data")
else:
t.extractall(src)
It's also worth checking the rest of the engine for other 3.10+ features, or letting users choose a different Python path (env var or setting).
Hi, thanks for the issue, i will look into it on friday. (if i don't find a little time to check it today)
i think not relying on macos old python version is the key. maybe shipping the code with the latest pythin version would be better, what do you think ?
Activity
TheSTouch commentedon Oct 29, 2026
Hi, thanks for the issue, i will look into it on friday. (if i don't find a little time to check it today)
i think not relying on macos old python version is the key. maybe shipping the code with the latest pythin version would be better, what do you think ?
i'll have a look and make a PR for that issue.
README: warn about macOS's own Python, recommend 3.12+, Settings > Py…
TheSTouch commentedon Oct 29, 2026
I merged the fix and released a new mac app package. feel free to reopen this issue if you still encounter some problemes on that subject :)
settings windows will need some visual tweaks, but you can now target the version you want :)
Have a good day, thanks for the bug report