geekan / MetaGPT

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
https://deepwisdom.ai/
MIT License
45.24k stars 5.38k forks source link

Unable to find vcvarsall.bat and http.client.IncompleteRead: IncompleteRead #1186

Closed longweiii closed 6 months ago

longweiii commented 7 months ago

I run metagpt in my local computer, and there are many such errors : "distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat" "http.client.IncompleteRead: IncompleteRead(1048331 bytes read,85347 more expected)" is there any way to fix these errors? 微信图片_20240410200849 微信图片_20240410200857

seehi commented 7 months ago

Is it reproducible, could you provide more details, such as what's your command or executed code.

longweiii commented 7 months ago

It's reproducible, and I used this command:

metagpt "Design a Greedy Snake game with the following rules and features: 1.The game starts with a snake of length 1 and a single food item on the grid.2.The player controls the snake's movement using arrow keys (or swipe gestures in a mobile version).3.The snake moves continuously in the direction it's facing, and the player's goal is to eat as much food as possible to grow longer.4.When the snake consumes a piece of food, its length increases, and a new piece of food appears at a random location on the grid.5.The game ends if the snake collides with the game boundaries or itself 6.Implement a scoring system to keep track of the player's score based on the number of food items eaten.7.Ensure that the game has visually appealing graphics, intuitive controls, and smooth animation.8.Provide options to adjust the game's difficulty level, such as increasing the snake's speed or changing the grid size.8.Include sound effects for actions like eating food or game over.9.Make the game robust by handling edge cases and ensuring it runs smoothly without crashes.10.The player should be able to start a new game or exit the game at any time.Please generate the code and UI elements necessary for this Greedy Snake game, and ensure that it is playable and enjoyable for users." --n-round 15 --code-review --run-tests --max-auto-summarize-code 2

longweiii commented 7 months ago

It seems the python tries to invoke a very old version of VC file,but cannot find it.

seehi commented 7 months ago

I ran the command and encountered no errors. Is this an error by the generated pygame code? It appears to be related to a dependency issue involving the Visual C++ compiler tools. Additionally, does this issue duplicate this

longweiii commented 7 months ago

Yes, they are same issue, it seems the doc folder contains .json file, not .doc or .pdf file, is it correct? 微信图片_20240410092032

seehi commented 7 months ago

Yes, you can check the code

geekan commented 6 months ago

If I closed this issue by mistake, please feel free to reopen it.