Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'main' is not defined #46

Open
it-xiaomi opened this issue Aug 22, 2024 · 1 comment
Open

NameError: name 'main' is not defined #46

it-xiaomi opened this issue Aug 22, 2024 · 1 comment

Comments

@it-xiaomi
Copy link

it-xiaomi commented Aug 22, 2024

The code execution nodes in the workflow can run normally, but the same code cannot be executed by the code interpreter in the tool,error info:{"simple_code": "tool invoke error: Traceback (most recent call last):\n File "/var/sandbox/sandbox-python/tmp/d9bd9eb0_ae26_4744_a99a_e6406d7d85eb.py", line 48, in \n File "", line 6, in \nNameError: name 'main' is not defined\nerror: exit status 255\n"}

@DirtyRattie
Copy link

Functions in dify code runner can only be named "main", is this the problem by any chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants