Skip to content

PyTorch 2.4.1 wont install on Flet Build for macOS (regression 0.25dev) #4270

Open
@ap4499

Description

@ap4499

Duplicate Check

Describe the bug

On the latest dev build of Flet 0.25, torch==2.4.1 cannot be installed when using Flet Build.

Code sample

Code

#main.py

import torch
import flet

#requirements.txt

flet==0.25.0.dev3598
torch==2.4.1

To reproduce

  1. Setup scripts.
  2. Run Flet build command as below:
export PATH=$HOME/development/flutter/bin:$PATH

flet build macos --project "Demo" --product "Demo" --org "com.ABC" --company "Demo" --build-version "1.0.0" -vv

Expected behavior

Successful install.

Screenshots / Videos

Captures

[Upload media here]

Operating System

macOS

Operating system details

MacOS 15.0.1

Flet version

flet==0.25.0.dev3614

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
console
( ●    ) Packaging Python app ⏳... ERROR: Could not find a version that satisfies the requirement torch==2.4.1 (from versions: 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.4.1

Additional details

The above works when using Flet==0.24.1.

Note, in the above, the code is light as Torch is not being used for anything - this is just illustrating the issue with the Build() process.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions