-
Notifications
You must be signed in to change notification settings - Fork 598
Closed
Labels
bugSomething isn't workingSomething isn't workingpackagingRelated to app packagingRelated to app packagingplatform: linuxSpecific to one or more Linux distributionsSpecific to one or more Linux distributionsstatus: awaiting responseFurther information is requestedFurther information is requested
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
When packaging an app using flet build linux, an error occurs. Could not find a way to fix it
Code sample
Code
flet build linux --verbose --module-name main.pyTo 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
flet build linux --verbose --module-name main.py ✔ ╱ stewart 18:33:31 ▓▒░
[18:33:35] Flutter bootstrap directory: /tmp/flet_flutter_build_DBJd8e3Hlo
No additional Flutter dependencies!
[18:33:36] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.24.1 ✅
Customized app icons and splash images ✅
Run subprocess: ['/home/ilyamiro/Загрузки/flutter/bin/dart', 'run', 'flutter_launcher_icons']
( ● ) Generating app icons (1.7s)
Downloading packages...
Got dependencies in `/tmp/flet_flutter_build_DBJd8e3Hlo`.
( ● ) Generating app icons ⏳...
Built flutter_launcher_icons:flutter_launcher_icons.
( ●) Generating app icons ⏳... ════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════
( ● ) Generating app icons ⏳... • Creating default icons Android
( ● ) Generating app icons ⏳... • Overwriting the default Android launcher icon with a new icon
(● ) Generating app icons ⏳... • Overwriting default iOS launcher icon with new icon
( ● ) Generating app icons ⏳...done
(● ) Generating app icons ⏳...done
( ●) Generating app icons ⏳...done
✓ Successfully generated launcher icons
[18:33:41] Generated app icons ✅
Run subprocess: ['/home/ilyamiro/Загрузки/flutter/bin/dart', 'run', 'serious_python:main', 'package', '/home/ilyamiro/stewart',
'--dep-mappings', 'flet=flet-embed', '--req-deps', 'flet-embed', '--exclude', 'build']
( ● ) Packaging Python app ⏳...
Built serious_python:main.
( ● ) Packaging Python app ⏳... Running package command
( ● ) Packaging Python app ⏳... Creating asset directory: /tmp/flet_flutter_build_DBJd8e3Hlo/app
Copying Python app from /home/ilyamiro/stewart to /tmp/serious_python_tempGJXSCP
( ● ) Packaging Python app ⏳... Installing dependencies [ytmusicapi==1.8.2, yt-dlp==2024.10.7, icalendar==6.0.1, python-vlc==3.0.21203, curl_cffi~=0.7.3, numpy==1.26.4, g4f~=0.3.2.7, playsound~=1.3.0, flet~=0.24.1, vosk~=0.3.45, voicesynth~=0.2.2.post3, PyAudio~=0.2.14, PyYAML~=6.0.2, requests~=2.32.3, num2words~=0.5.13, matplotlib~=3.9.2, PyAutoGUI~=0.9.54, pynput~=1.7.7, pygame~=2.6.0, plyer~=2.1.0, flet-embed] with pip command to /tmp/serious_python_tempGJXSCP/__pypackages__
Downloading Python distributive from https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz
( ● ) Packaging Python app ⏳... Extracting Python distributive from /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/hostpython3.11_SVWAAC
( ● ) Packaging Python app ⏳... error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [28 lines of output]
Traceback (most recent call last):
File "/home/ilyamiro/.local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/ilyamiro/.local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ilyamiro/.local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-c2tq7l94/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-c2tq7l94/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-c2tq7l94/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-c2tq7l94/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "<string>", line 6, in <module>
File "/tmp/hostpython3.11_SVWAAC/python/lib/python3.11/inspect.py", line 1262, in getsource
lines, lnum = getsourcelines(object)
^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/hostpython3.11_SVWAAC/python/lib/python3.11/inspect.py", line 1244, in getsourcelines
lines, lnum = findsource(object)
^^^^^^^^^^^^^^^^^^
File "/tmp/hostpython3.11_SVWAAC/python/lib/python3.11/inspect.py", line 1081, in findsource
raise OSError('could not get source code')
OSError: could not get source code
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[18:34:08] Deleting Flutter bootstrap directory /tmp/flet_flutter_build_DBJd8e3Hlo
Error building Flet app - see the log of failed command above.
Run subprocess: ['/home/ilyamiro/Загрузки/flutter/bin/flutter', 'doctor']
[18:34:10] Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Fedora Linux 40 (Workstation Edition) 6.10.12-200.fc40.x86_64, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.94.2)
[✓] Connected device (2 available)
[✓] Network resources
• No issues found! Additional details
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackagingRelated to app packagingRelated to app packagingplatform: linuxSpecific to one or more Linux distributionsSpecific to one or more Linux distributionsstatus: awaiting responseFurther information is requestedFurther information is requested