Musicbot: Bot not running

Created on 28 Jul 2020  Â·  21Comments  Â·  Source: Just-Some-Bots/MusicBot

Please tick all applicable boxes.

  • [ x ] I am using Python 3.5.3 or higher (run python --version on the command line)
  • [ x ] I have followed the official guides to install the bot for my system
  • [ x ] I have updated my dependencies to the latest version using the appropriate update script

Which version are you using?

  • [ x ] The latest master version (release-260419)
  • [ ] The latest review version

What type of issue are you creating?

  • [ x ] Bug
  • [ ] Feature request
  • [ ] Question

Description of issue

Bot will not run via the run.bat

CMD Prompt is as follow

[INFO] launcher: Starting sanity checks
[INFO] launcher: Checking for Python 3.5+
[INFO] launcher: Checking console encoding
[INFO] launcher: Setting console encoding to UTF-8
[INFO] launcher: Ensuring we're in the right environment
[INFO] launcher: Adding local bins/ folder to path
[INFO] launcher: Required checks passed.
[INFO] launcher: Optional checks passed.
[INFO] launcher: Moving old musicbot log

Starting MusicBot release-260819-5-gc87dc05
Loaded autoplaylist with 77 entries
[ERROR] launcher: Error starting bot
Traceback (most recent call last):
File "run.py", line 373, in main
m.run()
File "C:\Users\thatf\OneDrive\Desktop\Sprite-Bot\musicbot\bot.py", line 902, in run
self.loop.run_until_complete(self.start(self.config.auth))
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 568, in run_until_complete
return future.result()
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 543, in start
await self.connect(reconnect=reconnect)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 457, in connect
await self._connect()
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\client.py", line 421, in _connect
await self.ws.poll_event()
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\gateway.py", line 469, in poll_event
await self.received_message(msg)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\gateway.py", line 423, in received_message
func(data)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\state.py", line 663, in parse_guild_create
guild = self._get_create_guild(data)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\state.py", line 638, in _get_create_guild
guild._from_data(data)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\guild.py", line 391, in _from_data
self._sync(guild)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\guild.py", line 418, in _sync
self._add_channel(TextChannel(guild=self, data=c, state=self._state))
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\channel.py", line 107, in __init__
self._update(guild, data)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\channel.py", line 131, in _update
self._fill_overwrites(data)
File "C:\Users\thatf\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\abc.py", line 271, in _fill_overwrites
self._overwrites.append(_Overwrites(id=overridden_id, *
overridden))
TypeError: __new__() got an unexpected keyword argument 'deny_new'

[INFO] launcher: All done.

Steps to reproduce

  1. Run run.bat

Log file

Please attach your MusicBot log file (located at logs/musicbot.log) to this issue. You can do so by dragging and dropping the file here. If you do not include your log file, you WILL be asked to provide one.

musicbot.log

Most helpful comment

I Fixed that error with@BritishBenji#0420 on discord here is toturial:
you must replace everything in requirements.txt with this text:

pynacl==1.4.0
discord.py[voice]==1.3.4
pip
youtube_dl
colorlog

Then run python -m pip install -U -r requirements.txt
A When install is downloaded run update.bat
say n and y
and after you run update.bat run run.bat and works good

Thats all!

All 21 comments

D.py had an update, try python -m pip install -U discord.py[voice]

D.py had an update, try python -m pip install -U discord.py[voice]

Hi, I have this issue as well, and after doing the quoted above it generated the same issue. I still can't run the bot after the installation. Any idea if there are any other solutions to this?

D.py had an update, try python -m pip install -U discord.py[voice]

It's not working for me, getting same error always and always.

And python3.7 -m pip install -U discord.py[voice] ?

Op wo 29 jul. 2020 16:01 schreef tommyruen notifications@github.com:

D.py had an update, try python -m pip install -U discord.py[voice]

Hi, I have this issue as well, and after doing the quoted above it
generated the same issue. I still can't run the bot after the installation.
Any idea if there are any other solutions to this?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Just-Some-Bots/MusicBot/issues/2107#issuecomment-665682693,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQIBBARJVZX7ZRGGBA2RHP3R6ATUTANCNFSM4PKVIMJA
.

And python3.7 -m pip install -U discord.py[voice] ? Op wo 29 jul. 2020 16:01 schreef tommyruen notifications@github.com:
…
D.py had an update, try python -m pip install -U discord.py[voice] Hi, I have this issue as well, and after doing the quoted above it generated the same issue. I still can't run the bot after the installation. Any idea if there are any other solutions to this? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2107 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQIBBARJVZX7ZRGGBA2RHP3R6ATUTANCNFSM4PKVIMJA .

Yeah I installed python3.7 -m pip install -U discord.py[voice] as well, but the issue persists.

Having the same problem as well bot just crashed on its own it was running for days today was offline did a update check started same thing the error is exactly the same as the above

