question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't get the bot to work.

See original GitHub issue

Please tick all applicable boxes.

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

Which version are you using?

  • The latest master version (release-260419)
  • The latest review version

What type of issue are you creating?

  • Bug
  • Feature request
  • Question

Description of issue

The bot just won’t start on my VPS (Ubuntu 20.04).

Steps to reproduce

  1. When executing the first guide command: sudo add-apt-repository ppa:deadsnakes/ppa I get the following error:
E: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
  1. Decided to go ahead anyway and everything worked, except the bot won’t start. this happens:
root@mail:~/MusicBot# sudo ./run.sh
./run.sh: line 7: python: command not found
./run.sh: line 7: python: command not found
./run.sh: line 7: python: command not found
./run.sh: line 9: python3.5: command not found
./run.sh: line 10: python3.6: command not found
./run.sh: line 14: [: no py: integer expression expected
[INFO] launcher: Starting sanity checks
[INFO] launcher: Checking for Python 3.5+
[INFO] launcher: Checking console encoding
[INFO] launcher: Ensuring we're in the right environment
[INFO] launcher: Required checks passed.
[INFO] launcher: Optional checks passed.
Traceback (most recent call last):
  File "run.py", line 438, in <module>
    main()
  File "run.py", line 347, in main
    finalize_logging()
  File "run.py", line 179, in finalize_logging
    dlh.setFormatter(logging.Formatter('.'))
  File "/usr/lib/python3.8/logging/__init__.py", line 580, in __init__
    self._style.validate()
  File "/usr/lib/python3.8/logging/__init__.py", line 433, in validate
    raise ValueError("Invalid format '%s' for '%s' style" % (self._fmt, self.default_format[0]))
ValueError: Invalid format '.' for '%' style

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AleanaAcommented, Dec 3, 2021

I am having the same problem.

jarasg2@vps-361095:~/MusicBot$ sudo ./run.sh
./run.sh: line 7: python: command not found
./run.sh: line 7: python: command not found
./run.sh: line 7: python: command not found
./run.sh: line 9: python3.5: command not found
./run.sh: line 10: python3.6: command not found
./run.sh: line 11: python3.7: command not found
./run.sh: line 14: [: no py: integer expression expected
[INFO] launcher: Starting sanity checks
[INFO] launcher: Checking for Python 3.5+
[INFO] launcher: Checking console encoding
[INFO] launcher: Ensuring we're in the right environment
[INFO] launcher: Required checks passed.
[INFO] launcher: Optional checks passed.
[INFO] launcher: Moving old musicbot log
Traceback (most recent call last):
  File "run.py", line 438, in <module>
    main()
  File "run.py", line 347, in main
    finalize_logging()
  File "run.py", line 179, in finalize_logging
    dlh.setFormatter(logging.Formatter('.'))
  File "/usr/lib/python3.8/logging/__init__.py", line 580, in __init__
    self._style.validate()
  File "/usr/lib/python3.8/logging/__init__.py", line 433, in validate
    raise ValueError("Invalid format '%s' for '%s' style" % (self._fmt, self.def                                                                             ault_format[0]))
ValueError: Invalid format '.' for '%' style

musicbot.log

Please view the reply directly above yours.

0reactions
jayktaylorcommented, Dec 16, 2021

The master branch now has a fix for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord Bot Troubleshooting - Scryfall
Make sure the bot is visible on the user list. If it's not visible, the bot does not have access to your current...
Read more >
I can't get this bot to work? : r/discordapp - Reddit
Seems to work just fine for me. Maybe double-check that the bot has the right permissions to read messages, send messages, and embed...
Read more >
Troubleshoot bot configuration issues - Bot Service
There can be many reasons why a bot doesn't work. Most likely, the bot application is down and can't receive messages, or the...
Read more >
My Discord bot is not responding to commands - Stack Overflow
And im stuck on this one part of the tutorial that i can't get to work. I can't Get the bot to respond...
Read more >
Unable to get my discord bot online - Code Help - Glitch Support
If you're encountering problems with your bot's connection to the Discord API it may be because Discord has banned one or more of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found