Replies: 1 comment 1 reply
-
Which Flet version do you have in your requirements ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi
i am using flet build windows and it give always this errror
`PS C:\Users\Alaa_As\Downloads\pwa\hello> flet build windows
[23:36:53] Unable to create file 'android\app\src\main\AndroidManifest.xml'. Error message: 'dict object' has no attribute 'deep_linking'. Context:
OrderedDict({'cookiecutter': OrderedDict({'out_dir': 'flutter', 'python_module_name': 'main', 'project_name': 'hello', 'project_name_slug': '',
'project_description': '', 'product_name': 'hello', 'org_name': 'com.flet', 'company_name': 'Your Company', 'copyright': 'Copyright (c) 2023 Your
Company', 'flutter': {'dependencies': []}, 'sep': '\', 'kotlin_dir': 'com\flet\hello\', 'hide_loading_animation': True, 'team_id': '',
'base_url': '/', 'route_url_strategy': 'path', 'web_renderer': 'canvaskit', 'use_color_emoji': 'false', 'split_per_abi': False, 'options':
{'info_plist': {}, 'macos_entitlements': {'com.apple.security.app-sandbox': False, 'com.apple.security.cs.allow-jit': True,
'com.apple.security.network.client': True, 'com.apple.security.network.server': True}, 'android_permissions': {'android.permission.INTERNET': True},
'android_features': {'android.software.leanback': False, 'android.hardware.touchscreen': False}, 'deep_linking_url': None, 'android_signing': False},
'_template': 'gh:flet-dev/flet-build-template', '_output_dir': 'C:\Users\Alaa_As\Downloads\pwa\hello\build', '_repo_dir':
'C:\Users\Alaa_As\.cookiecutters\flet-build-template', '_checkout': '0.25.0'}), '_cookiecutter': {'out_dir': 'flutter', 'python_module_name':
'main', 'project_name': 'hello', 'project_name_slug': '', 'project_description': '', 'product_name': 'hello', 'org_name': 'com.flet', 'company_name':
'Your Company', 'copyright': 'Copyright (c) 2023 Your Company', 'flutter': {'dependencies': []}, 'sep': '\', 'kotlin_dir': "{{
cookiecutter.org_name.replace('.', cookiecutter.sep) }}{{ cookiecutter.sep }}{{ cookiecutter.project_name }}{{ cookiecutter.sep }}",
'hide_loading_animation': True, 'team_id': '', 'base_url': '/', 'route_url_strategy': 'path', 'web_renderer': 'canvaskit', 'use_color_emoji':
'false', 'split_per_abi': False, 'options': {'info_plist': {}, 'macos_entitlements': {'com.apple.security.app-sandbox': False,
'com.apple.security.cs.allow-jit': True, 'com.apple.security.network.client': True, 'com.apple.security.network.server': True},
'android_permissions': {'android.permission.INTERNET': True}, 'android_features': {'android.software.leanback': False,
'android.hardware.touchscreen': False}, 'deep_linking_url': None, 'android_signing': False}}})
Traceback (most recent call last):
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\cookiecutter\generate.py", line 409, in generate_files
generate_file(
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\cookiecutter\generate.py", line 209, in generate_file
rendered_file = tmpl.render(**context)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 1301, in render
self.environment.handle_exception()
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "android\app\src\main\AndroidManifest.xml", line 39, in top-level template code
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\jinja2\environment.py", line 485, in getattr
return getattr(obj, attribute)
^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'deep_linking'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\flet_cli\commands\build.py", line 736, in handle
cookiecutter(
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\cookiecutter\main.py", line 182, in cookiecutter
result = generate_files(
^^^^^^^^^^^^^^^
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\cookiecutter\generate.py", line 416, in generate_files
raise UndefinedVariableInTemplate(msg, err, context) from err
cookiecutter.exceptions.UndefinedVariableInTemplate: Unable to create file 'android\app\src\main\AndroidManifest.xml'. Error message: 'dict object' has no attribute 'deep_linking'. Context: OrderedDict({'cookiecutter': OrderedDict({'out_dir': 'flutter', 'python_module_name': 'main', 'project_name': 'hello', 'project_name_slug': '', 'project_description': '', 'product_name': 'hello', 'org_name': 'com.flet', 'company_name': 'Your Company', 'copyright': 'Copyright (c) 2023 Your Company', 'flutter': {'dependencies': []}, 'sep': '\', 'kotlin_dir': 'com\flet\hello\', 'hide_loading_animation': True, 'team_id': '', 'base_url': '/', 'route_url_strategy': 'path', 'web_renderer': 'canvaskit', 'use_color_emoji': 'false', 'split_per_abi': False, 'options': {'info_plist': {}, 'macos_entitlements': {'com.apple.security.app-sandbox': False, 'com.apple.security.cs.allow-jit': True, 'com.apple.security.network.client': True, 'com.apple.security.network.server': True}, 'android_permissions': {'android.permission.INTERNET': True}, 'android_features': {'android.software.leanback': False, 'android.hardware.touchscreen': False}, 'deep_linking_url': None, 'android_signing': False}, '_template': 'gh:flet-dev/flet-build-template', '_output_dir': 'C:\Users\Alaa_As\Downloads\pwa\hello\build', '_repo_dir': 'C:\Users\Alaa_As\.cookiecutters\flet-build-template', '_checkout': '0.25.0'}), '_cookiecutter': {'out_dir': 'flutter', 'python_module_name': 'main', 'project_name': 'hello', 'project_name_slug': '', 'project_description': '', 'product_name': 'hello', 'org_name': 'com.flet', 'company_name': 'Your Company', 'copyright': 'Copyright (c) 2023 Your Company', 'flutter': {'dependencies': []}, 'sep': '\', 'kotlin_dir': "{{ cookiecutter.org_name.replace('.', cookiecutter.sep) }}{{ cookiecutter.sep }}{{ cookiecutter.project_name }}{{ cookiecutter.sep }}", 'hide_loading_animation': True, 'team_id': '', 'base_url': '/', 'route_url_strategy': 'path', 'web_renderer': 'canvaskit', 'use_color_emoji': 'false', 'split_per_abi': False, 'options': {'info_plist': {}, 'macos_entitlements': {'com.apple.security.app-sandbox': False, 'com.apple.security.cs.allow-jit': True, 'com.apple.security.network.client': True, 'com.apple.security.network.server': True}, 'android_permissions': {'android.permission.INTERNET': True}, 'android_features': {'android.software.leanback': False, 'android.hardware.touchscreen': False}, 'deep_linking_url': None, 'android_signing': False}}})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Scripts\flet.exe_main.py", line 7, in
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\flet_cli\cli.py", line 88, in main
args.handler(args)
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\flet_cli\commands\build.py", line 748, in handle
self.cleanup(1, f"{e}")
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\flet_cli\commands\build.py", line 1307, in cleanup
self.run_flutter_doctor(style=error_style)
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\flet_cli\commands\build.py", line 1314, in run_flutter_doctor
flutter_doctor = self.run(
^^^^^^^^^
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\site-packages\flet_cli\commands\build.py", line 1254, in run
r = subprocess.run(
^^^^^^^^^^^^^^^
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Alaa_As\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 193] %1 is not a valid Win32 application`
Beta Was this translation helpful? Give feedback.
All reactions