I am also having this issue, running python 3.7, ran the python -m pip install -U discord.py[voice]

Try:

pip uninstall discord.py && pip install discord.py && python3 -m pip install -U discord.py

Try:

pip uninstall discord.py && pip install discord.py && python3 -m pip install -U discord.py

The same issue persists to be there after this uninstall/install process for me.

Try:
pip uninstall discord.py && pip install discord.py && python3 -m pip install -U discord.py

The same issue persists to be there after this uninstall/install process for me.

I was getting your exact same error and that process worked for me.

If you do pip list, what version of discord.py are you showing?

Try:
pip uninstall discord.py && pip install discord.py && python3 -m pip install -U discord.py

The same issue persists to be there after this uninstall/install process for me.

I was getting your exact same error and that process worked for me.

If you do pip list, what version of discord.py are you showing?

I'm currently on discord.py 1.3.4
I tried downgrading back to discord 1.2.5 but it does not work too.

I'm also running 1.3.4 which is working. I just rolled back through my bash history and saw that I also ran the command below after upgrading to 1.3.4.

python3 -m pip install -U discord.py[voice]

I'm honestly not sure if that made a difference but it can't hurt to try.

I'm also running 1.3.4 which is working. I just rolled back through my bash history and saw that I also ran the command below after upgrading to 1.3.4.

python3 -m pip install -U discord.py[voice]

I'm honestly not sure if that made a difference but it can't hurt to try.

I tried it, and it gives me the same error.

maybe ask it in the support server?

>

I Fixed that error with@BritishBenji#0420 on discord here is toturial:
you must replace everything in requirements.txt with this text:

pynacl==1.4.0
discord.py[voice]==1.3.4
pip
youtube_dl
colorlog

Then run python -m pip install -U -r requirements.txt
A When install is downloaded run update.bat
say n and y
and after you run update.bat run run.bat and works good

Thats all!

I Fixed that error with@BritishBenji#0420 on discord here is toturial:
you must replace everything in requirements.txt with this text:

pynacl==1.4.0
discord.py[voice]==1.3.4
pip
youtube_dl
colorlog

Then run python -m pip install -U -r requirements.txt
A When install is downloaded run update.bat
say n and y
and after you run update.bat run run.bat and works good

Thats all!

Thanks man!! That worked for me too.

I Fixed that error with@BritishBenji#0420 on discord here is toturial:
you must replace everything in requirements.txt with this text:

pynacl==1.4.0
discord.py[voice]==1.3.4
pip
youtube_dl
colorlog

Then run python -m pip install -U -r requirements.txt
A When install is downloaded run update.bat
say n and y
and after you run update.bat run run.bat and works good

Thats all!

This worked for me too, THANK YOU!

I Fixed that error with@BritishBenji#0420 on discord here is toturial:
you must replace everything in requirements.txt with this text:

pynacl==1.4.0
discord.py[voice]==1.3.4
pip
youtube_dl
colorlog

Then run python -m pip install -U -r requirements.txt
A When install is downloaded run update.bat
say n and y
and after you run update.bat run run.bat and works good

Thats all!

Confirming and +1-ing this fix, thank you!

tried all of the above. still the same error.

Tried typing "python3 -m pip install -U discord.py[voice]" and "-m pip install -U discord.py[voice]" in the run.bat cmd prompt.
nothing.

I changed the requirments.txt file with:
pynacl==1.4.0
discord.py[voice]==1.3.4
pip
youtube_dl
colorlog

from

pynacl==1.2.1
discord.py[voice]==1.2.5
pip
youtube_dl
colorlog
cffi --only-binary all; sys_platform == 'win32'

tried "python3.7 -m pip install -U discord.py[voice]" in run.bat prompt. its an unrecognisable command

ok. tried say N for first question, and then Y for second. that updated.
i now have a completely different error with the run.bat

[Owner (auto)] section not found, falling back to permissive default
Starting MusicBot release-260819-5-gc87dc05

Task exception was never retrieved
future: exception=gaierror(11001, 'getaddrinfo failed')>
Traceback (most recent call last):
File "C:\Users\Name\AppData\Roaming\Python\Python37\site-packages\discord\voice_client.py", line 191, in _create_socket
self.endpoint_ip = socket.gethostbyname(self.endpoint)
socket.gaierror: [Errno 11001] getaddrinfo failed

Ok the strangest thing has happened. upon the issue i have above, i gave up trying. a day later i began to motivate myself to go through this issue again by following peoples instructions again.
Upon starting the bot, its now running perfectly.
No idea why i got this error given i havent done anything to change it for it to work.
Thank you for the help xxx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Player808 picture Player808  Â·  4Comments

noirscape picture noirscape  Â·  6Comments

caseydulong picture caseydulong  Â·  6Comments

Rooting21 picture Rooting21  Â·  6Comments

SylveonBottle picture SylveonBottle  Â·  5Comments