Skip to content

Installing with pip, SwiftDraw.o, no such file #84

Closed

Description

@rwebb

I tried installing with pip and pipx with the same results. I also installed with a custom build director and --no-clean to see what the build looks like. After the build, I see this error (same as all the installs I have tried):

clang: error: no such file or directory: 'deps/extensions/svg/SwiftDraw.o'

The error is after this command:
clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/rwebb/miniconda3/envs/attn-simulator-py310/lib -L/Users/rwebb/miniconda3/envs/attn-simulator-py310/lib -Wl,-rpath,/Users/rwebb/miniconda3/envs/attn-simulator-py310/lib -L/Users/rwebb/miniconda3/envs/attn-simulator-py310/lib build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/foundry/Vandercook.o build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/io/AnimatedGif.o build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/io/Pages.o build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/io/SysAdmin.o build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/io/Video.o build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/module.o build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/pathmatics/gpc.o build/temp.macosx-11.0-arm64-cpython-310/deps/extensions/pathmatics/pathmatics.o deps/extensions/svg/SwiftDraw.o -o build/lib.macosx-11.0-arm64-cpython-310/_plotdevice.cpython-310-darwin.so -framework AppKit -framework Foundation -framework Quartz -framework Security -framework AVFoundation -framework CoreMedia -framework CoreVideo -framework CoreText

After the error, looking in deps/extensions there is no svg directory.

I am on macOS 15.7.1 with the latest Xcode and Xcode command line tools: 26.1.1

Activity

  1. rwebb commented on Nov 17, 2025

    @rwebb
    Author

    I haven't found any useful clues online on how to solve this issue.

  2. rwebb commented on Nov 18, 2025

    @rwebb
    Author

    There is a SwiftDraw_Module.o in the location that SwiftDraw.o is not found in initially. Should the SwiftDraw_Module.o be used instead?

  3. rwebb commented on Nov 18, 2025

    @rwebb
    Author

    Ah, running the setup.py from the current main works: pip install pyobjc; python setup.py dev

  4. fish2000 commented on Nov 5, 2026

    @fish2000

    I still have this issue. Commenting out one line in deps/extensions/svg/Makefile seems to fix everything:

    «develop»:MacBookPro:plotdevice[(no branch) •]$ python setup.py build
    running build
    running build_py
    copying plotdevice/run/__init__.py -> build/lib.macosx-27.0-arm64-cpython-315/plotdevice/run
    running build_ext
    cd SwiftDraw && swift build -c release --target SwiftDraw --arch arm64 --arch x86_64
    Building for production...
    [141 / 153] 
    ### Many PyObjC depreciation warnings omitted ###
    Build complete! (13.98 sec)
    cp SwiftDraw/.build/apple/Products/Release/SwiftDraw*.o SwiftDraw.o
    cp: SwiftDraw/.build/apple/Products/Release/SwiftDraw*.o: No such file or directory
    make: *** [SwiftDraw.o] Error 1
    running build_scripts
    «develop»:MacBookPro:plotdevice[(no branch) •]$

    … if the line with the offending cp command is commented out, the setup.py build and related commands run cleanly.

  5. added a commit that references this issue on Nov 9, 2026
    698fb24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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