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

Bug on python >= 3.10 #1344

Open
julio-34727 opened this issue Feb 1, 2022 · 1 comment · May be fixed by #1345
Open

Bug on python >= 3.10 #1344

julio-34727 opened this issue Feb 1, 2022 · 1 comment · May be fixed by #1345

Comments

@julio-34727
Copy link

julio-34727 commented Feb 1, 2022

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()
@Dexz0
Copy link

Dexz0 commented Feb 27, 2023

Didnt fix for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants