gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

TypeError: 'type' object is not subscriptable

Open Red-Beard08 opened this issue 1 year ago • 1 comments

When I execute gpt-engineer projects/my-new-project, I expect it to start the process but I receive the following error:

File "C:..\GPT Engineer\gpt-engineer\gpt_engineer\steps.py", line 19, in Step = TypeVar("Step", bound=Callable[[AI, DBs], list[dict]]) TypeError: 'type' object is not subscriptable

The process then ends.

I have not made any changes to the steps.py file, does anyone know what might cause this behavior?

Red-Beard08 avatar Jun 22 '23 17:06 Red-Beard08

having the same issue here

pinnnnnnz avatar Jun 22 '23 18:06 pinnnnnnz

I managed to get it working after upgrading to Python 3.9

Knudn avatar Jun 22 '23 18:06 Knudn

That seems to have resolved it...thanks!

Red-Beard08 avatar Jun 22 '23 19:06 Red-Beard08

Still seeing this, claims to be compatible with >=3.8 though

kaspesi avatar Oct 04 '23 00:10 kaspesi