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
looks like the generated code has dependency issues among the classes.
% python main.py
Do you want to play a game of Blackjack? [Y/n] Y
Traceback (most recent call last):
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/main.py", line 98, in
main()
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/main.py", line 94, in main
game.play()
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/main.py", line 19, in play
if not self.player.bet(10): # Default bet amount is 10
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/player.py", line 26, in bet
self.hands.append(Hand()) # Add a new hand for the player
NameError: name 'Hand' is not defined
Bug solved method
Environment information
LLM type and model name: zhipu, glm-4
System version: MacOS 14.4.1,
Python version: 3.9
MetaGPT version or branch: dev version
packages version:
installation method: pip install from source
Screenshots or logs
The text was updated successfully, but these errors were encountered:
Bug description
looks like the generated code has dependency issues among the classes.
% python main.py
Do you want to play a game of Blackjack? [Y/n] Y
Traceback (most recent call last):
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/main.py", line 98, in
main()
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/main.py", line 94, in main
game.play()
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/main.py", line 19, in play
if not self.player.bet(10): # Default bet amount is 10
File "/Users/xuxiaotian/project/metaGPT/MetaGPT/workspace/cli_blackjack/cli_blackjack/player.py", line 26, in bet
self.hands.append(Hand()) # Add a new hand for the player
NameError: name 'Hand' is not defined
Bug solved method
Environment information
Screenshots or logs
The text was updated successfully, but these errors were encountered: