-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cound not get source code when using flet build linux
#4164
Comments
Try building with Flet pre-release: https://flet.dev/blog/flet-new-packaging-pre-release |
PyAudio has binary packages for Windows only: https://pypi.org/project/PyAudio/#files Are you able to install it on Linux machine with |
Yes i am, my project is fully functional with pyaudio. Does this mean i can't build if my project has pyaudio in it? Because it's not the only package that has such problem. |
OK, we could try removing "only binary" requirement when packaging for non-mobile platforms: https://github.com/flet-dev/serious-python/blob/main/src/serious_python/bin/package_command.dart#L300-L301 This case pip will try to compile the package from source distribution. |
OK, I've modified flet build template to allow packaging for desktops from source packages (that pyaudio package still won't be working for iOS and Android anyway). Try re-building with Flet pre-release and let me know how it worked. |
I have tried building the project again on the new pre-release version .dev3526 and now i get the similar error to the one i had on 0.24.1. I have not modified anything else other than just installing a new flet version. I have a python version 3.11.10, but the cpython version being installed is 3.12, may that be an issue? Here are the logs:
|
OK, few more things I need:
|
Contents of requirements.txt:
$PATH variable:
|
OK, you've got a lot in I also don't like the fact it looks into |
Is Flet on your machine installed into |
I am using a python version 3.11.10 (not 3.12) inside of a python virtual environment that was active when i was running |
Got anything? |
Duplicate Check
Describe the bug
When packaging an app using
flet build linux
, an error occurs. Could not find a way to fix itCode sample
Code
To reproduce
Run
flet build linux --verbose --module-name main.py
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
Linux
Operating system details
Fedora Workstation 40
Flet version
0.24.1
Regression
No, it isn't
Suggestions
No response
Logs
Logs
Additional details
No response
The text was updated successfully, but these errors were encountered: