arnauorriols / node-red-contrib-python-function

Write Python functions in Node-RED!
MIT License
41 stars 23 forks source link

Error on debug node #17

Open jianlao8 opened 2 years ago

jianlao8 commented 2 years ago

Hi,

I am using Node-red 2.2. I created a simple flow by use inject, python-function and debug nodes. Flowing code is in the python-function node:

import yfinance as yf

df = yf.download("AAPL", start="2021-12-01", end="2022-02-01") msg['payload'] = df.tail()

return msg


It runs fine in a python file. But I got errors on debug node in Node-Red. One of the error is following:

Traceback (most recent call last): File "", line 75, in


Could you help to resolve the issue?

Thank you so much!