[X] I have searched the opened issues and there are no duplicates
Describe the bug
I want to use Azure Pipelines to compile a Flet application into a Windows application.
I have installed Flutter, Python 3.10, and Flet 0.24, but when I use the command flet build windows in the command prompt to build the exe, the system reports an error:
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\flet\cli\commands\build.py", line 360, in handle
with console.status(
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\status.py", line 106, in __exit__
self.stop()
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\status.py", line 91, in stop
self._live.stop()
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\live.py", line 147, in stop
with self.console:
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 864, in __exit__
self._exit_buffer()
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 822, in _exit_buffer
self._check_buffer()
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 2024, in _check_buffer
self._write_buffer()
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 2060, in _write_buffer
legacy_windows_render(buffer, LegacyWindowsTerm(self.file))
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\_windows_renderer.py", line 17, in legacy_windows_render
term.write_styled(text, style)
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\_win32_console.py", line 442, in write_styled
self.write_text(text)
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\_win32_console.py", line 403, in write_text
self.write(text)
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2705' in position 1: character maps to <undefined>
##[error]Cmd.exe exited with code '1'.
Code sample
Code
```python
- task: CmdLine@2
inputs:
script: |
flet build windows
displayName: 'Build Flet Application for Windows'
```
Duplicate Check
Describe the bug
I want to use Azure Pipelines to compile a Flet application into a Windows application.
I have installed Flutter, Python 3.10, and Flet 0.24, but when I use the command flet build windows in the command prompt to build the exe, the system reports an error:
Code sample
Code
```python - task: CmdLine@2 inputs: script: | flet build windows displayName: 'Build Flet Application for Windows' ```To reproduce
pipelines.yml
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]Operating System
Windows
Operating system details
Azure Pipelines windows-latest
Flet version
0.24
Regression
No, it isn't
Suggestions
No response
Logs
Logs
```console [Paste your logs here] ```Additional details
No response