MPCodeWriter21 / whois21

whois21 is a simple and easy to use python package that lets you easily query whois information of a domain/IP.
Apache License 2.0
27 stars 1 forks source link

Whois21 not working #10

Open rezaqomy opened 1 week ago

rezaqomy commented 1 week ago

@MPCodeWriter21

when i run whois21 -h i see this error

> whois21 -h            
Traceback (most recent call last):
  File "/home/USER/.local/bin/whois21", line 8, in <module>
    sys.exit(run())
             ^^^^^
  File "/home/USER/.local/lib/python3.12/site-packages/whois21/__main__.py", line 179, in run
    main()
  File "/home/USER/.local/lib/python3.12/site-packages/whois21/__main__.py", line 79, in main
    args = parser.parse_args()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/argparse.py", line 1896, in parse_args
    args, argv = self.parse_known_args(args, namespace)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/argparse.py", line 1932, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/USER/.local/lib/python3.12/site-packages/log21/Argparse.py", line 1070, in _parse_known_args
    start_index = consume_optional(start_index)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/USER/.local/lib/python3.12/site-packages/log21/Argparse.py", line 944, in consume_optional
    action, option_string, explicit_arg = option_tuple
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 3)
MPCodeWriter21 commented 1 week ago

Hi @rezaqomy 👋 Thank you for your contribution to this repo! Please mention your exact Python version and your OS.

rezaqomy commented 1 week ago

I use Arch btw, and my Python version is 3.12.6. However, I tested it on my Termux, and I encountered the same error.

MPCodeWriter21 commented 1 week ago

@rezaqomy Thanks for the details! I will look into the issue and update you.