Skip to content

TranslationCog - CGI deprecated in Python 3.13+ #129

@PenguinBoi12

Description

@PenguinBoi12

Describe the bug
The cgi module is deprecated in Python 3.13+, and googletrans depends on httpx, which internally relies on cgi. This causes compatibility issues with newer Python versions. We should investigate possible solutions:

  • Switch to a compatible version of httpx/googletrans
  • Replace googletrans with an alternative translation library
  • Remove translation functionality entirely if it’s non-essential

Have you been able to reproduce the bug?
Switching to Python 3.13+ should cause the bug to happen. If you're under 3.13, deprecation warning can be enabled by adding the following in bot/grace.py :

import warnings
warnings.filterwarnings("always", category=DeprecationWarning)

When the error occurs it simply return the grace help
Image

Metadata

Metadata

Assignees

Labels

deprecationdeprectated feature to be disabled or removed

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions