Just-Some-Bots / MusicBot

:musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)
https://just-some-bots.github.io/MusicBot/
MIT License
3.12k stars 2.35k forks source link

Bot not running #2107

Closed TheFaithBreaker closed 4 years ago

TheFaithBreaker commented 4 years ago

Please tick all applicable boxes.

Which version are you using?

What type of issue are you creating?


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

Jcodeerd commented 4 years ago

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

tommyruen commented 4 years ago

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?

CidQu-INC commented 4 years ago

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.

Jcodeerd commented 4 years ago

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 .

tommyruen commented 4 years ago

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.

Doorstop2 commented 4 years ago

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

Azsunyx commented 4 years ago

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

jamesonp commented 4 years ago

Try:

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

tommyruen commented 4 years ago

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.

jamesonp commented 4 years ago

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?

tommyruen commented 4 years ago

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.

jamesonp commented 4 years ago

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.

tommyruen commented 4 years ago

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.

Jcodeerd commented 4 years ago

maybe ask it in the support server?

tommyruen commented 4 years ago

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.

Azsunyx commented 4 years ago

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!

silentdis commented 4 years ago

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!

Haristess commented 4 years ago

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

Haristess commented 4 years ago

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: <Task finished coro=<VoiceClient._create_socket() done, defined at C:\Users\Dani\AppData\Roaming\Python\Python37\site-packages\discord\voice_client.py:172> 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

Haristess commented 4 years ago

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