Skip to content

Wrong architecture bustools binary bundled on Apple Silicon (M1/M2) → Bad CPU type in executable #298

@BenjaminDEMAILLE

Description

@BenjaminDEMAILLE

Description

On Apple Silicon Macs (M1/M2), the bundled bustools binary shipped with kb-python is x86_64, which fails to run natively:

$ kb info
OSError: [Errno 86] Bad CPU type in executable: ‘/opt/homebrew/lib/python3.12/site-packages/kb_python/bins/darwin/m1/bustools/bustools’

Steps to Reproduce

  1. Install kb-python via pip on macOS 14 (Apple Silicon, M1/M2/M3).
  2. Run kb info.

Expected Behavior

kb info should display version info using an arm64 bustools binary.

Actual Behavior

It crashes with Bad CPU type in executable because the bundled binary is x86_64.

Evidence

$ file /opt/homebrew/lib/python3.12/site-packages/kb_python/bins/darwin/m1/bustools/bustools
…: Mach-O 64-bit executable x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions