Where is the make_frames module?

希
Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 21 Partner
edited July 16 in Academy Discussions

2024/04/04 18:43 Solved, I imported some modules before run build all.

I'm now building Instructions of developer certificate.

First, I imported Developer Assessment project and try to build all

But It failed by following error. and its not expected here

Error in Python process: At line 4: <class 'ModuleNotFoundError'>: No module named 'make_frames'

The code causing the error is

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
# -*- coding: utf-8 -*-
import dataiku
from make_frames import parseColumns, stackData, nameColumns, readFolderContent

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
# Read recipe inputs
heart_disease = dataiku.Folder("BbVlUqgO")

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
paths = heart_disease.list_paths_in_partition()

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
names_data = '/heart-disease.names'
paths.remove(names_data)
training_data = paths

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
text_data = readFolderContent(names_data, heart_disease)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
cols = parseColumns(text_data)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
df = stackData(training_data, heart_disease)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
df = nameColumns(df, cols)

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
# Write recipe outputs
cleveland_heart_disease = dataiku.Dataset("heart_disease")
cleveland_heart_disease.write_with_schema(df)

I tried some python env but all failed.

I also tried to import make_frames to my python env but its not found.

Anyone know how to run this project?

Answers

  • Sean
    Sean Dataiker, Alpha Tester, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer Posts: 168 Dataiker

    Hi @鳥越希
    , the make_frames module should be in the project library of the starter project. Is that not true for you?

  • 希
    Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 21 Partner

    Sorry, it was my fault.

    It looks like I forgot to import some libraries before running build all and that's what's causing this error.

    thank you for answering!

  • Sean
    Sean Dataiker, Alpha Tester, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer Posts: 168 Dataiker

    Great @鳥越希
    ! Good luck with the rest!

Setup Info
    Tags
      Help me…