Dear,
I try to integrate my Python script into KNIME but fail.
Following is my python script (this script works when I execute individually in python)
# -*- coding: utf-8 -*-
# Copy input to output
output_table = input_table.copy()
import os
import sys
import time
import numpy as np
import pandas as pd
import sqlalchemy as sqla
import datetime
import futuquant as ft # 导入futuquant api
from sqlalchemy import create_engine
os.environ["NLS_LANG"] = ".AL32UTF8"
pd.options.display.encoding = sys.stdout.encoding # display encoding setup
# Instantiate the quotecontext object
quote_ctx = ft.OpenQuoteContext(host="127.0.0.1", port=11111)
I use the KNIME node "Python Script (1=>1)(Labs)" under Python (major version 2&3) category
When I execute it, the following errors show up :
ERROR Python Script (1⇒1) (Labs) 0:61 Execute failed: ("EOFException"): null
ERROR PythonKernel UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 222: invalid start byte
May I know what does it mean and how to resolve ?? Many Thanks (Note: I'm using Anaconda Python 3.6.1)