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

Add quickstart guide #6

Open
anoadragon453 opened this issue Apr 6, 2020 · 4 comments
Open

Add quickstart guide #6

anoadragon453 opened this issue Apr 6, 2020 · 4 comments

Comments

@anoadragon453
Copy link
Owner

Just need to finish it up.

@0x766C70
Copy link

0x766C70 commented Jun 19, 2020

hi @anoadragon453 !

First, thanks for your job !

I juste tried to run it out of the box with a basic config: homeserver + user + passwd and there is an error:

Traceback (most recent call last): File "main.py", line 104, in <module> asyncio.get_event_loop().run_until_complete(main()) File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "main.py", line 34, in main config = Config(config_filepath) File "/home/vlp/nio-template/config.py", line 45, in __init__ self.database_filepath = self._get_cfg(["storage", "database_filepath"], required=True) File "/home/vlp/nio-template/config.py", line 89, in _get_cfg raise ConfigError(f"Config option {'.'.join(path)} is required") errors.ConfigError: Config option storage.database_filepath is required

I just modified the config file for the db as below:

storage:

database_filepath: "bot.db"

store_filepath: "/home/vlp/nio-template/store

I have posted it here because that could help to build the quickstart guide.

Thanks again !

@anoadragon453
Copy link
Owner Author

Hey @vlp-git, as shown in sample_config.yaml, you'll need to put database_filepath (and store_filepath) under a storage key. Else the code won't be able to find them :)

@0x766C70
Copy link

Thanks for the quick answer !
What do you mean by "storage key" ! I think that I have missed smth...

@anoadragon453
Copy link
Owner Author

anoadragon453 commented Jun 19, 2020

The options need to be prefaced by storage:

storage:
# The path to the database
database_filepath: "bot.db"
# The path to a directory for internal bot storage
# containing encryption keys, sync tokens, etc.
store_filepath: "./store"

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