pyharmony
pyharmony copied to clipboard
connect() got an unexpected keyword argument 'use_ssl'
Having issues getting past this error... to install the libraries I just used
sudo apt-get install python-argh
sudo apt-get install python-sleekxmpp
sudo apt-get install python-requests
Linux 3.8.0-19-generic #30-Ubuntu
PYTHONPATH="." python harmony --email XXXXX --password XXXXX --harmony_ip 192.168.0.236 show_config
INFO urllib3.connectionpool Starting new HTTPS connection (1): svcs.myharmony.com
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/tmp/pyharmony/harmony/main.py", line 83, in
I had the same issue but solved it by installing a more recent version of the sleekxmpp library.
For Debian/Ubuntu run: sudo apt-get purge python-sleekxmpp sudo pip install sleekxmpp
Or: sudo pip install --upgrade sleekxmpp
Shouldn't the line # sudo apt-get install python-argh (from above)
actually be:
sudo apt-get install python-argparse
@jpoppe is right. His recommendation to install the latest sleekxmpp has solved the issue with the error "use_ssl" at my Ubuntu 14.04. THanks.