You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I am trying to use MetaGPT to generate some applications. However, I often come across issues regarding package dependency or ImportError when running those applications. So I can't even run the application successfully.
For example,
python startup.py "Write a diary web app called my_diary, where the user can keep record of everyday things."
Traceback (most recent call last):
File "C:\Users\...\workspace\my_diary\my_diary\main.py", line 3, in <module>
from flask import Flask, render_template, url_for, flash, redirect
File "C:\Users\...\workspace\my_diary\env\Lib\site-packages\flask\__init__.py", line 14, in <module>
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (C:\Users\v-yaokangwu\Documents\LLM_CodeRevision\workspace\my_diary\env\Lib\site-packages\jinja2\__init__.py)
Another example,
python startup.py "Write a backend restful api based on FastAPI for course CRUD"
Traceback (most recent call last):
File "C:\Users\...\workspace\book_management_api\book_management_api\main.py", line 3, in <module>
from fastapi import FastAPI, Depends, HTTPException
File "C:\Users\...\workspace\book_management_api\env\Lib\site-packages\fastapi\__init__.py", line 7, in <module>
from .applications import FastAPI as FastAPI
File "C:\Users\...\workspace\book_management_api\env\Lib\site-packages\fastapi\applications.py", line 3, in <module>
from fastapi import routing
....
File "C:\Users\...\workspace\book_management_api\env\Lib\site-packages\pydantic\main.py", line 369, in __new__
cls.__signature__ = ClassAttribute('__signature__', generate_model_signature(cls.__init__, fields, config))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\...\workspace\book_management_api\env\Lib\site-packages\pydantic\utils.py", line 231, in generate_model_signature
merged_params[param_name] = Parameter(
^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1008.0_x64__qbz5n2kfra8p0\Lib\inspect.py", line 2722, in __init__
raise ValueError('{!r} is not a valid parameter name'.format(name))
ValueError: 'not' is not a valid parameter name
I wonder if you have also encountered issues like these.
The text was updated successfully, but these errors were encountered:
I used gpt 4 and always ran the application in the virtual environment but I didn't configure SERPAPI_API_KEY during the process of generating these apps
Hi I am trying to use MetaGPT to generate some applications. However, I often come across issues regarding package dependency or ImportError when running those applications. So I can't even run the application successfully.
For example,
The requirements of the generated app is
When I run
python main.py
, the error isAnother example,
The requirements of the generated app is
When I run
python main.py
, the error isI wonder if you have also encountered issues like these.
The text was updated successfully, but these errors were encountered: