Skip to content

TypeError: extractall() got an unexpected keyword argument 'filter' on stock macOS (Python 3.9.6) #1

Closed

Description

@pdkkid

Problem

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).

Environment

  • Recomp Helper: release DMG (version: 0.5.0)
  • macOS: 27.2
  • /usr/bin/python3 --version: Python 3.9.6

Activity

  1. TheSTouch commented on Oct 29, 2026

    @TheSTouch
    Owner

    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.

  2. self-assigned this
    on Oct 29, 2026
  3. TheSTouch commented on Oct 29, 2026

    @TheSTouch
    Owner

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions