You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using python 3.12.0 lts version for this issue.
When running my flet app with with flet run main.py it crashes with the following trace:
error message
flet run main.py
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "$PWD\.venv\Scripts\flet.exe\__main__.py", line 4, in <module>
File "$PWD\.venv\Lib\site-packages\flet\cli\cli.py", line 6, in <module>
import flet.cli.commands.publish
File "$PWD\.venv\Lib\site-packages\flet\cli\commands\publish.py", line 9, in
<module>
from distutils.dir_util import copy_tree
ModuleNotFoundError: No module named 'distutils'
Describe the results you expected:
A windows displaying a counter as the example in flet.
Flet version (pip show flet):
Name: flet
Version: 0.10.3
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email: [email protected]
License: Apache-2.0
Location: $PATH\.venv\Lib\site-packages
Requires: copier, flet-runtime, packaging, qrcode, watchdog, websocket-client, websockets
Required-by:
Operating system:
Windows 10 x64
Additional environment details:
It was tried in CMD and PS1 , optaining the same error.
Workaround
I could solve this issue by installing setuptools along with my flet installation, as this error comes because python 3.12.x will no longer have this package by default.
For these functions, and any others not mentioned here, you will need to reimplement the functionality yourself. The legacy documentation can be found at https://docs.python.org/3.9/distutils/apiref.html
Description
I am using python 3.12.0 lts version for this issue.
When running my flet app with with flet run main.py it crashes with the following trace:
error message
Code example to reproduce the issue:
Describe the results you expected:
A windows displaying a counter as the example in flet.
Flet version (
pip show flet
):Operating system:
Additional environment details:
It was tried in CMD and PS1 , optaining the same error.
Workaround
I could solve this issue by installing setuptools along with my flet installation, as this error comes because python 3.12.x will no longer have this package by default.
Installing setuptools
Right after the installation
sources:
The text was updated successfully, but these errors were encountered: