-
Notifications
You must be signed in to change notification settings - Fork 514
WinError 193 during building with Python 3.12 #2441
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
Comments
Please provide the log of |
Output with this flag is the same as on attached screenshot
|
It shouldn't be the same. |
Do you have |
Do you have 32- or 64-bit version of Python installed?
The command will return |
64 bit |
OK, could you give the output of this command:
|
Thank you. Finally, what is the path returned by this:
|
I have also PowerShell 7 installed |
...and can the error be reproduced with this command?
|
Yeap, it could
|
What is the full path to python.exe? ...I don't know if it's easy for you to test, but I'm wondering if |
So, |
OK, so it's Python 3.12 specific error. Will investigate. |
Thank you! |
Re: cmake/nuget error - try this solution: bluefireteam/audioplayers#1615 (comment) |
Btw, when you paste screenshots into issue instead of text it's a) impossible to copy/paste to google - I have to retype everything by hands and b) the contents of this issue is not indexed by search engines, so other users won't find the issue/solution. |
Oh, I see, sorry! Next time I wold provide just text |
So, did you fix nuget sources? |
Unfortunately not. I am searching for solution Edit: I've found it (source: Baseflow/flutter-permission-handler#819 (comment))! This was really strange. I've never used nuget before. It occurred, that my <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
</packageSources>
</configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources> solved the problem. But still, this is strange, that default configuration is not set properly Edit 2: Yet another error: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: Polecenie "setlocal
[C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: "C:\Program Files
(x86)\Microsoft Visual Studio\2022\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
[C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0
goto :cmEnd [C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :cmEnd
[C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: endlocal & call
:cmErrorLevel %errorlevel% & goto :cmDone [C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :cmErrorLevel
[C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: exit /b %1
[C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :cmDone
[C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: if %errorlevel% neq 0
goto :VCEnd [C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(166,5): error MSB3073: :VCEnd" zosta�o
zako�czone przez kod 1. [C:\Users\xxx\AppData\Local\Temp\flet_flutter_build_jofoQQyxFB\build\windows\x64\INSTALL.vcxproj]
Build process failed. |
Only Python 3.12 related. Using |
Unfortunatelly, this is not finish with problems in my journey, but it's a topic on another issue |
Description
Building app using Python 3.12 results in crash. On Python 3.11 problem does not occur
Code example to reproduce the issue:
flet build windows
Describe the results you received:
Describe the results you expected:
It should work
Additional information you deem important (e.g. issue happens only occasionally):
Flet version:
0.19
Operating system:
Windows 11
The text was updated successfully, but these errors were encountered: