Replies: 3 comments 1 reply
-
@yuhp-zts You imported an uninstalled dependency package, I changed the code. It works. ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please make sure following our language policy #1542 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How to import third party dependencies? For example I want to import json5 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a workflow and want to use the output of the previous node as the input for code execution in this node. However, during debugging, the code execution node throws an error. The code in the code execution node is as follows:
def main(arg1):
from datetime import datetime, timedelta
import pytz,json
text=json.loads(arg1)
return {"text":text}
error:Node 代码执行 run failed: error: operation not permitted
the output of the previous node is :{
"arg1": "{"start_date": "(datetime.now(pytz.timezone('Asia/Shanghai')) - timedelta(hours=5)).strftime('%Y-%m-%d %H:%M:%S')", "end_date": "(datetime.now(pytz.timezone('Asia/Shanghai'))).strftime('%Y-%m-%d %H:%M:%S')"}"
}
Beta Was this translation helpful? Give feedback.
All reactions