Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connect() got an unexpected keyword argument 'use_ssl' #1

Open
tdubbz opened this issue Jun 22, 2013 · 3 comments
Open

connect() got an unexpected keyword argument 'use_ssl' #1

tdubbz opened this issue Jun 22, 2013 · 3 comments

Comments

@tdubbz
Copy link

tdubbz commented Jun 22, 2013

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
main()
File "/tmp/pyharmony/harmony/main.py", line 79, in main
sys.exit(args.func(args))
File "/tmp/pyharmony/harmony/main.py", line 37, in show_config
token = login_to_logitech(args)
File "/tmp/pyharmony/harmony/main.py", line 28, in login_to_logitech
args.harmony_ip, args.harmony_port, token)
File "/tmp/pyharmony/harmony/auth.py", line 111, in swap_auth_token
use_tls=False, use_ssl=False)
TypeError: connect() got an unexpected keyword argument 'use_ssl'

@jpoppe
Copy link

jpoppe commented Aug 6, 2013

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

@wayner9
Copy link

wayner9 commented Nov 27, 2015

Shouldn't the line # sudo apt-get install python-argh (from above)

actually be:

sudo apt-get install python-argparse

@Folcr
Copy link

Folcr commented Mar 20, 2016

@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.

siam28 pushed a commit to siam28/pyharmony that referenced this issue Mar 19, 2017
make scripts work with both py2 and py3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants