flet-dev / flet-build-template

A Flutter bootstrap project Cookiecutter template for packaging Flet app
MIT License
10 stars 15 forks source link

flet build apk is not working #5

Open juanchos0412 opened 5 months ago

juanchos0412 commented 5 months ago

When i run flet build apk, I have the following error: image

KeimaSenpai commented 4 months ago

I get an error when compiling when I use the aiohttp library

Creating Flutter bootstrap project...OK
Customizing app icons and splash images...OK
Generating app icons...OK
Generating splash screens...OK
Packaging Python app...Running package command
Creating asset directory: /tmp/flet_flutter_build_pqvtFApubc/app
Copying Python app from /home/runner/work/XLink-apk/XLink-apk to 
/tmp/serious_python_tempXXNOXT
Configured mobile platform with sitecustomize.py at 
/tmp/serious_python_sitecustomizeWJASBY/sitecustomize.py
Installing dependencies  with pip command to 
/tmp/serious_python_tempXXNOXT/__pypackages__
Downloading Python distributive from 
https://github.com/indygreg/python-build-standalone/releases/download/[20](https://github.com/KeimaSenpai/XLink-apk/actions/runs/8026041276/job/21927833974#step:7:21)[23](https://github.com/KeimaSenpai/XLink-apk/actions/runs/8026041276/job/21927833974#step:7:24)1002/c
python-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to 
/tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz
Extracting Python distributive from 
/tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to 
/tmp/hostpython3.11_VIIINB
/tmp/hostpython3.11_VIIINB/python/lib/python3.11/site-packages/_distutils_hack/_
_init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
  error: subprocess-exited-with-error

  × Building wheel for aiohttp (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [98 lines of output]
      *********************
      * Accelerated build *
      *********************
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/resolver.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_log.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/typedefs.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/pytest_plugin.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/hdrs.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_runner.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/http_writer.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/tcp_helpers.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_response.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_exceptions.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_server.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/tracing.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/http_parser.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/http_exceptions.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_request.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/compression_utils.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/http.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/cookiejar.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/client_ws.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_middlewares.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_app.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/payload_streamer.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/http_websocket.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_urldispatcher.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/log.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/client_exceptions.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/test_utils.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_fileresponse.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/client_proto.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/connector.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/payload.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/client_reqrep.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/helpers.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/abc.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/multipart.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_routedef.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/streams.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/__init__.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/locks.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/base_protocol.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_protocol.py -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/formdata.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/worker.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/client.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/web_ws.py -> build/lib.linux-x86_64-cpython-311/aiohttp
      running egg_info
      writing aiohttp.egg-info/PKG-INFO
      writing dependency_links to aiohttp.egg-info/dependency_links.txt
      writing requirements to aiohttp.egg-info/requires.txt
      writing top-level names to aiohttp.egg-info/top_level.txt
      reading manifest file 'aiohttp.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching 'aiohttp' anywhere in distribution
      warning: no previously-included files matching '*.pyc' found anywhere in 
distribution
      warning: no previously-included files matching '*.pyd' found anywhere in 
distribution
      warning: no previously-included files matching '*.so' found anywhere in 
distribution
      warning: no previously-included files matching '*.lib' found anywhere in 
distribution
      warning: no previously-included files matching '*.dll' found anywhere in 
distribution
      warning: no previously-included files matching '*.a' found anywhere in 
distribution
      warning: no previously-included files matching '*.obj' found anywhere in 
distribution
      warning: no previously-included files found matching 'aiohttp/*.html'
      no previously-included directories found matching 'docs/_build'
      adding license file 'LICENSE.txt'
      writing manifest file 'aiohttp.egg-info/SOURCES.txt'
      copying aiohttp/_cparser.pxd -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/_find_header.pxd -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/_headers.pxi -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/_helpers.pyi -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/_helpers.pyx -> build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/_http_parser.pyx -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/_http_writer.pyx -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/_websocket.pyx -> 
build/lib.linux-x86_64-cpython-311/aiohttp
      copying aiohttp/py.typed -> build/lib.linux-x86_64-cpython-311/aiohttp
      creating build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/_cparser.pxd.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/_find_header.pxd.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/_helpers.pyi.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/_helpers.pyx.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/_http_parser.pyx.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/_http_writer.pyx.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/_websocket.pyx.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      copying aiohttp/.hash/hdrs.py.hash -> 
build/lib.linux-x86_64-cpython-311/aiohttp/.hash
      running build_ext
      building 'aiohttp._websocket' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/aiohttp
      Cannot_compile_native_modules -Wsign-compare -Wunreachable-code -DNDEBUG 
-g -fwrapv -O3 -Wall -fdebug-default-version=4 -fPIC -I/tools/deps/include 
-I/tools/deps/include/ncursesw -I/tools/deps/libedit/include -fPIC 
-I/tmp/hostpython3.11_VIIINB/python/include/python3.11 -c aiohttp/_websocket.c 
-o build/temp.linux-x86_64-cpython-311/aiohttp/_websocket.o
      error: command 'Cannot_compile_native_modules' failed: No such file or 
directory

  note: This error originates from a subprocess, and is likely not a problem 
with pip.
  ERROR: Failed building wheel for aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install 
pyproject.toml-based projects
 A new release of pip is available: 23.2.1 -> [24](https://github.com/KeimaSenpai/XLink-apk/actions/runs/8026041276/job/21927833974#step:7:25).0
 To update, run: /tmp/hostpython3.11_VIIINB/python/bin/python3 -m pip install 
--upgrade pip
Error building Flet app - see the log of failed command above.
Error: Process completed with exit code 1.
Benitmulindwa commented 1 day ago

@KeimaSenpai did solve this issue? im getting it using github actions