Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple bug fixes and improvements #10

Closed

Conversation

warelock2
Copy link
Collaborator

@warelock2 warelock2 commented Jun 27, 2024

  • Reverted back to Python 3.12, due to a known issue with Python 3.13 in Docker (This bot needs to stay with 3.12 for now):

Traceback (most recent call last):
File "/app/discord_google_calendar_bot.py", line 45, in
import discord
File "/usr/local/lib/python3.13/site-packages/discord/init.py", line 23, in
from .client import *
File "/usr/local/lib/python3.13/site-packages/discord/client.py", line 51, in
from .sku import SKU, Entitlement
File "/usr/local/lib/python3.13/site-packages/discord/sku.py", line 31, in
from .app_commands import MissingApplicationID
File "/usr/local/lib/python3.13/site-packages/discord/app_commands/init.py", line 12, in
from .commands import *
File "/usr/local/lib/python3.13/site-packages/discord/app_commands/commands.py", line 53, in
from .models import Choice
File "/usr/local/lib/python3.13/site-packages/discord/app_commands/models.py", line 44, in
from ..member import Member
File "/usr/local/lib/python3.13/site-packages/discord/member.py", line 33, in
import discord.abc
File "/usr/local/lib/python3.13/site-packages/discord/abc.py", line 59, in
from .voice_client import VoiceClient, VoiceProtocol
File "/usr/local/lib/python3.13/site-packages/discord/voice_client.py", line 35, in
from .player import AudioPlayer, AudioSource
File "/usr/local/lib/python3.13/site-packages/discord/player.py", line 29, in
import audioop
ModuleNotFoundError: No module named 'audioop'

"Use of deprecated module audioop": Rapptz/discord.py#9477


  • Have setup.sh wipe out the old .venv folder before creating it again from scratch - This helps with major upgrades of Python
  • Unpinned the Python dependencies - This will help cope with random dependabot security pull requests
  • Use python development dependencies (ie. black, pylint) if specified by requirements-dev.txt

…This bot needs to stay with 3.12 for now): "Use of deprecated module audioop": Rapptz/discord.py#9477

Have setup.sh wipe out the old .venv folder before creating it again from scratch - This helps with major upgrades of Python

Unpinned the Python dependencies - This will help cope with random dependabot security pull requests

Use python development dependencies (ie. black, pylint) if specified by requirements-dev.txt
@warelock2 warelock2 self-assigned this Jun 27, 2024
@warelock2 warelock2 changed the title Reverted back to Python 3.12, due to a known issue with Python 3.13 (… Multiple bug fixes and improvements Jun 27, 2024
@warelock2
Copy link
Collaborator Author

Closing and replacing with a new pull request

@warelock2 warelock2 closed this Jun 27, 2024
@warelock2 warelock2 deleted the bug-fixes-and-improvements branch June 27, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant