TypeError: dataclass() got an unexpected keyword argument 'slots'
Bug description metagpt --init-config then
Traceback (most recent call last):
File "/home/azureuser/anaconda3/envs/metagpt/bin/metagpt", line 5, in <module>
from metagpt.software_company import app
File "/home/azureuser/anaconda3/envs/metagpt/lib/python3.9/site-packages/metagpt/software_company.py", line 7, in <module>
import agentops
File "/home/azureuser/anaconda3/envs/metagpt/lib/python3.9/site-packages/agentops/__init__.py", line 5, in <module>
from .client import Client
File "/home/azureuser/anaconda3/envs/metagpt/lib/python3.9/site-packages/agentops/client/__init__.py", line 1, in <module>
from .client import Client
File "/home/azureuser/anaconda3/envs/metagpt/lib/python3.9/site-packages/agentops/client/client.py", line 4, in <module>
from agentops.config import Config
File "/home/azureuser/anaconda3/envs/metagpt/lib/python3.9/site-packages/agentops/config.py", line 35, in <module>
@dataclass(slots=True)
TypeError: dataclass() got an unexpected keyword argument 'slots'
Environment information
ubuntu 22.04 python 3.9
the same problem here
@lori-kuo @PandaraWen I faced the same. A quick chat with GH Copilot revealed the issue and solution use python 3.10
the same issue here
This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.
the same issue here
最后通过源码安装方式解决(python 3.10)
git clone https://github.com/geekan/MetaGPT && cd MetaGPT && pip install --upgrade -e .
This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.
This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.