RuntimeWarning on bot.close() #2

Closed
opened 2019-09-21 00:19:48 +02:00 by Romain · 1 comment
Owner

sys:1: RuntimeWarning: coroutine 'Table.create_pool' was never awaited appears when the bot turns off

To Reproduce

  1. Launch bot
  2. Type command @Tuxbot#8729 jsk py await _bot.close()
  3. See error

Verions:

  • Discord.py version 1.3.0a
  • Python Version 3.7.4 & 3.8.0b4

full traceback:

Traceback (most recent call last):
  File "launcher.py", line 120, in <module>
    main()
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "launcher.py", line 77, in main
    run_bot(kwargs.get('unload'))
  File "launcher.py", line 54, in run_bot
    db = loop.run_until_complete(
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 584, in run_until_complete
    self._check_closed()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
sys:1: RuntimeWarning: coroutine 'Table.create_pool' was never awaited
`sys:1: RuntimeWarning: coroutine 'Table.create_pool' was never awaited` appears when the bot turns off ## To Reproduce 1. Launch bot 2. Type command `@Tuxbot#8729 jsk py await _bot.close()` 3. See error ## Verions: - Discord.py version 1.3.0a - Python Version 3.7.4 & 3.8.0b4 ## full traceback: ```python Traceback (most recent call last): File "launcher.py", line 120, in <module> main() File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "launcher.py", line 77, in main run_bot(kwargs.get('unload')) File "launcher.py", line 54, in run_bot db = loop.run_until_complete( File "/usr/local/lib/python3.8/asyncio/base_events.py", line 584, in run_until_complete self._check_closed() File "/usr/local/lib/python3.8/asyncio/base_events.py", line 504, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed sys:1: RuntimeWarning: coroutine 'Table.create_pool' was never awaited ```
Author
Owner

Fixed by sqlalchemy

Fixed by sqlalchemy
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: gnouseu/tuxbot-bot#2
No description provided.