-
Notifications
You must be signed in to change notification settings - Fork 417
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
No file or variants found for asset: app/app.zip. #2372
Comments
OK, this part worries me:
What do you have in |
anyio==4.2.0 |
Alright, please see "no pip freeze" note in this section: https://flet.dev/docs/guides/python/packaging-app-for-distribution#project-structure Also, save |
@FeodorFitsner I think, the culprit is powershell (it is my assumption). Because powershell uses |
@taaaf11 that makes sense when you do |
@FeodorFitsner I think I am getting the issue... I |
@taaaf11 yep, but in context of |
@FeodorFitsner I fear replying, I don't know Dart 🤐 |
Thank you very much for your advices.This time I made requirements file manually as it is in description and also got this error: windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating. |
somehow the project was built (but with errors during building) and now when i am trying to start an exe file. mt app just blinks on startup and then closes itself. What could be a problem with that? |
@Slakeec Make your
Also, edit your second-last comment and put necessary code formatting like this:
|
Please correct the inverted slash thing. |
PS C:\Users\user\PycharmProjects\MSM> flet build windows -vv
Flutter bootstrap directory: C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...OK
Generating app icons... ╔════════════════════════════════════════════════════════════════════════════╗
║ The Dart tool uses Google Analytics to report feature usage statistics ║
║ and to send basic crash reports. This data is used to help improve the ║
║ Dart platform and tools over time. ║
║ ║
║ To disable reporting of analytics, run: ║
║ ║
║ dart --disable-analytics ║
║ ║
╚════════════════════════════════════════════════════════════════════════════╝
Resolving dependencies in C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq... (2.8s)
Got dependencies in C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq.
Building package executable... (2.2s)
Built flutter_launcher_icons:flutter_launcher_icons.
════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════
• Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
• Overwriting default iOS launcher icon with new icon
Creating Icons for Web...
Creating Icons for Windows...
Creating Icons for MacOS...
✓ Successfully generated launcher icons
OK
Packaging Python app...Building package executable... (1.3s)
Built serious_python:main.
Running package command
Creating asset directory: C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\app
Copying Python app from C:\Users\user\PycharmProjects\MSM to C:\Users\user\AppData\Local\Temp\serious_python_temp24caec34
Error: FileSystemException: Failed to decode data using encoding 'utf-8', path = 'C:\Users\user\AppData\Local\Temp\serious_python_temp24caec34\requirements.txt'
Deleting temp directory C:\Users\user\AppData\Local\Temp\serious_python_temp24caec34
OK
Building Windows app...['C:\Users\user\Desktop\flut\flutter\bin\flutter.BAT', 'build', 'windows']
Resolving dependencies...
fl_chart 0.65.0 (0.66.0 available)
flutter_lints 2.0.3 (3.0.1 available)
flutter_native_splash 2.3.7 (2.3.9 available)
js 0.6.7 (0.7.0 available)
lints 2.1.1 (3.0.0 available)
matcher 0.12.16 (0.12.16+1 available)
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.10.0 (1.11.0 available)
package_info_plus 4.2.0 (5.0.1 available)
path 1.8.3 (1.9.0 available)
petitparser 5.4.0 (6.0.2 available)
test_api 0.6.1 (0.7.0 available)
toml 0.14.0 (0.15.0 available)
web 0.3.0 (0.4.0 available)
web_socket_channel 2.4.0 (2.4.3 available)
xml 6.3.0 (6.5.0 available)
Got dependencies!
16 packages have newer versions incompatible with dependency constraints.
Try
flutter pub outdated
for more information.windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: ������� ��⠫�� ��� ��⠫�� ��室� �� ����� �ᯮ�������� �� �६����� ��⠫���, ��⮬� �� �� ����� ���� ��稭
�� ���� � ������筮� ᡮમ�. [C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\build\windows\x64\ZERO_CHECK.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: ������� ��⠫�� ��� ��⠫�� ��室� �� ����� �ᯮ�������� �� �६����� ��⠫���, ��⮬� �� �� ����� ���� ��稭
�� ���� � ������筮� ᡮમ�. [C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\build\windows\x64\plugins\serious_python_windows\CopyPythonDLLs.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(541,5): warning MSB8029: ������� ��⠫�� ��� ��⠫�� ��室� �� ����� �ᯮ�������� �� �६����� ��⠫���, ��⮬� �� �� ����� ���� ��稭
�� ���� � ������筮� ᡮમ�. [C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\build\windows\x64\flutter\flutter_assemble.vcxproj]
Error detected in pubspec.yaml:
No file or variants found for asset: app/app.zip.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: ���짮��⥫�᪠� ᡮઠ ��� "C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\build\windows
x64\CMakeFiles\97ccedc66f37bc442ea4e473dec1ca92\flutter_windows.dll.rule;C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\build\windows\x64\CMakeFiles\9736cc717a512a8e02eaa94d6095a866\flutter_assemble.rule;C:\Users\u
ser\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\windows\flutter\CMakeLists.txt" �����訫� ࠡ��� � ����� 1. [C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq\build\windows\x64\flutter\flutter_assemble.vcxproj]
Building Windows application... 61,3s
Build process failed.
Deleting Flutter bootstrap directory C:\Users\user\AppData\Local\Temp\flet_flutter_build_arrvgVFfgq
Error building Flet app - see the log of failed command above.
PS C:\Users\user\PycharmProjects\MSM>
The text was updated successfully, but these errors were encountered: