Skip to content

Parsing does not work with python3.14/OSX 26.2 #110

@femaref

Description

@femaref

The problem manifests itself as symbols not being found (I'm using sweetpad so the error was actually completely hidden).

ERROR:server:observe tick failed (1/3): dlopen(/opt/homebrew/Cellar/python@3.14/3.14.4/Frameworks/Python.framework/Versions/3.14/lib/python3.14/lib-dynload/pyexpat.cpython-314-darwin.so, 0x0002): Symbol not found: _XML_SetAllocTrackerActivationThreshold
  Referenced from: <1AAB1AFF-0B6A-3B67-86F5-A72CB69F8B1B> /opt/homebrew/Cellar/python@3.14/3.14.4/Frameworks/Python.framework/Versions/3.14/lib/python3.14/lib-dynload/pyexpat.cpython-314-darwin.so
  Expected in:     <4D62FA9D-D86A-3DD0-98F2-C6D0718849E8> /usr/lib/libexpat.1.dylib

Referencing https://github.com/orgs/Homebrew/discussions/6798#discussioncomment-16557862

Immediate fix would be to upgrade to 26.3.

Workaround

I've found the following to work around the issue. Install expat via homebrew

brew install expat

maybe also reinstall python, but i'm not sure about the effect. brew reinstall python@3.14

I've then adjusted the script (/opt/homebrew/bin/xcode-build-server) by changing the shebang to force homebrew python3 as well adding the expat lib folder to the library search path.

#!/usr/bin/env DYLD_LIBRARY_PATH=/opt/homebrew/opt/expat/lib /opt/homebrew/bin/python3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions