Skip to content

rpaframework dependencies fail to build on MacOS 15.5 on Apple Silicon #1223

@dg-io

Description

@dg-io

Is there a way to install rpaframework on MacOS Sequoia 15.5 on Apple Silicon?

I'm trying to install rpaframework (30.0.2), however it is dependent on an old pyobjc-core (below 10.0). Note that the latest version of pyobjc-core builds just fine, however rpaframework doesn't seem able to use it, while the latest version that is compatible with rpaframework (9.2) no longer builds due to the use of deprecated APIs.

Here are the key bits of what I see with:

pip install rpaframework

PIP STDOUT
----------
Collecting rpaframework
  Using cached rpaframework-30.0.2-py3-none-any.whl.metadata (32 kB)
...
Collecting pyobjc-core<10.0,>=8.0 (from pynput-robocorp-fork<6.0.0,>=5.0.0->rpaframework)
  Using cached pyobjc-core-9.2.tar.gz (923 kB)

which reports:

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × Building wheel for pyobjc-core (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [360 lines of output]
      <string>:17: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resou
rces package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
      <string>:210: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
      !!

As well as child dependency:

      building 'Quartz.CoreGraphics._coregraphics' extension
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -I/Users/dan/.local/pipx/venvs/rpaframework/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c Modules/_coregraphics.m -o build/temp.macosx-15.0-arm64-cpython-313/Modules/_coregraphics.o -Wno-deprecated-declarations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk -DPyObjC_BUILD_RELEASE=1504 -Werror
      Modules/_coregraphics.m:242:17: error: 'CGWindowListCreateImageFromArray' is unavailable: obsoleted in macOS 15.0 - Please use ScreenCaptureKit instead.
        242 |                 CGWindowListCreateImageFromArray(screenBounds, windowArray, imageOption);
            |                 ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h:280:33: note: 'CGWindowListCreateImageFromArray' has been explicitly marked unavailable here
        280 | CG_EXTERN CGImageRef __nullable CGWindowListCreateImageFromArray(
            |                                 ^
      1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

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