Git Product home page Git Product logo

Comments (4)

anoadragon453 avatar anoadragon453 commented on July 1, 2024 1

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 :)

from nio-template.

0x766C70 avatar 0x766C70 commented on July 1, 2024

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 !

from nio-template.

0x766C70 avatar 0x766C70 commented on July 1, 2024

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

from nio-template.

anoadragon453 avatar anoadragon453 commented on July 1, 2024

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"

from nio-template.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.