Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Bug on python >= 3.10 #1344

@julio-34727

Description

@julio-34727

Problem:

  • Python version: 3.10
  • File: twint/cli.py
def run_as_command():
    version = ".".join(str(v) for v in sys.version_info[:2])
    if float(version) < 3.6:
        print("[-] TWINT requires Python version 3.6+.")
        sys.exit(0)

    main()
  • Error: [-] TWINT requires Python version 3.6+.
  • Solution:
def run_as_command():
    if sys.version_info[:2] < (3, 6):
        print("[-] TWINT requires Python version 3.6+.")
        sys.exit(0)

    main()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions