flet-dev / flet

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://flet.dev
Apache License 2.0
9.59k stars 372 forks source link

Issues with "flet build" on Windows and Android using flet 0.19.0 #2424

Open mottibz opened 4 months ago

mottibz commented 4 months ago

My app runs fine when executed in development mode on Windows.

Used packages out of the ordinary:

I also use the Requests package for HTTP communication and the Json package.

I implemented a way to debug remotely (send messages over a socket to another machine for display at run-time). Code:

`# Code to handle sending print() messages over a socket to the remote terminal

terminal_server_ip = '172.16.254.133' terminal_server_port = 12345 send_msg_via_socket = True socket_initialized = False client_socket = None

import socket

def showStatusMsg(msg): global send_msg_via_socket, socket_initialized, client_socket, terminal_server_ip, terminal_server_port

if send_msg_via_socket == False:
    print(msg)
    return

# Send via socket
if socket_initialized == False:
    # Create a socket object
    client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    # Connect to the server
    client_socket.connect((terminal_server_ip, terminal_server_port))
    print(f"Connected to server at {terminal_server_ip}:{terminal_server_port}")
    socket_initialized = True

client_socket.send(msg.encode())``

Using: Python 3.11.6 Flet 0.19.0 Flutter 3.16.5, Dart 3.2.3, DevTools 2.28.4 Windows 11

ISSUES:

On WINDOWS:

  1. Why a Windows build generates so many files and not one executable? Is there a way to have it create one executable?
  2. Following executing the generated Windows executable, I could not find the out.log logging file... where should I look for that?
  3. Any solution for using my remote logging (over a socket) option? Code included above.

On ANDROID:

  1. I generated the apk and installed to the phone using adb
  2. Where can I find the out.log file in Android?
  3. When the app launched, I received an error message (see attached two pictures from two runs). Looks like the executable has a problem working with sockets (I am using the Requests and paho-mqtt packages which as far as I know are pure Python). Please check this and fix as needed as it may be a major issue.

image

image

Please let me know if additional explanation is needed.

Thanks a lot for addressing these issues!

NooRMaseR commented 4 months ago

@mottibz i have the same issue here I'm using the requests module to get the response from my API and the app works perfectly on and it works only 1 time

Screenshot_2024-01-18-18-23-44-038_com.noormaser.maser_assistant.jpg

And when i close the app and open it again i get that error

Screenshot_2024-01-18-18-24-07-187_com.noormaser.maser_assistant.jpg

I have to clear my app's data to work again from fresh

taaaf11 commented 4 months ago

@NooRMaseR

@mottibz i have the same issue here I'm using the requests module to get the response from my API and the app works perfectly on and it works only 1 time

And when i close the app and open it again i get that error

I have to clear my app's data to work again from fresh

Try close-ing the socket and deleting the socket object.

FeodorFitsner commented 4 months ago

Can you guys give me a sample app to reproduce the issue? Or you are saying it's reproducible with any "hello world" app?

NooRMaseR commented 4 months ago

@taaaf11 Still not working, this is the code that i use

def send_msg(self, _: ft.ControlEvent) -> None:
        if self.textbox.value.strip():  # type: ignore
            self.loading.visible = True
            self.send_btn.disabled = True
            self.send_btn.update()
            self.loading.update()

            question: str = str(self.textbox.value)
            self.textbox.value = None
            userQuestion = Create_user_question(self.username, question)
            self.msgs_container.content.controls[0].controls.append(userQuestion)  # type: ignore
            self.msgs_container.content.controls[0].update()  # type: ignore
            self.textbox.update()

            req = requests.post(
                url="https://maser-assistant.onrender.com/chat/quary-out",
                json={
                    "quary": question,
                    "voiceEnabled": False,
                    "APIkey": "myAPI",
                },
                headers={"Content-Type": "application/json"},
            )
            response: dict = req.json()
            req.close()
            del req

            answer = Create_chat_response(response.get("result"))  # type: ignore
            self.msgs_container.content.controls[0].controls.append(answer)  # type: ignore
            self.loading.visible = False
            self.send_btn.disabled = False

            self.send_btn.update()
            self.update()

it works fine when the app starts in the first time on android, but the second time i get that error, so the app can work again i have to clear the app's data like to start the app fresh from the beginning

taaaf11 commented 4 months ago

@taaaf11 Still not working, this is the code that i use

it works fine when the app starts in the first time, but the second time i get that error, so the app can work again i have to clear the app's data like to start the app fresh from the beginning

I didn't ask about that req object. Rather I asked about any of the socket (from module socket) you might be using. I think this issue resides in the internal of flet

NooRMaseR commented 4 months ago

@taaaf11 Still not working, this is the code that i use it works fine when the app starts in the first time, but the second time i get that error, so the app can work again i have to clear the app's data like to start the app fresh from the beginning

I didn't ask about that req object. Rather I asked about any of the socket (from module socket) you might be using. I think this issue resides in the internal of flet

i'm not using socket module, i use only requests module

mottibz commented 4 months ago

Can you guys give me a sample app to reproduce the issue? Or you are saying it's reproducible with any "hello world" app?

Hi @FeodorFitsner, it will be really hard to provide a sample app to generate the issue as it is embedded in multiple modules in my app. I suggest that you take the code I provided when opening the issue above (also provided below), put it into a simple Flet main.py with the main code calling showStatusMsg() a few times with a message to send. Below this code I also include the terminal server code that is supposed to capture the message on the remote machine and display it. I am proposing using this to test as both the Requests and paho-mqtt packages use sockets for communication so the below simple code, if it will run correctly on executables built for Android and Windows, should resolve the other communication issues.

terminal_server_ip = '' terminal_server_port = 12345 send_msg_via_socket = True socket_initialized = False client_socket = None

import socket

def showStatusMsg(msg): global send_msg_via_socket, socket_initialized, client_socket, terminal_server_ip, terminal_server_port

if send_msg_via_socket == False: print(msg) return

# Send via socket
if socket_initialized == False:
    # Create a socket object
    client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    # Connect to the server
    client_socket.connect((terminal_server_ip, terminal_server_port))
    print(f"Connected to server at {terminal_server_ip}:{terminal_server_port}")
    socket_initialized = True

client_socket.send(msg.encode())``

TERMINAL SERVER CODE:

import socket

Server configuration

host = '' # Listen on all available interfaces port = 12345

Create a socket object

server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

Bind the socket to a specific address and port

server_socket.bind((host, port))

Enable the server to accept connections

server_socket.listen(5)

print(f"Server listening on {host}:{port}")

Accept a connection from the client

client_socket, client_address = server_socket.accept() print(f"Connection established with {client_address}")

while True:

Receive data from the client

data = client_socket.recv(1024)
if not data:
    break
print(f"Received data: {data.decode()}")

Close the connection

client_socket.close() server_socket.close()

mottibz commented 4 months ago

Don't know why the terminal server code is formated in a strange way, reposting:

` import socket

Server configuration

host = '' port = 12345

Create a socket object

server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

Bind the socket to a specific address and port

server_socket.bind((host, port))

Enable the server to accept connections

server_socket.listen(5)

print(f"Server listening on {host}:{port}")

Accept a connection from the client

client_socket, client_address = server_socket.accept() print(f"Connection established with {client_address}")

while True:

Receive data from the client

data = client_socket.recv(1024)
if not data:
    break
print(f"Received data: {data.decode()}")

Close the connection

client_socket.close() server_socket.close() `

mottibz commented 4 months ago

Not sure why it is formated like this... I used the code embedding option and it still breaks the format...

FeodorFitsner commented 4 months ago

Use three ticks to format the code.

mottibz commented 4 months ago

client.txt server.txt

I attached them as files. Please let me know if arrived correctly. Thanks a lot!

FeodorFitsner commented 4 months ago

where do you run server?

mottibz commented 4 months ago
mottibz commented 4 months ago
NooRMaseR commented 4 months ago

this is the repo for the source code of my app can someone check it please and tell me what is the problem on android ? https://github.com/NooRMaseR/error-test

NooRMaseR commented 4 months ago

it might take some time like 5 sec or something to get the response because i use a free plane

mottibz commented 4 months ago

Hi @NooRMaseR , As I wrote above, I beleive that the issue is enabling network communication and the code I provided uses the basic socket interface. If that will work correctly, than probably, higher level packages such as Requests (which uses sockets) will work.

NooRMaseR commented 4 months ago

Hi @mottibz , i think the problem is that the connection is still running in the background twice in my app's case, because the first time I opened the app, it works perfectly and when i close the app the app closes but the connection is still running, as @taaaf11 said i need to close the connection, even though i closed the connection already after i get the response and the connection is still running i don't know why, that's why when i clear the app's data, the app works again, like the connection is finally closed

mottibz commented 4 months ago

I am sure that @FeodorFitsner will solve this in no time :-)

FeodorFitsner commented 4 months ago

I've managed to reproduce "SocketException: Failed to create server socket (OS Error: File exists with given unix domain address), address = stdout.sock, port = 0" issue.

Working on the fix!

FeodorFitsner commented 4 months ago

Fixed the app template - the app is not crashing with that error anymore when restarted multiple times. Rebuild your APK with flet build apk to get updated template.

mottibz commented 4 months ago

Will test and let you know if OK. Thanks!

mottibz commented 4 months ago

Tried the apk quickly. A few comments:

mottibz commented 4 months ago

Hi @FeodorFitsner , looks like my socket code now starting to wor. I will investigate it further and if this actually works, I will publish the code in an organized way so that developers can use it to debug their executables in an easy way. Think about running your Android executable on your phone and seeing the debug output from the Android app on your PC :-)

taaaf11 commented 4 months ago

Hi @FeodorFitsner , looks like my socket code now starting to wor. I will investigate it further and if this actually works, I will publish the code in an organized way so that developers can use it to debug their executables in an easy way. Think about running your Android executable on your phone and seeing the debug output from the Android app on your PC :-)

That would be a wow 😍

NooRMaseR commented 4 months ago

Hi @FeodorFitsner , thank you for solving the problem in my case, and it works good now, but there's 1 issue

https://github.com/flet-dev/flet/assets/127132401/21664d2f-ae9f-450f-9933-7a20e6b168c7

NooRMaseR commented 4 months ago

Hi @FeodorFitsner, i really do appreciate what you have done in solving problems but i have an issue here

the requirements.txt file

flet
requests
pillow

and i get the following error with the command flet build apk -vv

Flutter bootstrap directory: /tmp/flet_flutter_build_BSpLLcGPZF
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...Copying /mnt/d/NooR MaseR/backup/programming/python/MaseR Assistant 2/Chat Bot/assets/icon.jpeg to
/tmp/flet_flutter_build_BSpLLcGPZF/images
Copying /mnt/d/NooR MaseR/backup/programming/python/MaseR Assistant 2/Chat Bot/assets/splash.png to
/tmp/flet_flutter_build_BSpLLcGPZF/images
OK
Generating app icons...Resolving dependencies in /tmp/flet_flutter_build_BSpLLcGPZF... (4.1s)
Got dependencies in /tmp/flet_flutter_build_BSpLLcGPZF.
Building package executable... (7.4s)
Built flutter_launcher_icons:flutter_launcher_icons.
  ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.13.1)
  ════════════════════════════════════════════

β€’ Creating default icons Android
β€’ Overwriting the default Android launcher icon with a new icon
β€’ Overwriting default iOS launcher icon with new icon
Creating Icons for Web...              done
Creating Icons for Windows...          done
Creating Icons for MacOS...            done

βœ“ Successfully generated launcher icons
OK
Generating splash screens...Building package executable... (8.3s)
Built flutter_native_splash:create.
[Android] Creating default splash images
[Android] Creating dark mode splash images
[Android] Creating default android12splash images
[Android] Creating dark mode android12splash images
[Android] Updating launch background(s) with splash image path...
[Android]  - android/app/src/main/res/drawable/launch_background.xml
[Android]  - android/app/src/main/res/drawable-night/launch_background.xml
[Android]  - android/app/src/main/res/drawable-v21/launch_background.xml
[Android]  - android/app/src/main/res/drawable-night-v21/launch_background.xml
[Android] Updating styles...
[Android]  - android/app/src/main/res/values-v31/styles.xml
[Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project
[Android]  - android/app/src/main/res/values-night-v31/styles.xml
[Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project
[Android]  - android/app/src/main/res/values/styles.xml
[Android]  - android/app/src/main/res/values-night/styles.xml
[iOS] Creating  images
[iOS] Creating dark mode  images
[iOS] Updating ios/Runner/Info.plist for status bar hidden/visible
[Web] Creating images
[Web] Creating images
[Web] Creating background images
[Web] Creating CSS
[Web] Updating index.html
╔════════════════════════════════════════════════════════════════════════════╗
β•‘                       NEED A GREAT FLUTTER DEVELOPER?                      β•‘
╠════════════════════════════════════════════════════════════════════════════╣
β•‘                                                                            β•‘
β•‘   I am available!  Find me at https://www.linkedin.com/in/hansonjon/       β•‘
β•‘                                                                            β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

βœ… Native splash complete.
Now go finish building something awesome! πŸ’ͺ You rock! 🀘🀩
Like the package? Please give it a πŸ‘ here: https://pub.dev/packages/flutter_native_splash

OK
Packaging Python app...Building package executable... (4.6s)
Built serious_python:main.
Running package command
Creating asset directory: /tmp/flet_flutter_build_BSpLLcGPZF/app
Copying Python app from /mnt/d/NooR MaseR/backup/programming/python/MaseR Assistant 2/Chat Bot to /tmp/serious_python_tempRACRKL
Configured mobile platform with sitecustomize.py at /tmp/serious_python_sitecustomizeVOJJOR/sitecustomize.py
Installing dependencies [flet-embed, requests, pillow] with pip command to /tmp/serious_python_tempRACRKL/__pypackages__
Extracting Python distributive from /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/hostpython3.11_MDQKVP
VERBOSE: /tmp/hostpython3.11_MDQKVP/python/bin/python3 -m pip install --isolated --upgrade --target /tmp/serious_python_tempRACRKL/__pypackages__ flet-embed requests pillow
VERBOSE: Collecting flet-embed
VERBOSE: Obtaining dependency information for flet-embed from https://files.pythonhosted.org/packages/ad/d1/a6b49f4fae4611d8b083da1f95afd78e38ffb3898290ffc8dcec73324bf6/flet_embed-0.19.0-py3-none-any.whl.metadata
  Using cached flet_embed-0.19.0-py3-none-any.whl.metadata (1.1 kB)
VERBOSE: Collecting requests
VERBOSE: Obtaining dependency information for requests from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
VERBOSE: Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
VERBOSE: Collecting pillow
VERBOSE: Downloading pillow-10.2.0.tar.gz (46.2 MB)
VERBOSE: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.2/46.2 MB 1.5 MB/s eta 0:00:00
VERBOSE:
VERBOSE: Installing build dependencies: started
VERBOSE: Installing build dependencies: finished with status 'done'
VERBOSE: Getting requirements to build wheel: started
VERBOSE: Getting requirements to build wheel: finished with status 'done'
VERBOSE: Installing backend dependencies: started
VERBOSE: Installing backend dependencies: finished with status 'done'
VERBOSE: Preparing metadata (pyproject.toml): started
VERBOSE: Preparing metadata (pyproject.toml): finished with status 'done'
VERBOSE: Collecting flet-runtime==0.19.0 (from flet-embed)
  Obtaining dependency information for flet-runtime==0.19.0 from https://files.pythonhosted.org/packages/dd/19/d0954189bf43dfdf5f9d059f5eb73d3374a13d5d4626a14f24fe35b55b43/flet_runtime-0.19.0-py3-none-any.whl.metadata
VERBOSE: Using cached flet_runtime-0.19.0-py3-none-any.whl.metadata (1.2 kB)
VERBOSE: Collecting flet-core==0.19.0 (from flet-runtime==0.19.0->flet-embed)
VERBOSE: Obtaining dependency information for flet-core==0.19.0 from https://files.pythonhosted.org/packages/cc/cc/520c8a7650b57c615a8be1679c5199a7f57ba59639d76cc7ea0a76bda19f/flet_core-0.19.0-py3-none-any.whl.metadata
VERBOSE: Using cached flet_core-0.19.0-py3-none-any.whl.metadata (1.1 kB)
VERBOSE: Collecting httpx<0.25.0,>=0.24.1 (from flet-runtime==0.19.0->flet-embed)
  Obtaining dependency information for httpx<0.25.0,>=0.24.1 from https://files.pythonhosted.org/packages/ec/91/e41f64f03d2a13aee7e8c819d82ee3aa7cdc484d18c0ae859742597d5aa0/httpx-0.24.1-py3-none-any.whl.metadata
VERBOSE: Using cached httpx-0.24.1-py3-none-any.whl.metadata (7.4 kB)
VERBOSE: Collecting oauthlib<4.0.0,>=3.2.2 (from flet-runtime==0.19.0->flet-embed)
VERBOSE: Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
VERBOSE: Collecting repath<0.10.0,>=0.9.0 (from flet-core==0.19.0->flet-runtime==0.19.0->flet-embed)
VERBOSE: Using cached repath-0.9.0-py3-none-any.whl (4.7 kB)
VERBOSE: Collecting charset-normalizer<4,>=2 (from requests)
VERBOSE: Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/28/76/e6222113b83e3622caa4bb41032d0b1bf785250607392e1b778aca0b8a7d/charset_normalizer-3.3.2-py3-none-any.whl.metadata
VERBOSE: Downloading charset_normalizer-3.3.2-py3-none-any.whl.metadata (33 kB)
VERBOSE: Collecting idna<4,>=2.5 (from requests)
VERBOSE: Obtaining dependency information for idna<4,>=2.5 from https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata
VERBOSE: Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
VERBOSE: Collecting urllib3<3,>=1.21.1 (from requests)
VERBOSE: Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/96/94/c31f58c7a7f470d5665935262ebd7455c7e4c7782eb525658d3dbf4b9403/urllib3-2.1.0-py3-none-any.whl.metadata
VERBOSE: Using cached urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB)
VERBOSE: Collecting certifi>=2017.4.17 (from requests)
VERBOSE: Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/64/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl.metadata
VERBOSE: Using cached certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB)
VERBOSE: Collecting httpcore<0.18.0,>=0.15.0 (from httpx<0.25.0,>=0.24.1->flet-runtime==0.19.0->flet-embed)
VERBOSE: Obtaining dependency information for httpcore<0.18.0,>=0.15.0 from https://files.pythonhosted.org/packages/94/2c/2bde7ff8dd2064395555220cbf7cba79991172bf5315a07eb3ac7688d9f1/httpcore-0.17.3-py3-none-any.whl.metadata
VERBOSE: Using cached httpcore-0.17.3-py3-none-any.whl.metadata (18 kB)
VERBOSE: Collecting sniffio (from httpx<0.25.0,>=0.24.1->flet-runtime==0.19.0->flet-embed)
VERBOSE: Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
VERBOSE: Collecting h11<0.15,>=0.13 (from httpcore<0.18.0,>=0.15.0->httpx<0.25.0,>=0.24.1->flet-runtime==0.19.0->flet-embed)
VERBOSE: Using cached h11-0.14.0-py3-none-any.whl (58 kB)
VERBOSE: Collecting anyio<5.0,>=3.0 (from httpcore<0.18.0,>=0.15.0->httpx<0.25.0,>=0.24.1->flet-runtime==0.19.0->flet-embed)
  Obtaining dependency information for anyio<5.0,>=3.0 from https://files.pythonhosted.org/packages/bf/cd/d6d9bb1dadf73e7af02d18225cbd2c93f8552e13130484f1c8dcfece292b/anyio-4.2.0-py3-none-any.whl.metadata
VERBOSE: Using cached anyio-4.2.0-py3-none-any.whl.metadata (4.6 kB)
VERBOSE: Collecting six>=1.9.0 (from repath<0.10.0,>=0.9.0->flet-core==0.19.0->flet-runtime==0.19.0->flet-embed)
VERBOSE: Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
VERBOSE: Using cached flet_embed-0.19.0-py3-none-any.whl (2.9 kB)
VERBOSE: Using cached flet_runtime-0.19.0-py3-none-any.whl (22 kB)
VERBOSE: Using cached flet_core-0.19.0-py3-none-any.whl (295 kB)
VERBOSE: Using cached requests-2.31.0-py3-none-any.whl (62 kB)
VERBOSE: Using cached certifi-2023.11.17-py3-none-any.whl (162 kB)
VERBOSE: Downloading charset_normalizer-3.3.2-py3-none-any.whl (48 kB)
VERBOSE: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.5/48.5 kB 445.2 kB/s eta 0:00:00
VERBOSE:
VERBOSE: Using cached idna-3.6-py3-none-any.whl (61 kB)
VERBOSE: Using cached urllib3-2.1.0-py3-none-any.whl (104 kB)
VERBOSE: Using cached httpx-0.24.1-py3-none-any.whl (75 kB)
VERBOSE: Using cached httpcore-0.17.3-py3-none-any.whl (74 kB)
VERBOSE: Using cached anyio-4.2.0-py3-none-any.whl (85 kB)
VERBOSE: Building wheels for collected packages: pillow
VERBOSE: Building wheel for pillow (pyproject.toml): started
VERBOSE: Building wheel for pillow (pyproject.toml): finished with status 'error'
VERBOSE: Failed to build pillow
/tmp/hostpython3.11_MDQKVP/python/lib/python3.11/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f335f01b210>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flet-embed/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f335ff7e790>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/flet-embed/
  error: subprocess-exited-with-error

  Γ— Building wheel for pillow (pyproject.toml) did not run successfully.
  β”‚ exit code: 1
  ╰─> [210 lines of output]
      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/PIL
      copying src/PIL/FontFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/MicImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageGrab.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/features.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageDraw2.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/__init__.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/_binary.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageEnhance.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageMorph.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PcfFontFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ContainerIO.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/BdfFontFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/JpegPresets.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/_version.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageWin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageFilter.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/__main__.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PaletteFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/BlpImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageColor.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageMode.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageCms.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageShow.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageStat.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/CurImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PdfParser.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PngImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/FitsImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImagePalette.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageDraw.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/GdImageFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageOps.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageMath.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/GimpGradientFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/_typing.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImagePath.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageQt.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/QoiImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageChops.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/SunImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/MspImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ExifTags.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/WalImageFile.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/TarIO.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/_util.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/TiffTags.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/_tkinter_finder.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PSDraw.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageSequence.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/FliImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageTk.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/_deprecate.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/PyAccess.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageFont.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/ImageTransform.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/GifImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/Image.py -> build/lib.linux-x86_64-cpython-311/PIL
      running egg_info
      writing src/pillow.egg-info/PKG-INFO
      writing dependency_links to src/pillow.egg-info/dependency_links.txt
      writing requirements to src/pillow.egg-info/requires.txt
      writing top-level names to src/pillow.egg-info/top_level.txt
      reading manifest file 'src/pillow.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.c'
      warning: no files found matching '*.h'
      warning: no files found matching '*.sh'
      warning: no files found matching '*.txt'
      warning: no files found matching '.flake8'
      warning: no previously-included files found matching '.appveyor.yml'
      warning: no previously-included files found matching '.clang-format'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching '.editorconfig'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching 'renovate.json'
      warning: no previously-included files matching '.git*' found anywhere in distribution
      warning: no previously-included files matching '*.so' found anywhere in distribution
      no previously-included directories found matching '.ci'
      no previously-included directories found matching 'wheels'
      adding license file 'LICENSE'
      writing manifest file 'src/pillow.egg-info/SOURCES.txt'
      copying src/PIL/_imagingcms.pyi -> build/lib.linux-x86_64-cpython-311/PIL
      copying src/PIL/_imagingft.pyi -> build/lib.linux-x86_64-cpython-311/PIL
      running build_ext

      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html

      Traceback (most recent call last):
        File "<string>", line 989, in <module>
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-eye2m4tr/normal/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 88, in run
          _build_ext.run(self)
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
          self.build_extensions()
        File "<string>", line 812, in build_extensions
      RequiredDependencyException: jpeg

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/tmp/hostpython3.11_MDQKVP/python/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/tmp/hostpython3.11_MDQKVP/python/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/hostpython3.11_MDQKVP/python/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-cfbvkra9/pillow_36564baea62c43589817ec8baf552177/_custom_build/backend.py", line 55, in build_wheel
          return super().build_wheel(wheel_directory, config_settings, metadata_directory)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 404, in build_wheel
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 389, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-install-cfbvkra9/pillow_36564baea62c43589817ec8baf552177/_custom_build/backend.py", line 49, in run_setup
          return super().run_setup(setup_script)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-eye2m4tr/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 1005, in <module>
      RequiredDependencyException:

      The headers or library files could not be found for jpeg,
      a required dependency when compiling Pillow from source.

      Please see the install instructions at:
         https://pillow.readthedocs.io/en/latest/installation.html

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pillow
ERROR: Could not build wheels for pillow, which is required to install pyproject.toml-based projects

and when using numpy i get the following

Flutter bootstrap directory: /tmp/flet_flutter_build_ENzQlGBqLE
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...Copying /mnt/d/NooR MaseR/backup/programming/python/MaseR Assistant 2/Chat Bot/assets/icon.jpeg to
/tmp/flet_flutter_build_ENzQlGBqLE/images
Copying /mnt/d/NooR MaseR/backup/programming/python/MaseR Assistant 2/Chat Bot/assets/splash.png to
/tmp/flet_flutter_build_ENzQlGBqLE/images
OK
Generating app icons...Resolving dependencies in /tmp/flet_flutter_build_ENzQlGBqLE... (4.0s)
Got dependencies in /tmp/flet_flutter_build_ENzQlGBqLE.
Building package executable... (7.6s)
Built flutter_launcher_icons:flutter_launcher_icons.
  ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.13.1)
  ════════════════════════════════════════════

β€’ Creating default icons Android
β€’ Overwriting the default Android launcher icon with a new icon
β€’ Overwriting default iOS launcher icon with new icon
Creating Icons for Web...              done
Creating Icons for Windows...          done
Creating Icons for MacOS...            done

βœ“ Successfully generated launcher icons
OK
Generating splash screens...Building package executable... (8.1s)
Built flutter_native_splash:create.
[Android] Creating default splash images
[Android] Creating dark mode splash images
[Android] Creating default android12splash images
[Android] Creating dark mode android12splash images
[Android] Updating launch background(s) with splash image path...
[Android]  - android/app/src/main/res/drawable/launch_background.xml
[Android]  - android/app/src/main/res/drawable-night/launch_background.xml
[Android]  - android/app/src/main/res/drawable-v21/launch_background.xml
[Android]  - android/app/src/main/res/drawable-night-v21/launch_background.xml
[Android] Updating styles...
[Android]  - android/app/src/main/res/values-v31/styles.xml
[Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project
[Android]  - android/app/src/main/res/values-night-v31/styles.xml
[Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project
[Android]  - android/app/src/main/res/values/styles.xml
[Android]  - android/app/src/main/res/values-night/styles.xml
[iOS] Creating  images
[iOS] Creating dark mode  images
[iOS] Updating ios/Runner/Info.plist for status bar hidden/visible
[Web] Creating images
[Web] Creating images
[Web] Creating background images
[Web] Creating CSS
[Web] Updating index.html
╔════════════════════════════════════════════════════════════════════════════╗
β•‘                       NEED A GREAT FLUTTER DEVELOPER?                      β•‘
╠════════════════════════════════════════════════════════════════════════════╣
β•‘                                                                            β•‘
β•‘   I am available!  Find me at https://www.linkedin.com/in/hansonjon/       β•‘
β•‘                                                                            β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

βœ… Native splash complete.
Now go finish building something awesome! πŸ’ͺ You rock! 🀘🀩
Like the package? Please give it a πŸ‘ here: https://pub.dev/packages/flutter_native_splash

OK
Packaging Python app...Building package executable... (4.6s)
Built serious_python:main.
Running package command
Creating asset directory: /tmp/flet_flutter_build_ENzQlGBqLE/app
Copying Python app from /mnt/d/NooR MaseR/backup/programming/python/MaseR Assistant 2/Chat Bot to /tmp/serious_python_tempTXOVVC
Configured mobile platform with sitecustomize.py at /tmp/serious_python_sitecustomizeCVMUHO/sitecustomize.py
Installing dependencies [flet-embed, requests, numpy] with pip command to /tmp/serious_python_tempTXOVVC/__pypackages__
Extracting Python distributive from /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/hostpython3.11_KPDADM
VERBOSE: /tmp/hostpython3.11_KPDADM/python/bin/python3 -m pip install --isolated --upgrade --target /tmp/serious_python_tempTXOVVC/__pypackages__ flet-embed requests numpy
VERBOSE: Collecting flet-embed
  Obtaining dependency information for flet-embed from https://files.pythonhosted.org/packages/ad/d1/a6b49f4fae4611d8b083da1f95afd78e38ffb3898290ffc8dcec73324bf6/flet_embed-0.19.0-py3-none-any.whl.metadata
VERBOSE: Using cached flet_embed-0.19.0-py3-none-any.whl.metadata (1.1 kB)
VERBOSE: Collecting requests
VERBOSE: Obtaining dependency information for requests from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata
VERBOSE: Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
VERBOSE: Collecting numpy
VERBOSE: Using cached numpy-1.26.3.tar.gz (15.7 MB)
VERBOSE: Installing build dependencies: started
VERBOSE: Installing build dependencies: finished with status 'done'
VERBOSE: Getting requirements to build wheel: started
VERBOSE: Getting requirements to build wheel: finished with status 'error'
/tmp/hostpython3.11_KPDADM/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

  Γ— Getting requirements to build wheel did not run successfully.
  β”‚ exit code: 1
  ╰─> [14 lines of output]
      + /tmp/hostpython3.11_KPDADM/python/bin/python3 /tmp/pip-install-ge4q5_n2/numpy_11313d1d524b4516ae23375aa2dc0083/vendored-meson/meson/meson.py setup /tmp/pip-install-ge4q5_n2/numpy_11313d1d524b4516ae23375aa2dc0083 /tmp/pip-install-ge4q5_n2/numpy_11313d1d524b4516ae23375aa2dc0083/.mesonpy-nzk6e6yj/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-ge4q5_n2/numpy_11313d1d524b4516ae23375aa2dc0083/.mesonpy-nzk6e6yj/build/meson-python-native-file.ini
      The Meson build system
      Version: 1.2.99
      Source dir: /tmp/pip-install-ge4q5_n2/numpy_11313d1d524b4516ae23375aa2dc0083
      Build dir: /tmp/pip-install-ge4q5_n2/numpy_11313d1d524b4516ae23375aa2dc0083/.mesonpy-nzk6e6yj/build
      Build type: native build
      Project name: NumPy
      Project version: 1.26.3

      ../../meson.build:1:0: ERROR: Unknown compiler(s): [['Cannot_compile_native_modules']]
      The following exception(s) were encountered:
      Running `Cannot_compile_native_modules --version` gave "[Errno 2] No such file or directory: 'Cannot_compile_native_modules'"

      A full log can be found at /tmp/pip-install-ge4q5_n2/numpy_11313d1d524b4516ae23375aa2dc0083/.mesonpy-nzk6e6yj/build/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

Γ— Getting requirements to build wheel did not run successfully.
β”‚ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

please note when i run the command on windows the process freezes and when running onWSL I get the error output like this, and thank you

FeodorFitsner commented 4 months ago

Pillow is a native package as well.

taaaf11 commented 4 months ago

Pillow is a native package as well.

do you mean, cpython?

FeodorFitsner commented 4 months ago

pillow has parts in C.

domino14 commented 4 months ago

ok? and what does that mean?

FeodorFitsner commented 4 months ago

https://flet.dev/docs/guides/python/packaging-app-for-distribution#native-python-packages