• kushagra kumar

    kushagra kumar

    4 months ago
    Hello all, I am trying to install prefect 2.0
    pip install -U "prefect==2.0b1"
    and I am encountering below error my machine
    Ubuntu 20.04.4 LTS
    .
    kushagra kumar
    Kevin Kho
    +1
    11 replies
    Copy to Clipboard
  • kushagra kumar

    kushagra kumar

    4 months ago
    The basic tutorials (https://orion-docs.prefect.io/tutorials/first-steps/) works even with the error but I am facing another issue while running a simple POC Regression model with prefect. Just want to make sure if the issue is not due to the above error.
    kushagra kumar
    1 replies
    Copy to Clipboard
  • Praveen Chaudhary

    Praveen Chaudhary

    4 months ago
    flow.register is giving me this error
    Praveen Chaudhary
    Anna Geller
    2 replies
    Copy to Clipboard
  • kushagra kumar

    kushagra kumar

    4 months ago
    Newbie ALERT: Trying to run a basic regression model using
    prefect 2.0
    . Facing below error:
    Traceback (most recent call last):
      File "/home/kku/work/prefect_poc/env/lib/python3.8/site-packages/prefect/engine.py", line 467, in orchestrate_flow_run
        result = await run_sync_in_worker_thread(flow_call)
      File "/home/kku/work/prefect_poc/env/lib/python3.8/site-packages/prefect/utilities/asyncio.py", line 52, in run_sync_in_worker_thread
        return await anyio.to_thread.run_sync(context.run, call, cancellable=True)
      File "/home/kku/work/prefect_poc/env/lib/python3.8/site-packages/anyio/to_thread.py", line 28, in run_sync
        return await get_asynclib().run_sync_in_worker_thread(func, *args, cancellable=cancellable,
      File "/home/kku/work/prefect_poc/env/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 818, in run_sync_in_worker_thread
        return await future
      File "/home/kku/work/prefect_poc/env/lib/python3.8/site-packages/anyio/_backends/_asyncio.py", line 754, in run
        result = context.run(func, *args)
      File "car_linearregression.py", line 104, in do_regression
        X,y = get_feat_and_target(df_car,target)
    TypeError: cannot unpack non-iterable PrefectFuture object
    It's a simple serial execution where a
    flow
    function calls different
    Task
    functions serially. very similar to the below tutorial on the official website.
    import requests
    from prefect import flow, task
    
    @task
    def call_api(url):
        response = requests.get(url)
        print(response.status_code)
        return response.json()
    
    @task
    def parse_fact(response):
        print(response["fact"])
        return 
    
    @flow
    def api_flow(url):
        fact_json = call_api(url)
        parse_fact(fact_json)
        return
    So far I have tried creating a new virtual env and install minimal packages required to run the ML model but had no luck. Could you please help me with this.
    kushagra kumar
    Anna Geller
    6 replies
    Copy to Clipboard
  • Jan Domanski

    Jan Domanski

    4 months ago
    Seeing a strange error when scaling up a prefect workflow
    File "/venv/lib/python3.8/site-packages/prefect/orion/orchestration/rules.py", line 534, in __aexit__
        await self.after_transition(*exit_context)
      File "/venv/lib/python3.8/site-packages/prefect/orion/database/dependencies.py", line 112, in async_wrapper
        return await fn(*args, **kwargs)
      File "/venv/lib/python3.8/site-packages/prefect/orion/orchestration/core_policy.py", line 190, in after_transition
        cache_key = validated_state.state_details.cache_key
    AttributeError: 'NoneType' object has no attribute 'state_details'
    Any idea how to debug/interpret this?
    Jan Domanski
    Kevin Kho
    +3
    11 replies
    Copy to Clipboard
  • Ben Muller

    Ben Muller

    4 months ago
    Hey Prefect, long time! I'm getting some buggy flows stuck running for 24 hrs + that should be done in 10 minutes approx. Is there any way I can set a maximum run time for my flows? I use an ECSRun config. Cheers.
    Ben Muller
    Kevin Kho
    6 replies
    Copy to Clipboard
  • n

    Nacho Rodriguez

    4 months ago
    Hello everyone! How should I manage Secrets on Prefect 2.0? I cant find information on the orion-docs website 😞
    n
    Kevin Kho
    +2
    5 replies
    Copy to Clipboard
  • e

    Elio

    4 months ago
    Hi, we are using prefect Local Agent wrapped in a docker container, we would like to switch to Docker Agent. Does someone knows if it's possible to setup a Docker Agent with Docker IN Docker (dind) ? Thanks !
    e
    Kevin Kho
    +1
    8 replies
    Copy to Clipboard
  • b

    Bhupesh Kemar Singh

    4 months ago
    Hi, How to install prefect CLI on mac ?
    b
    Kevin Kho
    2 replies
    Copy to Clipboard
  • Danilo Drobac

    Danilo Drobac

    4 months ago
    Has anybody successfully installed Prefect on a GCP Compute Engine instance? I'm following this tutorial but running into some issues during the installation:https://medium.com/the-prefect-blog/prefect-server-101-deploying-to-google-cloud-platform-47354b16afe2
    ModuleNotFoundError: No module named 'markupsafe'
    Danilo Drobac
    Kevin Kho
    +1
    13 replies
    Copy to Clipboard