pycares icon indicating copy to clipboard operation
pycares copied to clipboard

CLI doesn't work

Open Ya-Sabyr opened this issue 1 month ago • 3 comments

The 5.0.0 updated callback usage. It became a positional argument, but the usage in the CLI tool wasn't changed

Ya-Sabyr avatar Dec 12 '25 11:12 Ya-Sabyr

Can you elaborate?

saghul avatar Dec 12 '25 13:12 saghul

Using python -m pycares google.com leads to

 Traceback (most recent call last):
   File "<frozen runpy>", line 198, in _run_module_as_main
   File "<frozen runpy>", line 88, in _run_code
   File "$SRC_DIR_run_env/lib/python3.11/site-packages/pycares/__main__.py", line 65, in <module>
     channel.query(hostname, query_type, cb)

xhochy avatar Dec 12 '25 19:12 xhochy

Thanks, I'll take a look!

saghul avatar Dec 12 '25 19:12 saghul