opicron / mysticbbs-vbase

Advanced filebrowser for Mystic BBS
GNU General Public License v3.0
4 stars 0 forks source link

pyfiglet error: requested font (opts.fonttr} not found #2

Closed voipmeister closed 2 weeks ago

voipmeister commented 1 month ago

Trying to configure vbase for my board, downloaded version 0.1 beta from your board. I ran into an issue regarding pyfiglet fonts and wonder if I am missing a font?

PYTHON ERROR (/mystic/themes/global/scripts/ubase.mpy)
  File "mystic/themes/global/scripts/ubase.mpy", line 89, in ‹module >
    from pyfiglet import Figlet
  File "/usr/lib/python2.?/site-packages/pyfiglet/_init_-py", line 1004
    print(f"pyfiglet error: requested font (opts.fonttr} not found.")
SyntaxError: invalid syntax
Press a key

Some more info:

Any insight greatly appreciated!

voipmeister commented 1 month ago

For good measure I also tried the github version, with the same result :)

opicron commented 1 month ago

Ah, this is because the figlet module could not be loaded. It has to be installed in python. However, of course I should make it optional. I will add a exception to avoid this.

To add the figlet module, I think the command is pip install pyfiglet.

voipmeister commented 1 month ago

Hi oP,

It is installed:

bash-4.4$ pip2 freeze
pyfiglet==1.0.0
bash-4.4$

However, if it's not mandatory an exception would be nice :)

opicron commented 2 weeks ago

Fixed!