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

Remove distutils module #272

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jotonedev
Copy link

Fix telegram-upload crashing on python 3.13 by removing any usage of distutils.

Traceback:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\usert\.local\bin\telegram-upload.exe\__main__.py", line 4, in <module>
    from telegram_upload.management import upload_cli
  File "C:\Users\usert\pipx\venvs\telegram-upload\Lib\site-packages\telegram_upload\management.py", line 10, in <module>
    from telegram_upload.client import TelegramManagerClient, get_message_file_attribute
  File "C:\Users\usert\pipx\venvs\telegram-upload\Lib\site-packages\telegram_upload\client\__init__.py", line 1, in <module>
    from telegram_upload.client.telegram_manager_client import TelegramManagerClient, get_message_file_attribute
  File "C:\Users\usert\pipx\venvs\telegram-upload\Lib\site-packages\telegram_upload\client\telegram_manager_client.py", line 6, in <module>
    from distutils.version import StrictVersion
ModuleNotFoundError: No module named 'distutils'

Documentation about distutils deprecation and removal

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.

1 participant