camel icon indicating copy to clipboard operation
camel copied to clipboard

[BUG] AugAssign is not supported in `PythonInterpreter`

Open lightaime opened this issue 1 year ago • 1 comments

Required prerequisites

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

lightaime avatar Dec 28 '23 10:12 lightaime

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?

dandansamax avatar Jan 10 '24 10:01 dandansamax