Open diopresi opened 1 month ago
Hi diopres,
Thank you for your feedback. I'm happy to address your concern.
pip install agilecoder
pip install git+https://github.com/tree-sitter/tree-sitter-python.git@master
Be sure to check whether tree-sitter-python is installed successully by testing the statement: import tree_sitter_python
If you still have the problem, please provide more details about your system (OS, python version).If you have any concerns, don't hesitate to reach out to us.
checked out new-flow, pip install -e AgileCoder. "Successfully installed agilecoder-0.2.0 codebleu-0.7.0 google-auth-oauthlib-1.2.1 markdown-3.5.2 nltk-3.8.1 oauthlib-3.2.2 pygame-2.6.0 requests-oauthlib-2.0.0 tenacity-8.2.3 tiktoken-0.6.0 tree-sitter-0.22.3" so tree-sitter is there.
import tree_sitter_python
ModuleNotFoundError: No module named 'tree_sitter_python'
pip install git+https://github.com/tree-sitter/tree-sitter-python.git@master seems to work
Hi @minhngh,
The issues persist despite trying several approaches. Here’s a summary of what I’ve attempted so far:
Using PyPi Installation:
pip install agilecoder
and pip install git+https://github.com/tree-sitter/tree-sitter-python.git@master
.tree-sitter
installation by importing tree_sitter_python
, which was successful.AttributeError: 'NoneType' object has no attribute 'group'
from extract_pl_framework_text
).Using Source Code:
On both case, When passing the --model
parameter with GPT_4
, the following error occurs:
File "/AgileCoder/agilecoder/camel/agents/chat_agent.py", line 53, in msg
raise RuntimeError("error in ChatAgentResponse, info:{}".format(str(self.info)))
RuntimeError: error in ChatAgentResponse, info:{'id': None, 'usage': None, 'termination_reasons': ['max_tokens_exceeded_by_camel'], 'num_tokens': 4123}
Any insights or further steps to resolve this issue would be appreciated. If you don't mind could you share the baseline requirement to run it?
Hi diopres,
Thank you for your feedback. I'm happy to address your concern.
- Regarding the error: KeyError: 'done-works': we speculate there is a potential issue with the installation, which may lead to this bug. To resolve this error, we recommend that you create a new environment and then reinstall by running
pip install agilecoder
pip install git+https://github.com/tree-sitter/tree-sitter-python.git@master
Be sure to check whether tree-sitter-python is installed successully by testing the statement: _import tree_sitterpython If you still have the problem, please provide more details about your system (OS, python version).- Regarding the problem with the source code: In fact, the source code on the master branch is obsolete, so there may be some problems with this branch. The latest source code is on the new-flow branch, but it should be noted that it hasn't been tested carefully. If you want to run from source code, you can clone the new-flow branch at the 4a1b863 commit.
If you have any concerns, don't hesitate to reach out to us.
Hi diopres,
Thank you for your feedback. Below are our responses:
You can try following our steps. If the error still persists, our library actually logs each run in a file in the folder ~/WareHouse/. Can you provide log files with erroneous runs for deeper analysis?
Description:
I encountered multiple issues while trying to create a software project using AgileCoder.
Steps to Reproduce:
Using the Command-Line Interface from PyPi:
tree-sitter-python
.After retrying, I encountered the following errors:
Running Directly from Source Code:
I also tried running the project directly from the source code and encountered the following error:
Additional Context: I am running this inside a virtual environment. Please advise on potential fixes or workarounds.
Expected Behavior: The command should execute without errors and generate the tic-tac-toe game.
Actual Behavior: The command fails with a
KeyError: 'done-works'
and other warnings when using the CLI. Running directly from the source code results in aRuntimeError
due to exceeding the maximum token limit.