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

Error running the bot #1

Open
ToRvaLDz opened this issue Feb 11, 2022 · 2 comments
Open

Error running the bot #1

ToRvaLDz opened this issue Feb 11, 2022 · 2 comments

Comments

@ToRvaLDz
Copy link

Hi,
I'm getting this error running the bot.

Tnx

╰ python D_Scheduler.py                                                                                                                                                                                                                   0.43s    10:32  7.47G  
Notifications Class loaded.
Terra Class loaded.
Logger Class loaded.
Queries Class loaded.
Traceback (most recent call last):
  File "/home/torvalds/Git/Terra-One-Stop-Bot/D_Scheduler.py", line 5, in <module>
    from C_Main import main
  File "/home/torvalds/Git/Terra-One-Stop-Bot/C_Main.py", line 26, in <module>
    from assets.Transactions import Transaction
  File "/home/torvalds/Git/Terra-One-Stop-Bot/assets/Transactions.py", line 18, in <module>
    Queries_class = Queries()
  File "/home/torvalds/Git/Terra-One-Stop-Bot/assets/Queries.py", line 27, in __init__
    self.all_rates = asyncio.run(self.get_all_rates())
  File "/home/torvalds/Git/Terra-One-Stop-Bot/venv/lib/python3.10/site-packages/nest_asyncio.py", line 38, in run
    return loop.run_until_complete(task)
  File "/home/torvalds/Git/Terra-One-Stop-Bot/venv/lib/python3.10/site-packages/nest_asyncio.py", line 81, in run_until_complete
    return f.result()
  File "/usr/lib/python3.10/asyncio/futures.py", line 201, in result
    raise self._exception
  File "/usr/lib/python3.10/asyncio/tasks.py", line 234, in __step
    result = coro.throw(exc)
  File "/home/torvalds/Git/Terra-One-Stop-Bot/assets/Queries.py", line 43, in get_all_rates
    = await asyncio.gather(
  File "/usr/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup
    future.result()
  File "/usr/lib/python3.10/asyncio/tasks.py", line 232, in __step
    result = coro.send(None)
  File "/home/torvalds/Git/Terra-One-Stop-Bot/venv/lib/python3.10/site-packages/terra_sdk/client/lcd/api/wasm.py", line 44, in contract_query
    return await self._c._get(f"/wasm/contracts/{contract_address}/store", params)
  File "/home/torvalds/Git/Terra-One-Stop-Bot/venv/lib/python3.10/site-packages/terra_sdk/client/lcd/lcdclient.py", line 87, in _get
    async with self.session.get(
  File "/home/torvalds/Git/Terra-One-Stop-Bot/venv/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/home/torvalds/Git/Terra-One-Stop-Bot/venv/lib/python3.10/site-packages/aiohttp/client.py", line 466, in _request
    with timer:
  File "/home/torvalds/Git/Terra-One-Stop-Bot/venv/lib/python3.10/site-packages/aiohttp/helpers.py", line 701, in __enter__
    raise RuntimeError(
RuntimeError: Timeout context manager should be used inside a task
@realkibou
Copy link
Owner

Did you try to run it with Pyhton 3.9?

@ToRvaLDz
Copy link
Author

Yes, same error with python 3.10/3.9/3.8.12

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

No branches or pull requests

2 participants