MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

不能在windows系统运行?

Open younggggger opened this issue 1 year ago • 2 comments
trafficstars

┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\metagpt\softwar │ │ e_company.py:108 in startup │ │ │ │ 105 │ │ typer.echo("Missing argument 'IDEA'. Run 'metagpt --help' for more information." │ │ 106 │ │ raise typer.Exit() │ │ 107 │ │ │ > 108 │ return generate_repo( │ │ 109 │ │ idea, │ │ 110 │ │ investment, │ │ 111 │ │ n_round, │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\metagpt\softwar │ │ e_company.py:32 in generate_repo │ │ │ │ 29 │ """Run the startup logic. Can be called from CLI or other Python scripts.""" │ │ 30 │ from metagpt.config2 import config │ │ 31 │ from metagpt.context import Context │ │ > 32 │ from metagpt.roles import ( │ │ 33 │ │ Architect, │ │ 34 │ │ Engineer, │ │ 35 │ │ ProductManager, │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\metagpt\roles_ │ │ init_.py:16 in │ │ │ │ 13 from metagpt.roles.engineer import Engineer │ │ 14 from metagpt.roles.qa_engineer import QaEngineer │ │ 15 from metagpt.roles.searcher import Searcher │ │ > 16 from metagpt.roles.sales import Sales │ │ 17 from metagpt.roles.customer_service import CustomerService │ │ 18 │ │ 19 │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\metagpt\roles\s │ │ ales.py:14 in │ │ │ │ 11 from pydantic import Field, model_validator │ │ 12 │ │ 13 from metagpt.actions import SearchAndSummarize, UserRequirement │ │ > 14 from metagpt.document_store.base_store import BaseStore │ │ 15 from metagpt.roles import Role │ │ 16 from metagpt.tools.search_engine import SearchEngine │ │ 17 │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\metagpt\documen │ │ t_store_init_.py:9 in │ │ │ │ 6 @File : init.py │ │ 7 """ │ │ 8 │ │ > 9 from metagpt.document_store.faiss_store import FaissStore │ │ 10 │ │ 11 all = ["FaissStore"] │ │ 12 │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\metagpt\documen │ │ t_store\faiss_store.py:15 in │ │ │ │ 12 from langchain.vectorstores import FAISS │ │ 13 from langchain_core.embeddings import Embeddings │ │ 14 │ │ > 15 from metagpt.document import IndexableDocument │ │ 16 from metagpt.document_store.base_store import LocalStore │ │ 17 from metagpt.logs import logger │ │ 18 from metagpt.utils.embedding import get_embedding │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\metagpt\documen │ │ t.py:14 in │ │ │ │ 11 from typing import Optional, Union │ │ 12 │ │ 13 import pandas as pd │ │ > 14 from langchain.document_loaders import ( │ │ 15 │ TextLoader, │ │ 16 │ UnstructuredPDFLoader, │ │ 17 │ UnstructuredWordDocumentLoader, │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\docum │ │ ent_loaders_init_.py:18 in │ │ │ │ 15 │ Document, TextSplitter │ │ 16 """ │ │ 17 │ │ > 18 from langchain.document_loaders.acreom import AcreomLoader │ │ 19 from langchain.document_loaders.airbyte import ( │ │ 20 │ AirbyteCDKLoader, │ │ 21 │ AirbyteGongLoader, │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain\docum │ │ ent_loaders\acreom.py:1 in │ │ │ │ > 1 from langchain_community.document_loaders.acreom import AcreomLoader │ │ 2 │ │ 3 all = ["AcreomLoader"] │ │ 4 │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain_commu │ │ nity\document_loaders_init_.py:163 in │ │ │ │ 160 │ PyPDFLoader, │ │ 161 │ UnstructuredPDFLoader, │ │ 162 ) │ │ > 163 from langchain_community.document_loaders.pebblo import PebbloSafeLoader │ │ 164 from langchain_community.document_loaders.polars_dataframe import PolarsDataFrameLoader │ │ 165 from langchain_community.document_loaders.powerpoint import UnstructuredPowerPointLoader │ │ 166 from langchain_community.document_loaders.psychic import PsychicLoader │ │ │ │ C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\langchain_commu │ │ nity\document_loaders\pebblo.py:5 in │ │ │ │ 2 │ │ 3 import logging │ │ 4 import os │ │ > 5 import pwd │ │ 6 import uuid │ │ 7 from http import HTTPStatus │ │ 8 from typing import Any, Dict, Iterator, List │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ ModuleNotFoundError: No module named 'pwd'

younggggger avatar Mar 20 '24 08:03 younggggger

需要安装,否则会缺依赖包。

git clone https://github.com/geekan/MetaGPT.git
cd /your/path/to/MetaGPT
pip install -e .

这里有文档:https://docs.deepwisdom.ai/main/en/guide/get_started/installation.html

iorisa avatar Mar 20 '24 12:03 iorisa

Logically using the main branch will not have this problem, but could you please try it?

geekan avatar Mar 21 '24 03:03 geekan

与 #1127 相同。 已证明windows下可以正常运行。

iorisa avatar Mar 30 '24 02:03 iorisa