Open
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
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
- Setup scripts.
- 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
Type
Projects
Status
🏗 In progress