Hi! I have a follow up problem to my previous post...
# ask-community
k
Hi! I have a follow up problem to my previous post with conda env. I am using prefect.yaml as my main source of config for dags and now I am dealing with wrong paths problem. What I need is to pull code from repo (i do it with pull step in yaml) and then point correctly to entrypoint of my py scripy. My yaml:
Copy code
name: cross
prefect-version: 2.11.5

# build section allows you to manage and build docker images
build:

# push section allows you to manage if and how this project is uploaded to remote locations
push:

# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect.deployments.steps.git_clone:
    repository: my-repo.git
    branch: main
    access_token: '{{ prefect.blocks.secret.gitlab }}'
- prefect.deployments.steps.set_working_directory:
    directory: /tmp/.*/my-repo/dags/cross/
- prefect.deployments.steps.run_shell_script:
    id: conda-env-setup
    script: conda activate my-env
    stream_output: true

# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: name
  version:
  tags: []
  description:
  entrypoint: cross_flow.py:flow_cross
  parameters: {}
  work_pool:
    name: w-p
    work_queue_name: w-q
    job_variables: {}
  schedule:
Unfortunetly
set_working_directory
show error file not found and
run_shell_script
shows that i need to specify conda init before changing which also not work. Do you have any recommendation to this situation? Thanks!