duckdb / dbt-duckdb

dbt (http://getdbt.com) adapter for DuckDB (http://duckdb.org)
Apache License 2.0
797 stars 69 forks source link

Python model failed: no moudled named numpy #217

Closed ReneTC closed 11 months ago

ReneTC commented 11 months ago

Trying to make a transformation staging layer with python. Using this package, I've made this python file in models:

def model(dbt, session):
    dbt.config(materialized="table")
    get_table = dbt.source("tap-spreadsheets-anywhere", "tracks").df()

    # feature calcuations goes here. 
    final_df = get_table.copy()
    final_df['feature1_test'] = 1
    return final_df

but on a call I get:

>>> meltano invoke dbt-duckdb:run
   Python model failed:
   No module named 'numpy'

asking here, as I got this working on a pure coredb build. Anyone who tried getting this error?