bumpy-cartoon-62963
01/23/2025, 3:49 PMgorgeous-caravan-46442
01/28/2025, 7:50 PMripe-smartphone-56353
01/29/2025, 1:14 PMshy-morning-17240
02/10/2025, 8:37 PMshy-morning-17240
02/10/2025, 8:38 PMshy-morning-17240
02/10/2025, 8:39 PMshy-morning-17240
02/10/2025, 8:50 PMpurple-father-70173
02/10/2025, 10:50 PMthousands-airline-37812
02/12/2025, 2:44 PMTrace:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flytekit/bin/entrypoint.py", line 164, in _dispatch_execute
task_def = load_task()
File "/usr/local/lib/python3.10/site-packages/flytekit/bin/entrypoint.py", line 583, in load_task
return resolver_obj.load_task(loader_args=resolver_args)
File "/usr/local/lib/python3.10/site-packages/flytekit/core/utils.py", line 312, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/flytekit/core/python_auto_container.py", line 271, in load_task
task_module = importlib.import_module(name=task_module) # type: ignore
File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/root/browser_test.py", line 2, in <module>
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
Message:
ModuleNotFoundError: No module named 'selenium'
from flytekit import task, workflow
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
import time
import subprocess
@task
def open_google() -> str:
install_selenium()
# # # service = Service('/usr/local/bin/chromedriver')
# # # options = webdriver.ChromeOptions()
# # # driver = webdriver.Chrome(service=service, options=options)
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
driver.get("<https://www.google.com>")
time.sleep(3)
title = driver.title
driver.quit()
return f"Sayfa baΕlΔ±ΔΔ±: {title}"
@workflow
def browser_test_wf() -> str:
return open_google()
if __name__ == "__main__":
print(browser_test_wf())
proud-apple-49696
02/13/2025, 3:42 PMalert-kitchen-27022
02/17/2025, 5:18 PM/opt/homebrew/lib/python3.11/site-packages/flytekit/clients/grpc_utils/wrap_exception_interceptor.py:32 in _raise_if_exc βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ―
FlyteSystemUnavailableException: Flyte cluster is currently unavailable. Please make sure the cluster is up and running.
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1739812143.306775 1021532 <http://init.cc:229]|init.cc:229]> grpc_wait_for_shutdown_with_timeout() timed out.
Any pointers to an existing issue like this or documentation reference will be helpful. Thank youthousands-airline-37812
02/18/2025, 11:31 AMfrom flytekit import ImageSpec, Resources, task, workflow
from playwright.sync_api import sync_playwright
install_commands = [
"apt-get update",
"apt-get install -y libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libxkbcommon0 libpango-1.0-0 libcairo2 libasound2 libatspi2.0-0",
"python -m pip install --upgrade pip",
"python -m pip install playwright==1.50.0",
"python -m playwright install chromium",
]
image_spec = ImageSpec(
name="playwright-flyte",
base_image="<http://ghcr.io/flyteorg/flytekit:py3.10-1.15.0|ghcr.io/flyteorg/flytekit:py3.10-1.15.0>",
packages=["playwright==1.50.0"],
registry="localhost:30000",
commands=install_commands
)
@task(container_image=image_spec)
def test_google_title() -> str:
with sync_playwright() as playwright:
browser = playwright.chromium.launch(headless=True)
page = browser.new_page()
# Google ana sayfasΔ±na git
page.goto("<https://www.google.com>")
# Sayfa baΕlΔ±ΔΔ±nΔ± al
title = page.title()
# TarayΔ±cΔ±yΔ± kapat
browser.close()
return title
@workflow
def browser_test_wf() -> str:
return test_google_title()
if __name__ == "__main__":
print(browser_test_wf())
I want to try run above code. But i am getting below error at kubernetes logs. I didn't solve problem
. Please help me
Traceback (most recent call last):
File "/opt/micromamba/envs/runtime/bin/pyflyte-fast-execute", line 4, in <module>
from flytekit.bin.entrypoint import fast_execute_task_cmd
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/__init__.py", line 222, in <module>
from flytekit.core.array_node_map_task import map_task
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/array_node_map_task.py", line 15, in <module>
from flytekit.core.array_node import array_node
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/array_node.py", line 6, in <module>
from flytekit.core import interface as flyte_interface
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/interface.py", line 25, in <module>
from flytekit.core import context_manager
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/context_manager.py", line 32, in <module>
from flytekit.core.data_persistence import FileAccessProvider, default_local_file_access_provider
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/core/data_persistence.py", line 671, in <module>
data_config=DataConfig.auto(),
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/configuration/__init__.py", line 657, in auto
config_file = get_config_file(config_file)
File "/opt/micromamba/envs/runtime/lib/python3.10/site-packages/flytekit/configuration/file.py", line 259, in get_config_file
if current_location_config.exists():
File "/opt/micromamba/envs/runtime/lib/python3.10/pathlib.py", line 1290, in exists
self.stat()
File "/opt/micromamba/envs/runtime/lib/python3.10/pathlib.py", line 1097, in stat
return self._accessor.stat(self, follow_symlinks=follow_symlinks)
PermissionError: [Errno 13] Permission denied: 'flytekit.config'
thousands-airline-37812
02/20/2025, 8:54 AMshy-morning-17240
02/21/2025, 12:03 AMflytectl get projects
and successfully get my projects in my cluster
--------------- --------------- ---------------------------
| ID (4) | NAME | DESCRIPTION |
--------------- --------------- ---------------------------
| ##### | ##### | ############# |
--------------- --------------- ---------------------------
| flyteexamples | flyteexamples | flyteexamples description |
--------------- --------------- ---------------------------
| flytetester | flytetester | flytetester description |
--------------- --------------- ---------------------------
| flytesnacks | flytesnacks | flytesnacks description |
--------------- --------------- ---------------------------
4 rows
I can also reach my minio instance in the cluster without port-forwarding.
However, when I try to run python code on the remote server using pyflyte -v run --remote -p ###### -d development some_example.py some_workflow
, I get the following error
...
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "DNS resolution failed for flyte.somedomain.com: C-ares status is not ARES_SUCCESS qtype=A
name=flyte.somedomain.com is_balancer=0: Timeout while contacting DNS servers"
debug_error_string = "UNKNOWN:Error received from peer {grpc_message:"DNS resolution failed for flyte.somedomain.com:
C-ares status is not ARES_SUCCESS qtype=A name=flyte.somedomain.com is_balancer=0: Timeout while contacting DNS servers",
grpc_status:14, created_time:"2025-02-20T15:43:24.043117-08:00"}"
...
FlyteSystemUnavailableException: Flyte cluster is currently unavailable. Please make sure the cluster is up and running.
...
RuntimeError: Failed to get signed url for fastec41b71eb12116e44b8039fa355d3577.tar.gz.
All the pods are running normally, and when configuring flyte client to use port-forwarded address, everything works fine.
I also checked to see if I could find my configured hostname from a test pod running in the same cluster (running host <http://flyte.somedomain.com|flyte.somedomain.com>
) and I get back the flyteadmin's pod IP, so it doesn't seem to be an issue with an internal cluster DNS lookup
Any ideas as to why flytectl can talk to the flyteadmin pod running in the cluster, but pyflyte fails??average-finland-92144
02/21/2025, 1:04 PMfierce-farmer-40956
02/21/2025, 1:19 PMshy-morning-17240
02/21/2025, 5:46 PMResponse: <?xml version="1.0" encoding="UTF-8"?>
<Error><Code>BadDigest</Code><Message>The Content-Md5 you specified did not match what we
received.</Message><Key>flytesnacks/development/CB66MYDKJETQMEK6WZSLGPS3AM======/fastec41b71eb12116e44b8039fa355d3577.tar.gz</Key><Buck
etName>flyte</BucketName><Resource>/flyte/flytesnacks/development/CB66MYDKJETQMEK6WZSLGPS3AM======/fastec41b71eb12116e44b8039fa355d3577
.tar.gz</Resource><RequestId>18264962F16175E9</RequestId><HostId>dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8</Host
Id></Error>
I believe this is a race-condition type error (but I might be wrong). Any idea why this might happen, especially because it doesn't happen when port forwarding both flyte-admin and minio? (I also noticed this happens when port forwarding flyte-admin but using kubernetes ingress for minio)shy-morning-17240
02/25/2025, 5:24 PMthousands-airline-37812
02/27/2025, 1:41 PMproud-answer-87162
04/16/2025, 8:10 PM# -- Domains configuration for Flyte projects. This enables the specified number of domains across all projects in Flyte.
domain:
domains:
- id: development
name: development
- id: staging
name: staging
- id: production
name: production
is there a way to do that using flyte-binary? anyone ever look to see how much work would be required to extend the chart to support the config?fierce-farmer-40956
04/22/2025, 5:54 PMfierce-farmer-40956
05/02/2025, 3:53 PMpurple-boots-20156
05/28/2025, 2:02 PMvictorious-rainbow-91536
06/06/2025, 11:16 AMvictorious-rainbow-91536
06/06/2025, 11:21 AMpurple-father-70173
06/18/2025, 7:08 PMhigh-park-16144
07/04/2025, 12:32 PMworried-airplane-87065
07/07/2025, 5:59 PMshy-morning-17240
07/25/2025, 11:35 AMpanic: authentication error! Original Error: <nil>, Auth Error: failed to issue token. Error: failed to get new token: failed to get new token: oauth2: "invalid_client" "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)."
Why could this be happening?brainy-raincoat-7497
07/30/2025, 4:11 PM