Skip to content
New issue

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

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

Already on GitHub? # to your account

AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_asyncgens' #1

Open
msenturk opened this issue Mar 22, 2018 · 0 comments

Comments

@msenturk
Copy link

msenturk commented Mar 22, 2018

Hello,

Traceback (most recent call last):
  File "async-filter.py", line 149, in <module>
    safe,Provider = lauch(domains[i])
  File "async-filter.py", line 124, in lauch
    return loop(domain,asn_baseline,hash_baseline)
  File "async-filter.py", line 96, in loop
    loop.run_until_complete(loop.shutdown_asyncgens())
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'shutdown_asyncgens'

When I comment out the line 96 loop.run_until_complete(loop.shutdown_asyncgens()) it runs.
After comment out of the line I also getting bellow errors.
I think this one because of the time out of query in resolver.py. Im kinda new for python so cant figured out ):

(dns-online-filter) ➜  Dns-online-filter git:(master) ✗ python async-filter.py dns.txt
botmasterlabs.net --> safe
botmasterru.com --> safe
botviet.net --> safe
boypost.com --> unsafe, filtered by NortonConnectSafe
bramjnet.com --> unsafe, filtered by NortonConnectSafe
brandibelle.com --> unsafe, filtered by NortonConnectSafe
bravovids.com --> unsafe, filtered by NortonConnectSafe
brimors.pw --> safe
broadspring.com --> safe
browserexstensions.review --> safe
btc-get.com --> safe
bubblesmedia.ru --> safe
budichome.narod.ru --> safe
bulderlabelpoint.club --> safe
bulkregister.com --> safe
bulktube.com --> unsafe, filtered by NortonConnectSafe
bundasnovinhas.com --> unsafe, filtered by ComodoSecure
burn4free.com --> unsafe, filtered by NortonConnectSafe
buscape.com.br --> safe
Traceback (most recent call last):
  File "async-filter.py", line 149, in <module>
    safe,Provider = lauch(domains[i])
  File "async-filter.py", line 105, in lauch
    Answers_Google = Google.query(domain, "A")
  File "/home/msenturk/.virtualenvs/dns-online-filter/lib/python3.5/site-packages/dns/resolver.py", line 949, in query
    timeout = self._compute_timeout(start)
  File "/home/msenturk/.virtualenvs/dns-online-filter/lib/python3.5/site-packages/dns/resolver.py", line 858, in _compute_timeout
    raise Timeout(timeout=duration)
dns.exception.Timeout: The DNS operation timed out after 30.000416040420532 seconds
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant