https://dagster.io/ logo
Title
k

Karan Nanda

04/10/2023, 12:01 PM
hi All, I'm new to dagster and i get the following error on using the simple dagster project generated by chat-gpt (using this to learn dagster)
mkdir my_dagster_project
cd my_dagster_project
pip install dagster pandas
import pandas as pd
from dagster import pipeline, solid

@solid
def read_csv_file(context):
    df = pd.read_csv('numbers.csv')
    return df['number']

@solid
def compute_sum(context, numbers):
    total = sum(numbers)
    return total

@pipeline
def sum_pipeline():
    numbers = read_csv_file()
    compute_sum(numbers)
dagster pipeline execute -f sum_pipeline.py
Error is: Usage: dagster [OPTIONS] COMMAND [ARGS]... Try 'dagster -h' for help. Error: No such command 'pipeline'.
q

Qwame

04/10/2023, 5:25 PM
What version of Dagster are you running?
Pipelines and solids are deprecated. Dagster uses ops ans jobs now
1
c

claire

04/10/2023, 8:09 PM
Yep, as Qwame mentioned, pipelines are now deprecated. Instead you can use jobs:
dagster job execute ....
k

Karan Nanda

04/11/2023, 6:27 AM
Thank you Qwame and claire 🙂 ... I'll try this out