flet-dev / flet-dev/flet

iOS fork_exec() TypeError

Open
#2,702 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug packaging platform: ios
Dominant language
Python
Stars
17k
Forks
694
Avg merge
1d 14h
Merged PRs (30d)
33

Description

Description

Buld app using flet build ios command. When I launch the app I get the below error.

Traceback (most recent call last):
  File "<string>", line 40, in <module>
  File "<frozen runpy>", line 229, in run_module
  File "<frozen runpy>", line 88, in _run_code
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/main.py", line 3, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/flet/__init__.py", line 1, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/flet_runtime/__init__.py", line 1, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/flet_core/__init__.py", line 158, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/flet_core/page.py", line 58, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/flet_runtime/auth/__init__.py", line 1, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/flet_runtime/auth/authorization.py", line 8, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpx/__init__.py", line 2, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpx/_api.py", line 4, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpx/_client.py", line 30, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpx/_transports/default.py", line 30, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpcore/__init__.py", line 1, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpcore/_api.py", line 5, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpcore/_sync/__init__.py", line 1, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpcore/_sync/connection.py", line 12, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/httpcore/_synchronization.py", line 13, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/trio/__init__.py", line 22, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/trio/_core/__init__.py", line 21, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/trio/_core/_local.py", line 9, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/trio/_core/_run.py", line 43, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/trio/_core/_thread_cache.py", line 79, in <module>
  File "/var/folders/jd/2x7b0kxd2wdfq3925702b1c00000gn/T/serious_python_temp1UCSyq/__pypackages__/trio/_core/_thread_cache.py", line 45, in get_os_thread_name_func
  File "./ctypes/util.py", line 329, in find_library
  File "./ctypes/util.py", line 289, in _findSoname_ldconfig
  File "/Users/appveyor/projects/serious-python/dist/root/python3/lib/python3.11/subprocess.py", line 1026, in __init__
  File "/Users/appveyor/projects/serious-python/dist/root/python3/lib/python3.11/subprocess.py", line 1883, in _execute_child
TypeError: fork_exec() takes 0 positional arguments but 23 were given

Flet version (pip show flet):

Version: 0.20.2

Give your requirements.txt file (don't pip freeze, instead give direct packages):

flet>=0.20.2
libgravatar==1.0.4
pyhtml2pdf==0.0.7
PyMySQL==1.1.0
python-dotenv==1.0.1
selenium==4.17.2
infisical_api==1.0.0

Operating system:

macOS 14.3.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the listed requirements using flet build ios on macOS 14.3.1, then start at ctypes/util.py's find_library and subprocess.py's _execute_child in the traceback. Done means the built iOS app launches without the fork_exec() TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, python
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.