mnemosyne-proj / mnemosyne

Mnemosyne: efficient learning with powerful digital flash-cards.
https://mnemosyne-proj.org/
Other
513 stars 75 forks source link

card customization errors on GNU/Linux NixOS #276

Closed eflanagan0 closed 2 months ago

eflanagan0 commented 2 months ago

hello! Thank you for creating and maintaining mnemosyne. I've found it helpful for memorization practice.

environment

I am running GNU/Linux distribution NixOS 24.05.4974.8f7492cce289 (Uakari) and Mnemosyne 2.10.1. I've also invoked the program with a custom directory location -d to somewhere in my home directory.

steps

  1. Open a card deck
  2. Click settings
  3. Click configure
  4. click card appearance tab
  5. Click "Select font"
  6. Change font size to 16 from 9

Then, the following stack trace appears:

An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/nix/store/lmnxycxzgmi5cwwfbqssxwjiaaxajlil-mnemosyne-2.10.1/lib/python3.11/site-packages/mnemosyne/pyqt_ui/configuration_wdgt_card_appearance.py", line 223, in preview
    render_chain.renderer_for_card_type(card_type).update(card_type)
  File "/nix/store/lmnxycxzgmi5cwwfbqssxwjiaaxajlil-mnemosyne-2.10.1/lib/python3.11/site-packages/mnemosyne/libmnemosyne/renderers/html_css.py", line 105, in update
    self.card_type_css(card_type, **render_args)
  File "/nix/store/lmnxycxzgmi5cwwfbqssxwjiaaxajlil-mnemosyne-2.10.1/lib/python3.11/site-packages/mnemosyne/libmnemosyne/renderers/html_css.py", line 81, in card_type_css
    family,size,x,x,w,i,u,s,x,x,x,x,x,x,x,x,style \
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 ValueError: not enough values to unpack (expected 17, got 16)

guesses

NixOS enforces strong separation of application configuration so I'd wager some of that affects how mnemosyne might read and set its configuration.

pbienst commented 2 months ago

Please update to 2.11