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

SAWarning appair in the command line #21

Open
gioisco opened this issue Jul 2, 2022 · 1 comment
Open

SAWarning appair in the command line #21

gioisco opened this issue Jul 2, 2022 · 1 comment

Comments

@gioisco
Copy link

gioisco commented Jul 2, 2022

I installed drill with pip install drillsrs
My first command was drill-srs --help and I recieved some errors

[giovanni@giovanni ~]$ drill-srs --help
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:95: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  first_answer_date = sa.orm.column_property(
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:101: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  total_answer_count = sa.orm.column_property(
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:107: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  correct_answer_count = sa.orm.column_property(
/home/giovanni/.local/lib/python3.10/site-packages/drillsrs/db.py:114: SAWarning: implicitly coercing SELECT object to scalar subquery; please use the .scalar_subquery() method to produce a scalar subquery.
  incorrect_answer_count = sa.orm.column_property(
usage: drill-srs [-h]
                 {how-to, list-decks, create-deck, edit-deck, update-deck,
                 delete-deck, list-tags, add-tag, create-tag, edit-tag,
                 update-tag, delete-tag, list-cards, add-card, create-card,
                 edit-card, update-card, delete-card, study, learn, review,
                 stats, export, import} ...

Spaced repetition flashcard program for learning anything.

positional arguments:
  
    how-to                 show a mini-tutorial how to use
    list-decks             print all decks
    create-deck            create a new deck
    edit-deck (update-deck)
                           edit a single deck
    delete-deck            delete a whole deck
    list-tags              print all tags in a deck
    add-tag (create-tag)   add a new tag to a deck
    edit-tag (update-tag)  edit a single tag
    delete-tag             delete a tag from the deck
    list-cards             print all flashcards in a deck
    add-card (create-card)
                           add a new flashcard to a deck
    edit-card (update-card)
                           edit a single flashcard
    delete-card            delete a single flashcard
    study (learn)          begin a study session
    review                 begin a review session
    stats                  produce an HTML report about the chosen deck
    export                 export a deck to a JSON file
    import                 import a deck from a JSON file

options:
  -h, --help               show this help message and exit

After this I tried to create a deck and a card and the program seems work, ma every command drill-srs I digit I receive the errors above.

I use Fedora 35.

@prkstaff
Copy link

prkstaff commented Aug 10, 2022

Same happen to me installing directly from pip, but cloning the repo worked.

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