Matt Alhonte
09/15/2022, 1:50 AMValueError: dictionary update sequence element #0 has length 1; 2 is required
Anat Tal Gagnon
09/15/2022, 3:47 AMRobin Weiß
09/15/2022, 6:37 AMEncountered exception during execution:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 1103, in begin_task_run
return await orchestrate_task_run(
File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 1186, in orchestrate_task_run
state = await propose_state(
File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 1484, in propose_state
raise prefect.exceptions.Abort(response.details.reason)
prefect.exceptions.Abort: This run has already terminated.
This really tells me absolutely nothing, anyone have an idea maybe?
A second error that I see again and again is this one:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 186, in connect_tcp
addr_obj = ip_address(remote_host)
File "/usr/local/lib/python3.10/ipaddress.py", line 54, in ip_address
raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address')
ValueError: 'api.prefect.cloud' does not appear to be an IPv4 or IPv6 address
Which again seems super cryptic to me 😅
Any hints to where I could start digging would be greatly appreciated, thanks 🙂Christian Petersen
09/15/2022, 7:56 AMprefect agent start -q 'foo'
for example, I’d like to create and apply deployments using the Deployment.build_from_flow
syntax described here https://docs.prefect.io/concepts/deployments/#create-a-deployment-from-a-python-object .
Then I want this python script to run before I start the agent…
from prefect.deployments import Deployment
from flows.deployments.example_script import flow_name
deployment = Deployment.build_from_flow(
flow=flow_name,
name="Test",
work_queue_name="test",
)
deployment.apply()
I’ve tried running it standalone and in Docker but I get a Attribute Error module 'flows.deployments.example_script.flow_name' has no attribute 'name'
If I use setattr(flow_name, 'name', 'something)'
before the definition of deployment
then I don’t get this exact error but this ValueError: Could not determine flow's file location.
I’m unsure of where to begin and would love any sort of helpVadym Dytyniak
09/15/2022, 10:48 AMasyncio.get_event_loop()
.
RuntimeError: There is no current event loop in thread 'AnyIO worker thread'.
Do you have any idea how to avoid it?Ross Teach
09/15/2022, 10:56 AMYousef Hosny
09/15/2022, 11:10 AMrun_checkpoint_validation
I get the following error but it runs fine locally.
Also, the s3 storage used to store flow code has the great_expectations directory in it..Michael Maletich
09/15/2022, 11:50 AMimport asyncio
from prefect import flow, task
@task
async def slow_task(a_value: int) -> int:
await asyncio.sleep(1)
return a_value
@flow
async def my_flow(a_value: int) -> int:
return await slow_task(a_value)
if __name__ == "__main__":
result: int = asyncio.run(my_flow(42))
print(result)
results from mypy:
test.py:13: error: Incompatible types in "await" (actual type "None", expected type "Awaitable[Any]")
test.py:17: error: Argument 1 to "run" has incompatible type "None"; expected "Coroutine[Any, Any, <nothing>]"
Any tips on making typings work with asyncio and prefectVadym Dytyniak
09/15/2022, 1:11 PMtornado
that tries to get current event loop and fails.Erik Kristiansen
09/15/2022, 1:35 PMRoss Teach
09/15/2022, 1:44 PMprefect.exceptions.PrefectHTTPStatusError: Server error '500 Internal Server Error' for url '<https://api.prefect.cloud/api/accounts/043b2649-9d07-4c5e-8225-521ba2275e68/workspaces/689b139b-a725-4c2b-b167-86a705b8789d/task_runs/7d0c4bc0-a212-49b3-94e2-f1b9bdee765f/set_state>'
Response: {'exception_message': 'Internal Server Error'}
For more information check: <https://httpstatuses.com/500>
Mark Li
09/15/2022, 3:03 PMError: failed to fetch <https://prefecthq.github.io/prefect-helm/charts/orion/prefect-orion-0.5.1.tgz> : 404 Not Found
The target version is: 2.3-python3.9.
Has something changed to where this file no longer exists? That assumption doesn’t seem quite right.Sharvil Popli
09/15/2022, 3:04 PMstart_date = Parameter("start_date", default="2022-09-11")
What I see on the UI after registering the flow is in the first attached image. start_date shows up as string. What I’d like to see by default is in the second image, I’d like start_date to show up as date type instead of as string with the date time picker functionality. How can I achieve this?José Duarte
09/15/2022, 4:36 PMSeth Coussens
09/15/2022, 4:51 PMChris Gunderson
09/15/2022, 5:15 PMNick Coy
09/15/2022, 5:34 PMTony Piazza
09/15/2022, 5:51 PMSlackbot
09/15/2022, 6:27 PMKrishnan Chandra
09/15/2022, 6:33 PMAnyUrl
or subclasses within the code, do you have any idea what might be causing the pickle error?Ching
09/15/2022, 7:10 PMfrom prefect import flow
import pandas as pd
import numpy as np
@flow
def do_nothing(df):
return None
if __name__ == "__main__":
df = pd.DataFrame(np.random.random((10_000, 20)))
do_nothing(df)
Traceback in threadHarrison Kim
09/15/2022, 7:35 PMHallen Maia
09/15/2022, 8:35 PMkiran
09/15/2022, 9:34 PMPranit
09/16/2022, 6:02 AMJosé Duarte
09/16/2022, 10:37 AMeddy davies
09/16/2022, 12:06 PMChris Gunderson
09/16/2022, 1:39 PMStéphan Taljaard
09/16/2022, 1:44 PMModuleNotFoundError: No module named 'gcsfs'
It's strange because the environment that my agent is running in has gsfs
installed and I have "EXTRA_PIP_PACKAGES": "gcsfs"
in my Docker Block...
Any tips?Mark Li
09/16/2022, 4:25 PMMark Li
09/16/2022, 4:25 PMRyan Peden
09/17/2022, 1:31 PMPREFECT_ORION_UI_API_URL
environment variable in the container where Orion is running.
Set it to whatever hostname and port you use to load the UI in your web browser, and add /api
to the end of the address. So, for example, if you access the UI at <http://my-orion-instance>
, you'd set PREFECT_ORION_UI_API_URL
to <http://my-orion-instance/api>
.Mark Li
09/19/2022, 12:36 PMRyan Peden
09/19/2022, 1:08 PMMark Li
09/19/2022, 1:56 PMRyan Peden
09/20/2022, 12:54 PMMark Li
09/20/2022, 12:58 PMRyan Peden
09/22/2022, 8:10 PMPREFECT_ORION_UI_API_URL
should have worked here - it works well in Docker Compose, and I'd expect it to work the same way in k8s as well, but in your case it doesn't appear to be.Mark Li
09/23/2022, 1:40 PMRyan Peden
09/23/2022, 7:11 PM