#πŸ”’ been fixing from 3-4 days used everything and cannot find much help anywhere

9 messages Β· Page 1 of 1 (latest)

restive owl
#
Processing command: play music
Playing music...
Exception in thread Thread-1 (start):
Traceback (most recent call last):
  File "C:\Program Files\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python312\Lib\threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "f:\ai-assistant\pico-files\main.py", line 75, in start
    self.on_keyword_detected()
  File "f:\ai-assistant\pico-files\main.py", line 86, in on_keyword_detected
    self.process_command(command)
  File "f:\ai-assistant\pico-files\main.py", line 112, in process_command
    self.music_player.play_music_thread()
  File "f:\ai-assistant\pico-files\libs\music.py", line 47, in play_music_thread
    self.thread.start()
  File "C:\Program Files\Python312\Lib\threading.py", line 992, in start
    _start_new_thread(self._bootstrap, ())
RuntimeError: can't create new thread at interpreter shutdown```



**CODE** - https://pastebin.com/jazBBTHB
jagged brookBOT
#

@restive owl

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

normal cliff
#

Show your code?

#

Oh I see it

#

You need to include your main.py in you code listing

#

But it looks like you're missing a . join() from your main thread

normal cliff
#

@restive owl ^

jagged brookBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.