Hey Guys I am trying to deploy my first prefect 3 ...
# prefect-ui
h
Hey Guys I am trying to deploy my first prefect 3 flow using the
prefect.yaml
I followed the guide in the GitHub repo. But I keep getting this error
Copy code
TypeError: No method for generating JsonSchema for core_schema.type='invalid' (expected: GenerateEmptySchemaForUserClasses.invalid_schema)
for reference here is my
prefect.yaml
content
Copy code
# Generic metadata about this project
name: flows
prefect-version: 3.0.0



# build section allows you to manage and build docker images
build:
  - prefect_docker.deployments.steps.build_docker_image:
      id: build-image
      requires: prefect-docker>=0.6.1
      image_name: "lab-prefect-3"
      tag: latest
      dockerfile: Dockerfile
      platform: "linux/amd64"

## push section allows you to manage if and how this project is uploaded to remote locations
push:
  - prefect_docker.deployments.steps.push_docker_image:
      requires: prefect-docker>=0.6.1
      image_name: "{{ build-image.image_name }}"
      tag: "{{ build-image.tag }}"

# the definitions section allows you to define reusable components for your deployments
definitions:
  tags: &common_tags
    - "eks"
  work_pool: &common_work_pool
    name: "my-pool"
    job_variables:
      image: "{{ build-image.image }}"

# the deployments section allows you to provide configuration for deploying flows
deployments:
  - name: "lab-prefect-3-deployment"
    tags: *common_tags
    schedule: null
    entrypoint: "src/flows/flow.py:hello"
    parameters:
      name: "Hakim"
    work_pool: *common_work_pool
and here is my project tree structure:
Copy code
.
├── Dockerfile
├── README.md
├── prefect.yaml
├── pyproject.toml
└── src
    ├── flows
    │   └── flow.py
    └── prefect_pack
        ├── __init__.py
        └── utils.py