添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\startup.py", line 40, in
fire.Fire(main)
File "C:\Users\Willy\AppData\Roaming\Python\Python311\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Willy\AppData\Roaming\Python\Python311\site-packages\fire\core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Willy\AppData\Roaming\Python\Python311\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\startup.py", line 36, in main
asyncio.run(startup(idea, investment, n_round, code_review, run_tests))
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\startup.py", line 24, in startup
await company.run(n_round=n_round)
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\metagpt\software_company.py", line 60, in run
await self.environment.run()
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\metagpt\environment.py", line 56, in run
await asyncio.gather(*futures)
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\metagpt\roles\role.py", line 240, in run
rsp = await self._react()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\metagpt\roles\role.py", line 209, in _react
return await self._act()
^^^^^^^^^^^^^^^^^
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\metagpt\roles\engineer.py", line 206, in _act
return await self._act_sp_precision()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\metagpt\roles\engineer.py", line 188, in _act_sp_precision
file_path = self.write_file(todo, code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\metagpt\roles\engineer.py", line 97, in write_file
file.parent.mkdir(parents=True, exist_ok=True)
File "C:\Program Files\Python311\Lib\pathlib.py", line 1116, in mkdir
os.mkdir(self, mode)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\Users\Willy\Desktop\BREAK\Buddy GetC\MetaGPT\workspace\"funlike"\n\"funlike"\n'

nice, is it possible to have the code make some changes or review of a previous code, with an attempt to have it made a few modification

Currently not supported. But it is in the roadmap.

I have the same issue, I'm on Mac with the latest version, but getting this error:

python startup.py "Write a cli snake game"
Traceback (most recent call last):
  File "/Users/rosh-eth/code/ai/MetaGPT/startup.py", line 5, in <module>
    import fire
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/fire-0.4.0-py3.10.egg/fire/__init__.py", line 21, in <module>
    from fire.core import Fire
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/fire-0.4.0-py3.10.egg/fire/core.py", line 67, in <module>
    from fire import formatting
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/fire-0.4.0-py3.10.egg/fire/formatting.py", line 22, in <module>
    import termcolor
ModuleNotFoundError: No module named 'termcolor'

I did, this was the error:

pip install termcolor        
Requirement already satisfied: termcolor in /Users/rosh-eth/mambaforge/lib/python3.10/site-packages (2.3.0)
(base) ➜  MetaGPT git:(main) ✗ python startup.py "Write a cli snake game based on pygame"
Traceback (most recent call last):
  File "/Users/rosh-eth/code/ai/MetaGPT/startup.py", line 7, in <module>
    from metagpt.roles import Architect, Engineer, ProductManager, ProjectManager, QaEngineer
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/roles/__init__.py", line 9, in <module>
    from metagpt.roles.role import Role
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/roles/role.py", line 15, in <module>
    from metagpt.config import CONFIG
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/config.py", line 13, in <module>
    from metagpt.utils.singleton import Singleton
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/utils/__init__.py", line 9, in <module>
    from metagpt.utils.read_document import read_docx
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/utils/read_document.py", line 9, in <module>
    import docx
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/__init__.py", line 3, in <module>
    from docx.api import Document  # noqa
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/api.py", line 14, in <module>
    from docx.package import Package
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/package.py", line 9, in <module>
    from docx.opc.package import OpcPackage
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/opc/package.py", line 9, in <module>
    from docx.opc.part import PartFactory
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/opc/part.py", line 12, in <module>
    from .oxml import serialize_part_xml
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/opc/oxml.py", line 12, in <module>
    from lxml import etree
ModuleNotFoundError: No module named 'lxml'

I did, this was the error:

pip install termcolor        
Requirement already satisfied: termcolor in /Users/rosh-eth/mambaforge/lib/python3.10/site-packages (2.3.0)
(base) ➜  MetaGPT git:(main) ✗ python startup.py "Write a cli snake game based on pygame"
Traceback (most recent call last):
  File "/Users/rosh-eth/code/ai/MetaGPT/startup.py", line 7, in <module>
    from metagpt.roles import Architect, Engineer, ProductManager, ProjectManager, QaEngineer
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/roles/__init__.py", line 9, in <module>
    from metagpt.roles.role import Role
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/roles/role.py", line 15, in <module>
    from metagpt.config import CONFIG
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/config.py", line 13, in <module>
    from metagpt.utils.singleton import Singleton
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/utils/__init__.py", line 9, in <module>
    from metagpt.utils.read_document import read_docx
  File "/Users/rosh-eth/code/ai/MetaGPT/metagpt/utils/read_document.py", line 9, in <module>
    import docx
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/__init__.py", line 3, in <module>
    from docx.api import Document  # noqa
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/api.py", line 14, in <module>
    from docx.package import Package
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/package.py", line 9, in <module>
    from docx.opc.package import OpcPackage
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/opc/package.py", line 9, in <module>
    from docx.opc.part import PartFactory
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/opc/part.py", line 12, in <module>
    from .oxml import serialize_part_xml
  File "/Users/rosh-eth/mambaforge/lib/python3.10/site-packages/python_docx-0.8.11-py3.10.egg/docx/opc/oxml.py", line 12, in <module>
    from lxml import etree
ModuleNotFoundError: No module named 'lxml'

your mistake was solved and found you again in the next mistake :D

ModuleNotFoundError: No module named 'lxml'

so now you have to write pip install lxml while you don't get anymore ModuleNotFoundError.