Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. D:\Apps\Discord bots\mathbot\mathbot>python bot.py parameters.json
  2. Total shards: 1
  3. My shards: 0
  4. WARNING:discord.client:PyNaCl is not installed, voice will NOT be supported
  5. Shard 0 client is ready.
  6. Shard 0 is on 1 servers
  7. wolfram|alpha : Joel : 2+2
  8. 2
  9. 2
  10. Making request
  11. Inside the request function!
  12. 2+2 []
  13. Traceback (most recent call last):
  14. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 655, in _create_direct_connection
  15. local_addr=self._local_addr)
  16. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 777, in create_connection
  17. raise exceptions[0]
  18. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\base_events.py", line 764, in create_connection
  19. yield from self.sock_connect(sock, address)
  20. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\selector_events.py", line 450, in sock_connect
  21. return (yield from fut)
  22. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\asyncio\selector_events.py", line 480, in _sock_connect_cb
  23. raise OSError(err, 'Connect call failed %s' % (address,))
  24. TimeoutError: [Errno 10060] Connect call failed ('140.177.16.25', 443)
  25.  
  26. The above exception was the direct cause of the following exception:
  27.  
  28. Traceback (most recent call last):
  29. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 375, in connect
  30. proto = yield from self._create_connection(req)
  31. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 632, in _create_connection
  32. _, proto = yield from self._create_direct_connection(req)
  33. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 682, in _create_direct_connection
  34. (req.host, req.port, exc.strerror)) from exc
  35. aiohttp.client_exceptions.ClientConnectorError: [Errno 10060] Can not connect to www4c.wolframalpha.com:443 [Connect call failed ('140.177.16.25', 443)]
  36.  
  37. The above exception was the direct cause of the following exception:
  38.  
  39. Traceback (most recent call last):
  40. File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 382, in answer_query
  41. result = await api.request(query, assumptions, debug = debug)
  42. File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 267, in request
  43. await result.download(session)
  44. File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 236, in download
  45. await asyncio.gather(*futures)
  46. File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 183, in download_image
  47. image = await download_image(session, self.urls[index])
  48. File "D:\Apps\Discord bots\mathbot\mathbot\wolfapi.py", line 30, in download_image
  49. async with session.get(url, timeout = 60) as req:
  50. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\client.py", line 626, in __aenter__
  51. self._resp = yield from self._coro
  52. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\client.py", line 225, in _request
  53. conn = yield from self._connector.connect(req)
  54. File "C:\Users\Joel\AppData\Local\Programs\Python\Python36-32\lib\site-packages\aiohttp\connector.py", line 380, in connect
  55. .format(key, exc.strerror)) from exc
  56. aiohttp.client_exceptions.ClientConnectorError: [Errno 10060] Cannot connect to host www4c.wolframalpha.com:443 ssl:True [Can not connect to www4c.wolframalpha.com:443 [Connect call failed ('140.177.16.25', 443)]]
  57.  
  58. During handling of the above exception, another exception occurred:
  59.  
  60. Traceback (most recent call last):
  61. File "D:\Apps\Discord bots\mathbot\mathbot\core\manager.py", line 140, in handle_message
  62. await self.handle_redirect(message, cmd_string)
  63. File "D:\Apps\Discord bots\mathbot\mathbot\core\manager.py", line 164, in handle_redirect
  64. result = await self.exec_command(message, command, arguments)
  65. File "D:\Apps\Discord bots\mathbot\mathbot\core\manager.py", line 221, in exec_command
  66. return await command.func(command.module, message, *arguments)
  67. File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 227, in command_wolf
  68. await self.lock_wolf(message.channel, message.author, query)
  69. File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 289, in lock_wolf
  70. await self.answer_query(query, channel, blame, assumptions = assumptions)
  71. File "D:\Apps\Discord bots\mathbot\mathbot\modules\wolfram.py", line 390, in answer_query
  72. print('Wolf: HTTP processing error:', e.message)
  73. AttributeError: 'ClientConnectorError' object has no attribute 'message'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement