cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Data Intelligence Python3 Operator

0 Kudos
1,960

Hi Everyone,

I am trying to read pickle file from SDL data lake but it seems unable to map with the input port.It works fine in the Jupyter notebook but unable to map the file to input port using python3 operator .

Here is the below error

Here is the python code

import pickle

import pandas as pd

import numpy as np

import re

import nltk

SVM = None

text = None

def on_input(data):

with open(data, 'rb') as data1:

SVM = pickle.load(data1)

data1.close()

api.send("output", str(SVM))

api.set_port_callback("input1", on_input)

I have even tried to set the input port as byte but it is not mapping therefore had to use string type for input port .Any thoughs as how to map the pickle file from DI_DATA_LAKE (SDL) to python opertor

Thanks

View Entire Topic
devangelgb
Explorer
0 Kudos

Hello mohammad.safiullah,

I have a similar problem. Could you help me with this problem.

Regards