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

crawler - tests failing - see output #254

Open
drumm91UWO opened this issue Mar 29, 2017 · 2 comments
Open

crawler - tests failing - see output #254

drumm91UWO opened this issue Mar 29, 2017 · 2 comments

Comments

@drumm91UWO
Copy link

drumm91UWO commented Mar 29, 2017

The crawler project's test.py is failing during the setup of every test but I am not familiar enough with asyncio to understand why. System information:
Windows 10
Python 3.5

Here is the output:

C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py:54: ResourceWarning: loop argument is deprecated
warnings.warn("loop argument is deprecated", ResourceWarning)
EEEEEEEEEEEEEEEEE

ERROR: test_content_type (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_deep_root (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_encoding (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_exclude (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_lenient_host_checking (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_link (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_link_cycle (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_max_tasks (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_max_tries (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_non_html (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_non_http (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_prohibited_host (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_redirect (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_redirect_cycle (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_redirect_join (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_roots (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

======================================================================
ERROR: test_strict_host_checking (main.TestCrawler)

Traceback (most recent call last):
File "test.py", line 51, in setUp
self.app = self.loop.run_until_complete(self._create_server())
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\base_events.py", line 342, in run_until_complete
return future.result()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\futures.py", line 274, in result
raise self._exception
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(value)
File "test.py", line 64, in _create_server
handler_factory = app.make_handler(debug=True)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 224, in make_handler
self._set_loop(loop)
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\site-packages\aiohttp\web.py", line 110, in _set_loop
loop = asyncio.get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 589, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "C:\Users\Primary User\AppData\Local\Programs\Python\Python35\lib\asyncio\events.py", line 535, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.


Ran 17 tests in 0.031s

FAILED (errors=17)

@drumm91UWO
Copy link
Author

I found the solution. The aiohttp 2.0.4 package that I was using depreciated some parts of aiohttp 0.21.x. Using aiohttp 0.21.x fixed the problem.

@lesssn
Copy link

lesssn commented May 12, 2017

Can you tell me what's changed?

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

2 participants