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

mbc logs command is broken #165

Closed
psrpinto opened this issue Apr 26, 2022 · 0 comments
Closed

mbc logs command is broken #165

psrpinto opened this issue Apr 26, 2022 · 0 comments

Comments

@psrpinto
Copy link

The mbc logs command fails with the following error (full stack trace at the end):

TypeError: create_task() got an unexpected keyword argument 'loop'

Steps to reproduce:

# clone repo
git clone git@github.com:maubot/maubot.git

# install latest python 3.8
pyenv install 3.8.13

# create virtualenv
virtualenv -p ~/.pyenv/versions/3.8.13/bin/python .venv

# install dependencies
pip install --editable .

# run command
mbc logs

Full stack trace:

/redacted/maubot/maubot/cli/commands/logs.py:41: RuntimeWarning: coroutine 'view_logs' was never awaited
  future = asyncio.create_task(view_logs(server, token), loop=loop)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
  File "/redacted/maubot/.venv/bin/mbc", line 33, in <module>
    sys.exit(load_entry_point('maubot', 'console_scripts', 'mbc')())
  File "/redacted/maubot/.venv/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/redacted/maubot/.venv/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/redacted/maubot/.venv/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/redacted/maubot/.venv/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/redacted/maubot/.venv/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/redacted/maubot/maubot/cli/commands/logs.py", line 41, in logs
    future = asyncio.create_task(view_logs(server, token), loop=loop)
TypeError: create_task() got an unexpected keyword argument 'loop'
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

Successfully merging a pull request may close this issue.

1 participant