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
Running into an error "Complex assignments are not allowed" #277
Comments
@liqul - I am still facing the issue with the As a workaround, I’m considering simplifying the assignment as follows: However, this modification doesn’t return the description of the data pulled, which is part of the expected behavior. Would you recommend simplifying the assignment like this? Or is there another way we can resolve this issue while still pulling the description of the data? Thank you for your time and consideration. |
May I know more on why you need to turn on the code verification on since this is blocked by a pre-defined verification rule. |
Created a PR to fix this issue. |
The previous check accidently forbids complex assignment, which should be allowd. See this issue: #277
I enabled code verification to restrict TaskWeaver's package installation and import capabilities. This ensures TaskWeaver only accesses whitelisted modules in allowed_modules config setting. This also helps prevent unauthorized system file access and files from other sessions. I think this added security is particularly important for local runs outside of Docker. |
Please pull the latest version and try again. |
I pulled the latest version and it's working without issues now. Thanks @liqul! Closing the issue now. |
Describe the bug
Running into the following error when trying to call sql_pull_data plugin -
Error on line 1: df_employees, description_employees = sql_pull_data("pull data from employees table") => Complex assignments are not allowed
To Reproduce
Steps to reproduce the behavior:
"code_interpreter.code_verification_on": true
Expected behavior
I expect TaskWeaver to pull the data from the db along with the description of what it pulled.
Environment Information:
"code_interpreter.code_verification_on": true
The text was updated successfully, but these errors were encountered: