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

aiohttp incompatibility: unexpected keyword argument ‘conn_timeout’ #126

Closed
kseistrup opened this issue Apr 6, 2017 · 2 comments
Closed
Assignees
Labels

Comments

@kseistrup
Copy link

The aiohttp.TCPConnector() class no longer has a conn_timeout keyword:

$ twtxt timeline
Traceback (most recent call last):
  File "/usr/bin/twtxt", line 11, in <module>
    load_entry_point('twtxt==1.2.1', 'console_scripts', 'twtxt')()
  File "/usr/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/twtxt/cli.py", line 126, in timeline
    tweets = get_remote_tweets(sources, limit, timeout, cache)
  File "/usr/lib/python3.6/site-packages/twtxt/twhttp.py", line 105, in get_remote_tweets
    conn = aiohttp.TCPConnector(conn_timeout=timeout, use_dns_cache=True)
TypeError: __init__() got an unexpected keyword argument 'conn_timeout'

twtxt: 1.2.1
python: 3.6.0
aiohttp: 2.0.3
linux: 4.10.8 (ArchLinux)

@intrd
Copy link

intrd commented Jun 28, 2017

Same here.
Using release version.

System:
Ubuntu 16.04.2 LTS - Python 3.5.2

Errorlog:
test@test:~/$ twtxt timeline
Traceback (most recent call last):
File "/home/test/.local/bin/twtxt", line 11, in
sys.exit(main())
File "/home/test/.local/lib/python3.5/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/test/.local/lib/python3.5/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/test/.local/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/test/.local/lib/python3.5/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/test/.local/lib/python3.5/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/test/.local/lib/python3.5/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/test/.local/lib/python3.5/site-packages/twtxt/cli.py", line 126, in timeline
tweets = get_remote_tweets(sources, limit, timeout, cache)
File "/home/test/.local/lib/python3.5/site-packages/twtxt/twhttp.py", line 105, in get_remote_tweets
conn = aiohttp.TCPConnector(conn_timeout=timeout, use_dns_cache=True)
TypeError: init() got an unexpected keyword argument 'conn_timeout'

@buckket
Copy link
Owner

buckket commented Sep 18, 2017

That’s what you get for not pinning your dependencies… Will work on a fix.

@buckket buckket self-assigned this Sep 18, 2017
@buckket buckket added the bug label Sep 18, 2017
@buckket buckket closed this as completed Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants