flet icon indicating copy to clipboard operation
flet copied to clipboard

Error running app after adding selenium library to my app

Open sjswnf opened this issue 1 year ago • 2 comments

I am trying to build a windows app.

I added selenium library to my app. It runs well before building(using 'flet run' command).

But it fails after building windows app(using 'flet build windows').

This is the error message when running .exe file after building.


Traceback (most recent call last): File "", line 40, in File "", line 229, in run_module File "", line 88, in run_code File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95\main.py", line 1, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages\flet_init_.py", line 1, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\flet_runtime_init_.py", line 1, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\flet_core_init_.py", line 178, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\flet_core\page.py", line 65, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\flet_runtime\auth_init_.py", line 1, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\flet_runtime\auth\authorization.py", line 8, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpx_init_.py", line 2, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpx_api.py", line 6, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpx_client.py", line 32, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpx_transports\default.py", line 32, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpcore_init_.py", line 1, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpcore_api.py", line 5, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpcore_sync_init_.py", line 1, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpcore_sync\connection.py", line 12, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\httpcore_synchronization.py", line 11, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\trio_init_.py", line 76, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\trio_path.py", line 99, in File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\trio_path.py", line 116, in Path File "C:\Users\JJ\AppData\Local\Temp\serious_python_tempd9e19e95_pypackages_\trio_path.py", line 41, in decorator AssertionError

Flet version (pip show flet):

Name: flet
Version: 0.20.2
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

Operating system: Windows 11

sjswnf avatar Mar 17 '24 13:03 sjswnf

I also have the same issue with the same exact output. You can get around it by using flet pack instead

808Grayson avatar Mar 22 '24 02:03 808Grayson