Closed baseplate-admin closed 3 months ago
I have this repo and when i run poetry run flet build windows ./src/seeder_flet the build runs on linux but not on windows
poetry run flet build windows ./src/seeder_flet
No response
The code should build
Windows
Windows Server 2022
0.23.2
Yes, it used to work in a previous Flet version (please specify the version in additional details)
This seems to be related to charmap?
build used to work on 0.22.1 but somehow it broke on 0.23.1
cc: @moonlitgrace
If anyone wants a github repo : https://github.com/coreproject-moe/CoreProject/tree/92daa51345c597d52ba0a08822e6062e7c1efc15/seeder
Duplicate Check
Describe the bug
I have this repo and when i run
poetry run flet build windows ./src/seeder_flet
the build runs on linux but not on windowsCode sample
No response
To reproduce
Expected behavior
The code should build
Screenshots / Videos
No response
Operating System
Windows
Operating system details
Windows Server 2022
Flet version
0.23.2
Regression
Yes, it used to work in a previous Flet version (please specify the version in additional details)
Suggestions
This seems to be related to charmap?
Logs
Linux Log
```shell 2024-07-29T04:03:40.8624140Z Current runner version: '2.317.0' 2024-07-29T04:03:40.8647689Z ##[group]Operating System 2024-07-29T04:03:40.8648331Z Ubuntu 2024-07-29T04:03:40.8648655Z 22.04.4 2024-07-29T04:03:40.8649070Z LTS 2024-07-29T04:03:40.8649409Z ##[endgroup] 2024-07-29T04:03:40.8649770Z ##[group]Runner Image 2024-07-29T04:03:40.8650277Z Image: ubuntu-22.04 2024-07-29T04:03:40.8650678Z Version: 20240721.1.0 2024-07-29T04:03:40.8651643Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240721.1/images/ubuntu/Ubuntu2204-Readme.md 2024-07-29T04:03:40.8653126Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240721.1 2024-07-29T04:03:40.8653983Z ##[endgroup] 2024-07-29T04:03:40.8654389Z ##[group]Runner Image Provisioner 2024-07-29T04:03:40.8654947Z 2.0.373.1 2024-07-29T04:03:40.8655306Z ##[endgroup] 2024-07-29T04:03:40.8656144Z ##[group]GITHUB_TOKEN Permissions 2024-07-29T04:03:40.8657738Z Contents: read 2024-07-29T04:03:40.8658143Z Metadata: read 2024-07-29T04:03:40.8658923Z ##[endgroup] 2024-07-29T04:03:40.8661996Z Secret source: Dependabot 2024-07-29T04:03:40.8662715Z Prepare workflow directory 2024-07-29T04:03:40.9277956Z Prepare all required actions 2024-07-29T04:03:40.9435082Z Getting action download info 2024-07-29T04:03:41.1739787Z Download action repository 'actions/checkout@v4' (SHA:692973e3d937129bcbf40652eb9f2f61becf3332) 2024-07-29T04:03:41.2922981Z Download action repository 'actions/setup-python@v5' (SHA:39cd14951b08e74b54015e9e001cdefcf80e669f) 2024-07-29T04:03:42.1563758Z Download action repository 'snok/install-poetry@v1' (SHA:93ada01c735cc8a383ce0ce2ae205a21c415379b) 2024-07-29T04:03:42.5989112Z Download action repository 'subosito/flutter-action@v2' (SHA:44ac965b96f18d999802d4b807e3256d5a3f9fa1) 2024-07-29T04:03:43.2912887Z Getting action download info 2024-07-29T04:03:43.4191741Z Download action repository 'actions/cache@v4' (SHA:0c45773b623bea8c8e75f6c82b208c3cf94ea4f9) 2024-07-29T04:03:43.5472439Z Complete job name: linux 2024-07-29T04:03:43.6342837Z ##[group]Run actions/checkout@v4 2024-07-29T04:03:43.6343219Z with: 2024-07-29T04:03:43.6343451Z sparse-checkout: seeder 2024-07-29T04:03:43.6343760Z sparse-checkout-cone-mode: false 2024-07-29T04:03:43.6344110Z repository: coreproject-moe/CoreProject 2024-07-29T04:03:43.6344630Z token: *** 2024-07-29T04:03:43.6344869Z ssh-strict: true 2024-07-29T04:03:43.6345113Z ssh-user: git 2024-07-29T04:03:43.6345357Z persist-credentials: true 2024-07-29T04:03:43.6345644Z clean: true 2024-07-29T04:03:43.6345866Z fetch-depth: 1 2024-07-29T04:03:43.6346102Z fetch-tags: false 2024-07-29T04:03:43.6346338Z show-progress: true 2024-07-29T04:03:43.6346589Z lfs: false 2024-07-29T04:03:43.6346808Z submodules: false 2024-07-29T04:03:43.6347047Z set-safe-directory: true 2024-07-29T04:03:43.6347316Z ##[endgroup] 2024-07-29T04:03:43.8426616Z Syncing repository: coreproject-moe/CoreProject 2024-07-29T04:03:43.8428238Z ##[group]Getting Git version info 2024-07-29T04:03:43.8428892Z Working directory is '/home/runner/work/CoreProject/CoreProject' 2024-07-29T04:03:43.8429624Z [command]/usr/bin/git version 2024-07-29T04:03:43.8453101Z git version 2.45.2 2024-07-29T04:03:43.8478272Z ##[endgroup] 2024-07-29T04:03:43.8492093Z Temporarily overriding HOME='/home/runner/work/_temp/842634f1-6f1e-4e2f-a1d5-5cc14b4f87d3' before making global git config changes 2024-07-29T04:03:43.8493080Z Adding repository directory to the temporary git global config as a safe directory 2024-07-29T04:03:43.8497255Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/CoreProject/CoreProject 2024-07-29T04:03:43.8531311Z Deleting the contents of '/home/runner/work/CoreProject/CoreProject' 2024-07-29T04:03:43.8534617Z ##[group]Initializing the repository 2024-07-29T04:03:43.8538511Z [command]/usr/bin/git init /home/runner/work/CoreProject/CoreProject 2024-07-29T04:03:43.8611652Z hint: Using 'master' as the name for the initial branch. This default branch name 2024-07-29T04:03:43.8612580Z hint: is subject to change. To configure the initial branch name to use in all 2024-07-29T04:03:43.8613585Z hint: of your new repositories, which will suppress this warning, call: 2024-07-29T04:03:43.8614098Z hint: 2024-07-29T04:03:43.8614661Z hint: git config --global init.defaultBranchWindows Log
```powershell 2024-07-29T04:03:44.5112438Z Current runner version: '2.317.0' 2024-07-29T04:03:44.5133665Z ##[group]Operating System 2024-07-29T04:03:44.5134231Z Microsoft Windows Server 2022 2024-07-29T04:03:44.5134639Z 10.0.20348 2024-07-29T04:03:44.5134960Z Datacenter 2024-07-29T04:03:44.5135230Z ##[endgroup] 2024-07-29T04:03:44.5135543Z ##[group]Runner Image 2024-07-29T04:03:44.5135912Z Image: windows-2022 2024-07-29T04:03:44.5136221Z Version: 20240721.1.0 2024-07-29T04:03:44.5137102Z Included Software: https://github.com/actions/runner-images/blob/win22/20240721.1/images/windows/Windows2022-Readme.md 2024-07-29T04:03:44.5138393Z Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240721.1 2024-07-29T04:03:44.5139112Z ##[endgroup] 2024-07-29T04:03:44.5139451Z ##[group]Runner Image Provisioner 2024-07-29T04:03:44.5139880Z 2.0.373.1 2024-07-29T04:03:44.5140139Z ##[endgroup] 2024-07-29T04:03:44.5140899Z ##[group]GITHUB_TOKEN Permissions 2024-07-29T04:03:44.5142461Z Contents: read 2024-07-29T04:03:44.5142908Z Metadata: read 2024-07-29T04:03:44.5143212Z ##[endgroup] 2024-07-29T04:03:44.5146013Z Secret source: Dependabot 2024-07-29T04:03:44.5146591Z Prepare workflow directory 2024-07-29T04:03:44.5983395Z Prepare all required actions 2024-07-29T04:03:44.6141828Z Getting action download info 2024-07-29T04:03:44.8508598Z Download action repository 'actions/checkout@v4' (SHA:692973e3d937129bcbf40652eb9f2f61becf3332) 2024-07-29T04:03:44.9981557Z Download action repository 'actions/setup-python@v5' (SHA:39cd14951b08e74b54015e9e001cdefcf80e669f) 2024-07-29T04:03:45.6386481Z Download action repository 'snok/install-poetry@v1' (SHA:93ada01c735cc8a383ce0ce2ae205a21c415379b) 2024-07-29T04:03:46.0634643Z Download action repository 'subosito/flutter-action@v2' (SHA:44ac965b96f18d999802d4b807e3256d5a3f9fa1) 2024-07-29T04:03:46.6697366Z Getting action download info 2024-07-29T04:03:46.8256816Z Download action repository 'actions/cache@v4' (SHA:0c45773b623bea8c8e75f6c82b208c3cf94ea4f9) 2024-07-29T04:03:46.9739458Z Complete job name: windows 2024-07-29T04:03:47.0850573Z ##[group]Run actions/checkout@v4 2024-07-29T04:03:47.0851001Z with: 2024-07-29T04:03:47.0851356Z sparse-checkout: seeder 2024-07-29T04:03:47.0851755Z sparse-checkout-cone-mode: false 2024-07-29T04:03:47.0852124Z repository: coreproject-moe/CoreProject 2024-07-29T04:03:47.0852729Z token: *** 2024-07-29T04:03:47.0853024Z ssh-strict: true 2024-07-29T04:03:47.0853300Z ssh-user: git 2024-07-29T04:03:47.0853627Z persist-credentials: true 2024-07-29T04:03:47.0853964Z clean: true 2024-07-29T04:03:47.0854209Z fetch-depth: 1 2024-07-29T04:03:47.0854499Z fetch-tags: false 2024-07-29T04:03:47.0854789Z show-progress: true 2024-07-29T04:03:47.0855053Z lfs: false 2024-07-29T04:03:47.0855341Z submodules: false 2024-07-29T04:03:47.0855637Z set-safe-directory: true 2024-07-29T04:03:47.0855950Z ##[endgroup] 2024-07-29T04:03:47.4531022Z Syncing repository: coreproject-moe/CoreProject 2024-07-29T04:03:47.4532583Z ##[group]Getting Git version info 2024-07-29T04:03:47.4533166Z Working directory is 'D:\a\CoreProject\CoreProject' 2024-07-29T04:03:47.6254092Z [command]"C:\Program Files\Git\bin\git.exe" version 2024-07-29T04:03:47.6593907Z git version 2.45.2.windows.1 2024-07-29T04:03:47.6680356Z ##[endgroup] 2024-07-29T04:03:47.6740336Z Temporarily overriding HOME='D:\a\_temp\f800ef7e-bc87-48dd-8ec2-753ee9201d5f' before making global git config changes 2024-07-29T04:03:47.6741827Z Adding repository directory to the temporary git global config as a safe directory 2024-07-29T04:03:47.6751028Z [command]"C:\Program Files\Git\bin\git.exe" config --global --add safe.directory D:\a\CoreProject\CoreProject 2024-07-29T04:03:47.7249919Z Deleting the contents of 'D:\a\CoreProject\CoreProject' 2024-07-29T04:03:47.7255359Z ##[group]Initializing the repository 2024-07-29T04:03:47.7265880Z [command]"C:\Program Files\Git\bin\git.exe" init D:\a\CoreProject\CoreProject 2024-07-29T04:03:47.7957911Z Initialized empty Git repository in D:/a/CoreProject/CoreProject/.git/ 2024-07-29T04:03:47.7998056Z [command]"C:\Program Files\Git\bin\git.exe" remote add origin https://github.com/coreproject-moe/CoreProject 2024-07-29T04:03:47.8426777Z ##[endgroup] 2024-07-29T04:03:47.8427407Z ##[group]Disabling automatic garbage collection 2024-07-29T04:03:47.8436379Z [command]"C:\Program Files\Git\bin\git.exe" config --local gc.auto 0 2024-07-29T04:03:47.8656454Z ##[endgroup] 2024-07-29T04:03:47.8657287Z ##[group]Setting up auth 2024-07-29T04:03:47.8672313Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand 2024-07-29T04:03:47.8921795Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :\"" 2024-07-29T04:03:48.9780786Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2024-07-29T04:03:49.0020219Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "sh -c \"git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :\"" 2024-07-29T04:03:49.7693452Z [command]"C:\Program Files\Git\bin\git.exe" config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ***" 2024-07-29T04:03:49.7923388Z ##[endgroup] 2024-07-29T04:03:49.7923844Z ##[group]Fetching the repository 2024-07-29T04:03:49.7938501Z [command]"C:\Program Files\Git\bin\git.exe" -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --filter=blob:none --depth=1 origin +36b02761361c68933fd956cb0a89f2e59cc835ee:refs/remotes/pull/3871/merge 2024-07-29T04:03:51.0675865Z From https://github.com/coreproject-moe/CoreProject 2024-07-29T04:03:51.0677284Z * [new ref] 36b02761361c68933fd956cb0a89f2e59cc835ee -> pull/3871/merge 2024-07-29T04:03:51.0844877Z ##[endgroup] 2024-07-29T04:03:51.0847135Z ##[group]Determining the checkout info 2024-07-29T04:03:51.0848094Z ##[endgroup] 2024-07-29T04:03:51.0848698Z ##[group]Setting up sparse checkout 2024-07-29T04:03:51.0858124Z [command]"C:\Program Files\Git\bin\git.exe" config core.sparseCheckout true 2024-07-29T04:03:51.1084008Z [command]"C:\Program Files\Git\bin\git.exe" rev-parse --git-path info/sparse-checkout 2024-07-29T04:03:51.1311076Z .git/info/sparse-checkout 2024-07-29T04:03:51.1342290Z ##[endgroup] 2024-07-29T04:03:51.1343250Z ##[group]Checking out the ref 2024-07-29T04:03:51.1352375Z [command]"C:\Program Files\Git\bin\git.exe" checkout --progress --force refs/remotes/pull/3871/merge 2024-07-29T04:03:52.1617740Z Note: switching to 'refs/remotes/pull/3871/merge'. 2024-07-29T04:03:52.1618274Z 2024-07-29T04:03:52.1618827Z You are in 'detached HEAD' state. You can look around, make experimental 2024-07-29T04:03:52.1619758Z changes and commit them, and you can discard any commits you make in this 2024-07-29T04:03:52.1620364Z state without impacting any branches by switching back to a branch. 2024-07-29T04:03:52.1620731Z 2024-07-29T04:03:52.1620966Z If you want to create a new branch to retain commits you create, you may 2024-07-29T04:03:52.1621628Z do so (now or later) by using -c with the switch command. Example: 2024-07-29T04:03:52.1621958Z 2024-07-29T04:03:52.1622114Z git switch -cAdditional details
build used to work on 0.22.1 but somehow it broke on 0.23.1
cc: @moonlitgrace