kbr / fritzconnection

Python-Tool to communicate with the AVM Fritz!Box by the TR-064 protocol and the AHA-HTTP-Interface
MIT License
303 stars 59 forks source link

Error with 1.10.0 and Python 3.9 on FreeBSD #164

Closed emtiu closed 1 year ago

emtiu commented 1 year ago

When testing the FreeBSD port for the new version 1.10.0, I encountered the following error upon calling fritzcall -u <user> -p <pass> -c <number>:

Traceback (most recent call last):
  File "/usr/local/bin/fritzcall", line 33, in <module>
    sys.exit(load_entry_point('fritzconnection==1.10.0', 'console_scripts', 'fritzcall')())
  File "/usr/local/lib/python3.9/site-packages/fritzconnection/cli/fritzcall.py", line 67, in main
    fc = get_instance(FritzCall, arguments)
  File "/usr/local/lib/python3.9/site-packages/fritzconnection/cli/utils.py", line 38, in get_instance
    return cls(
  File "/usr/local/lib/python3.9/site-packages/fritzconnection/lib/fritzcall.py", line 61, in __init__
    super().__init__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'use_cache'

This works without a problem when using version 1.9.1. Please advise on how to investigate further.

kbr commented 1 year ago

Thanks for reporting. Seems to be the AbstractLibraryBase class does not handle additional command line parameters introduced with 1.10. Unfortunately this part of the code has no tests so far. All cli tools should be affected, with the exception of fritzconnection for cli inspection. Will try to provide a fix as soon as possible.