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
##############################################################
[]
##############################################################
Error in run function: [Errno 21] Is a directory: '/Users/prathamdarooka/Desktop/pictionary-ai'
with code:
def run(self):
# Debug info
if self.game_idx is None:
if thread_debug: print(f"Task {self.task_name} is starting with func {self.func}")
else:
if thread_debug: print(f"Task {self.task_name} is starting for game {self.game_idx} with guesser {self.func}")
# Run in loop
while not self.stop_event.is_set():
start_time = time.time()
if thread_debug: print(f"Task {self.task_name} is running")
if self.game_idx is None:
self.func()
else:
# Threads do nothing if there are not enough active games
if self.game_idx >= len(active_games):
time.sleep(1)
continue
# Get game info
game = active_games[self.game_idx]
image_fn = ""
if game.last_drawing:
with db_lock:
drawing = drawings[game.last_drawing]
image_fn = drawing.fn
guess_history = guesses(where=f"game == {game.id}")
guess_history = [{'guesser': g.guesser, 'guess': g.guess} for g in guess_history]
word = game.word
game_id = game.id
try:
if thread_debug: print(f"Game idx {self.game_idx} is running for game {game_id} with word {word}, image {image_fn}")
print("##############################################################")
print(guess_history)
print(image_fn)
print("##############################################################")
guess = self.func(image_fn, guess_history) # this is erroneous
app runs fine but can something be done to not hit the except block always?
The text was updated successfully, but these errors were encountered:
Logs:
with code:
app runs fine but can something be done to not hit the except block always?
The text was updated successfully, but these errors were encountered: