Skip to content

PR Fixes a runtime issue for tensorflow on OSX#3729

Draft
sgoggins wants to merge 4 commits intomainfrom
osx-tensorflow-patch
Draft

PR Fixes a runtime issue for tensorflow on OSX#3729
sgoggins wants to merge 4 commits intomainfrom
osx-tensorflow-patch

Conversation

@sgoggins
Copy link
Member

Description

  • Tensorflow was not getting installed on OSX (on Apple Silicon)
  • Conditional OS based tensorflow library selection in pyproject.toml fixes this issue.

Signed-off-by: Sean P. Goggins <s@goggins.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses TensorFlow installation issues on macOS with Apple Silicon by introducing platform-specific dependency resolution. The changes conditionally install different TensorFlow packages based on the operating system and CPU architecture.

Changes:

  • Added platform-specific markers for TensorFlow dependencies to support Linux, Intel Mac, and Apple Silicon Mac
  • Replaced single TensorFlow dependency with three conditional dependencies: tensorflow for Linux and Intel Mac, tensorflow-macos for Apple Silicon, and tensorflow-metal for GPU acceleration on Apple Silicon
  • Updated lock file with platform-specific resolution markers and package entries

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Added conditional platform markers for TensorFlow, tensorflow-macos, and tensorflow-metal packages to support different OS/architecture combinations
uv.lock Auto-generated lock file updated with expanded resolution markers and platform-specific package wheels for the new TensorFlow dependency configuration

Signed-off-by: Sean P. Goggins <s@goggins.com>
Signed-off-by: Sean P. Goggins <s@goggins.com>
Signed-off-by: Sean P. Goggins <s@goggins.com>
@sgoggins sgoggins marked this pull request as draft February 23, 2026 15:30
@sgoggins sgoggins self-assigned this Feb 23, 2026
@sgoggins sgoggins added deployed version Live problems with deployed versions devops Development Operations labels Feb 23, 2026
@MoralCode
Copy link
Contributor

so youre saying that tensorflow on arm macs requires a separate tensorflow-macos dependency?

@sgoggins
Copy link
Member Author

Maybe. I'm still working on what's breaking. I think it's one factor. There may also be a psycopg2 issue with celery. Not finished. Draft mode.

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

Labels

deployed version Live problems with deployed versions devops Development Operations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants