strangeglyph / pithos

Liquid Democracy for Discord
GNU General Public License v3.0
2 stars 0 forks source link

problem connecting #1

Open mose opened 5 years ago

mose commented 5 years ago

hi

I wanted to try this code, and had to manually install ruamel.yaml, sqlachemy and discord.py for it to run. But now I'm not sure I installed the right versions, at first run after filling up the configuration file I get

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/discord/client.py", line 255, in _run_event
    await coro(*args, **kwargs)
  File "/home/mose/projects/pithos/bot.py", line 306, in on_ready
    for server in self.servers:
AttributeError: 'PithosClient' object has no attribute 'servers'

(installed discord.py is 1.0.1, I tried before with discord but that was spitting out errors)

Any idea on how to solve this?

domi41 commented 5 years ago

The Pipfile.lock has the deps. https://pipenv.readthedocs.io/en/latest/

Not sure if pip install -p already works…

strangeglyph commented 5 years ago

pipenv install should give you the required dependencies. Aftwards, try pipenv run python main.py to run the bot.

strangeglyph commented 5 years ago

Hey, I just wanted to check in whether the problems were resolved?