matthileo

Untitled

Feb 9th, 2017
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.58 KB | None | 0 0
  1. Logged in as
  2. matthileo
  3. ------
  4. Tuned in to Matthileo
  5. ---------------------
  6. Innerpartysystem - American Trash
  7. Switchfoot - Stars
  8. Murray Gold - All the Strange, Strange Creatures (From "Doctor Who: Series 3")
  9. Murray Gold - A Pressing Need to Save the World
  10. ^CTraceback (most recent call last):
  11. File "lastfm-bot.py", line 108, in <module>
  12. bot.loop.run_until_complete(bot.start(bot_token, bot=False))
  13. File "/usr/local/lib/python3.5/asyncio/base_events.py", line 375, in run_until_complete
  14. self.run_forever()
  15. File "/usr/local/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
  16. self._run_once()
  17. File "/usr/local/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
  18. handle._run()
  19. File "/usr/local/lib/python3.5/asyncio/events.py", line 125, in _run
  20. self._callback(*self._args)
  21. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
  22. result = coro.send(None)
  23. File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 307, in _run_event
  24. yield from getattr(self, event)(*args, **kwargs)
  25. File "lastfm-bot.py", line 29, in on_ready
  26. await playing()
  27. File "lastfm-bot.py", line 66, in playing
  28. time.sleep(10)
  29. KeyboardInterrupt
  30.  
  31. During handling of the above exception, another exception occurred:
  32.  
  33. Traceback (most recent call last):
  34. File "lastfm-bot.py", line 110, in <module>
  35. bot.loop.run_until_complete(bot.logout())
  36. File "/usr/local/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
  37. return future.result()
  38. File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
  39. raise self._exception
  40. File "/usr/local/lib/python3.5/site-packages/discord/gateway.py", line 76, in run
  41. f.result()
  42. File "/usr/local/lib/python3.5/concurrent/futures/_base.py", line 405, in result
  43. return self.__get_result()
  44. File "/usr/local/lib/python3.5/concurrent/futures/_base.py", line 357, in __get_result
  45. raise self._exception
  46. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
  47. result = coro.send(None)
  48. File "/usr/local/lib/python3.5/site-packages/discord/gateway.py", line 403, in send_as_json
  49. yield from super().send(utils.to_json(data))
  50. File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 309, in send
  51. yield from self.ensure_open()
  52. File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 400, in ensure_open
  53. self.worker_task, 3 * self.timeout, loop=self.loop)
  54. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 392, in wait_for
  55. return fut.result()
  56. File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
  57. raise self._exception
  58. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
  59. result = coro.send(None)
  60. File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 426, in logout
  61. yield from self.close()
  62. File "/usr/local/lib/python3.5/site-packages/discord/ext/commands/bot.py", line 283, in close
  63. yield from super().close()
  64. File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 477, in close
  65. yield from self.ws.close()
  66. File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 241, in close
  67. self.worker_task, self.timeout, loop=self.loop)
  68. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 392, in wait_for
  69. return fut.result()
  70. File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
  71. raise self._exception
  72. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 241, in _step
  73. result = coro.throw(exc)
  74. File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 413, in run
  75. msg = yield from self.read_message()
  76. File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 435, in read_message
  77. frame = yield from self.read_data_frame(max_size=self.max_size)
  78. File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 490, in read_data_frame
  79. frame = yield from self.read_frame(max_size)
  80. File "/usr/local/lib/python3.5/site-packages/websockets/protocol.py", line 525, in read_frame
  81. self.reader.readexactly, is_masked, max_size=max_size)
  82. File "/usr/local/lib/python3.5/site-packages/websockets/framing.py", line 80, in read_frame
  83. data = yield from reader(2)
  84. File "/usr/local/lib/python3.5/asyncio/streams.py", line 670, in readexactly
  85. block = yield from self.read(n)
  86. File "/usr/local/lib/python3.5/asyncio/streams.py", line 627, in read
  87. yield from self._wait_for_data('read')
  88. File "/usr/local/lib/python3.5/asyncio/streams.py", line 457, in _wait_for_data
  89. yield from self._waiter
  90. File "/usr/local/lib/python3.5/asyncio/futures.py", line 361, in __iter__
  91. yield self # This tells Task to wait for completion.
  92. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
  93. future.result()
  94. File "/usr/local/lib/python3.5/asyncio/futures.py", line 274, in result
  95. raise self._exception
  96. File "/usr/local/lib/python3.5/asyncio/selector_events.py", line 707, in write
  97. n = self._sock.send(data)
  98. BrokenPipeError: [Errno 32] Broken pipe
  99. Unclosed client session
  100. client_session: <aiohttp.client.ClientSession object at 0x7f4a05e2ab00>
  101. Task exception was never retrieved
  102. future: <Task finished coro=<_run_event() done, defined at /usr/local/lib/python3.5/site-packages/discord/client.py:304> exception=KeyboardInterrupt()>
  103. Traceback (most recent call last):
  104. File "lastfm-bot.py", line 108, in <module>
  105. bot.loop.run_until_complete(bot.start(bot_token, bot=False))
  106. File "/usr/local/lib/python3.5/asyncio/base_events.py", line 375, in run_until_complete
  107. self.run_forever()
  108. File "/usr/local/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
  109. self._run_once()
  110. File "/usr/local/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
  111. handle._run()
  112. File "/usr/local/lib/python3.5/asyncio/events.py", line 125, in _run
  113. self._callback(*self._args)
  114. File "/usr/local/lib/python3.5/asyncio/tasks.py", line 239, in _step
  115. result = coro.send(None)
  116. File "/usr/local/lib/python3.5/site-packages/discord/client.py", line 307, in _run_event
  117. yield from getattr(self, event)(*args, **kwargs)
  118. File "lastfm-bot.py", line 29, in on_ready
  119. await playing()
  120. File "lastfm-bot.py", line 66, in playing
  121. time.sleep(10)
  122. KeyboardInterrupt
  123. matt@katzmatt:~$ python3.5 lastfm-bot.py
  124. ^CTask was destroyed but it is pending!
  125. task: <Task pending coro=<ConnectionState._delay_ready() running at /usr/local/lib/python3.5/site-packages/discord/state.py:190> wait_for=<Future pending cb=[Task._wakeup()]>>
Advertisement
Add Comment
Please, Sign In to add comment