-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
the code fails after giving additional information at the questions. #754
Comments
stuck in same bug 👍 |
Same issue, bumping! |
same here . |
Same here |
Same for me. running gpt-3.5-turbo and have tried python 3.9.18 and 3.11.5. same error in both. |
Same python version 3.11.3 |
Same, tried stepping back to python version 3.11.5, got the same error message. |
Actually might originate from Langchain, since |
Same issue here... |
install development version via |
this works, thank you |
@jslomkowski @Donneker is this normal ? (noob python user here). I'm on Mac ventura 13.0.1). Defaulting to user installation because normal site-packages is not writeable |
You are right, I had not exactly the same error as you had. but the version installed via pip install did not work. so what I did is, check the source project gpt-engineer out from github in a new directory I use python 3.11.5 and have installed the following packages agent-protocol 1.0.1 as you can see above the gpt-engineer package is taken locally from where I checked out the sources -> C:\local\git\gpt-engineer |
Also found that in the clarify logs during deserialization, the is_chunk is implicitly set to True which is not allowed according to Langchain. I've implemented a fix to explicitly set this value to False in #769 (hopefully it gets approved soon). 😄 |
Good work @pralad-p you reported, when you execute, you get but, in the stacktrace of your error it clearly states from the directories you see in there, that the version looks like beeing 3.9 the last error also shows, it seems not to be python 3.10 or greater, where that stack trace comes from. I would assume, you clean the older python installation, or you make sure, that you work with your newer installed python version. |
Thanks @Donneker I'll try that. |
Would be awesome if you tried the fix and report whether the issue persists. |
I just installed everything and started from scratch today and am running into the same issue. I did:
I then create a sub-directory, put my prompt, run gpt-engineer and:
|
@arnaudlacour The reason why that you are still getting it is that the fix still hasn't been propagated to pypi, which it will be in the next release (soon). For now, installing the main branch from github will fix the problem. |
Thanks for the clarification, using the main branch worked. |
Policy and info
Expected Behavior
That I get some feedback, e.g. code that I can use.
Current Behavior
Fails after the additional questions.
Failure Information
Nothing more to clarify.
Traceback (most recent call last):
File "/Users/tom/Library/Python/3.9/bin/gpt-engineer", line 8, in
sys.exit(app())
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/gpt_engineer/main.py", line 96, in main
messages = step(ai, dbs)
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/gpt_engineer/steps.py", line 192, in gen_clarified_code
messages = AI.deserialize_messages(dbs.logs[clarify.name])
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/gpt_engineer/ai.py", line 216, in deserialize_messages
return list(messages_from_dict(json.loads(jsondictstr))) # type: ignore
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/langchain/schema/messages.py", line 351, in messages_from_dict
return [_message_from_dict(m) for m in messages]
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/langchain/schema/messages.py", line 351, in
return [_message_from_dict(m) for m in messages]
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/langchain/schema/messages.py", line 331, in _message_from_dict
return AIMessage(**message["data"])
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/langchain/load/serializable.py", line 90, in init
super().init(**kwargs)
File "/Users/tom/Library/Python/3.9/lib/python/site-packages/pydantic/v1/main.py", line 341, in init
raise validation_error
pydantic.v1.error_wrappers.ValidationError: 1 validation error for AIMessage
is_chunk
unexpected value; permitted: False (type=value_error.const; given=True; permitted=(False,))
python --version
Python 3.11.6
chatgpt API, 3.5-turbo
Possibly related waring/issue I get is:
Users/tom/Library/Python/3.9/lib/python/site-packages/urllib3/init.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: urllib3/urllib3#3020
Steps to Reproduce
If possible, provide detailed steps for reproducing the issue.
Failure Logs
Any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered: