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

Noisy output on exit on Windows #1

Closed
MusicOnline opened this issue Jan 5, 2020 · 0 comments
Closed

Noisy output on exit on Windows #1

MusicOnline opened this issue Jan 5, 2020 · 0 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@MusicOnline
Copy link
Owner

When running AutoShardedBot (which Botto uses) then exiting on Windows, you may get an exception such as follows:

Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000181F2917EE0>
Traceback (most recent call last):
  File "c:\users\music\appdata\local\programs\python\python38\Lib\asyncio\proactor_events.py", line 116, in __del__
    self.close()
  File "c:\users\music\appdata\local\programs\python\python38\Lib\asyncio\proactor_events.py", line 108, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "c:\users\music\appdata\local\programs\python\python38\Lib\asyncio\base_events.py", line 715, in call_soon
    self._check_closed()
  File "c:\users\music\appdata\local\programs\python\python38\Lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

This is an issue with aiohttp, as seen in aio-libs/aiohttp#4324.
This error does not affect Botto in anyway, just that it only creates a dissatisfying output on exiting the process. It can be safely ignored.

Nonetheless, you should opt to host bots on a Unix server instead. You can test Botto using Docker when developing on a Windows machine, then host it in a Docker container or push it to your production server.

@MusicOnline MusicOnline added bug Something isn't working wontfix This will not be worked on labels Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant