FazliBasturk
Hectopat
- Katılım
- 10 Haziran 2020
- Mesajlar
- 805
- Çözümler
- 7
Daha fazla
- Cinsiyet
- Erkek
Arkadaşlar, aşağıdaki kodlar ile bir müzik açtıktan sonra vb. herhangi bir sorun olmuyor, her fonksiyonu tam ama bir tek döngülerde hata veriyor.
Eğer bir müziği döngüye alırsam müzik bittikten sonra tekrar oynatması gerekirken çalmayı bırakıyor.
Örnek ekran görüntüsü:
Embed mesajı gönderiyor ama tekrar oynatmıyor.
Aynı zamanda şöyle bir hata alıyorum:
[CODE title="Hata Mesajı"]Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 603, in run
self._do_run()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 590, in _do_run
data = self.source.read()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 543, in read
ret = self.original.read()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 228, in read
ret = self._stdout.read(OpusEncoder.FRAME_SIZE)
AttributeError: 'NoneType' object has no attribute 'read'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 616, in _call_after
self.after(error)
File "main.py", line 238, in play_next_song
raise VoiceError(str(error))
VoiceError: 'NoneType' object has no attribute 'read'
[/CODE]
Nasıl düzeltebilirim? internette araştırdım fakat bir sonuca ulaşamadım. :/
Kodlar:
Hiç kimse bilmiyor mu
Eğer bir müziği döngüye alırsam müzik bittikten sonra tekrar oynatması gerekirken çalmayı bırakıyor.
Örnek ekran görüntüsü:
Embed mesajı gönderiyor ama tekrar oynatmıyor.
Aynı zamanda şöyle bir hata alıyorum:
[CODE title="Hata Mesajı"]Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 603, in run
self._do_run()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 590, in _do_run
data = self.source.read()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 543, in read
ret = self.original.read()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 228, in read
ret = self._stdout.read(OpusEncoder.FRAME_SIZE)
AttributeError: 'NoneType' object has no attribute 'read'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/player.py", line 616, in _call_after
self.after(error)
File "main.py", line 238, in play_next_song
raise VoiceError(str(error))
VoiceError: 'NoneType' object has no attribute 'read'
[/CODE]
Nasıl düzeltebilirim? internette araştırdım fakat bir sonuca ulaşamadım. :/
Kodlar:
Hiç kimse bilmiyor mu