camel
camel copied to clipboard
[BUG] AugAssign is not supported in `PythonInterpreter`
Required prerequisites
- [X] I have read the documentation https://camel-ai.github.io/camel/camel.html.
- [X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
- [ ] Consider asking first in a Discussion.
What version of camel are you using?
0.1.1
System information
3.10.11 (main, May 15 2023, 19:29:30) [Clang 14.0.6 ] darwin 0.1.1
Problem description
1 code_prompt = CodePrompt("a = 1 + 1\na += 1", code_type="python")
----> 2 output, state = code_prompt.execute()
InterpreterError: Evaluation of the code stopped at node 1. See:
AugAssign is not supported.
Reproducible example code
The Python snippets:
Command lines:
Extra dependencies:
Steps to reproduce:
Traceback
No response
Expected behavior
No response
Additional context
No response
Thank you for your feedback! BTW, #400 changes the default code interpreter to subprocess interpreter. It can be a work around. Could you please check that?