NaitLee / Cat-Printer

Application supporting Bluetooth thermal “Cat Printers”, for everyone!
GNU General Public License v3.0
350 stars 36 forks source link

"Folder `printer_lib` is incomplete or missing, please check" error when using released “bundles” #77

Open egor835 opened 1 year ago

egor835 commented 1 year ago
Screenshot 2023-08-16 at 15 41 42

What can I do with that? printer-lib is present, I use latest bare release, unpacked with default mac os archiver

NaitLee commented 1 year ago

You may try to remove this try-except block and run printer.py again, which could tell more about what's really wrong.

i.e. change these:


try:
    from printer_lib.models import Models, Model
    from printer_lib.commander import Commander, reverse_bits
    from printer_lib.text_print import TextCanvas
except ImportError:
    fatal(
        i18n('folder-printer_lib-is-incomplete-or-missing-please-check'),
        code=ExitCodes.IncompleteProgram
    )

to:

from printer_lib.models import Models, Model
from printer_lib.commander import Commander, reverse_bits
from printer_lib.text_print import TextCanvas
NaitLee commented 1 year ago

It’s found that 0.6.3.0 “bare” bundle is missing a critical file.

Sincere apologize for that 🤥 At the moment you can clone this repository directly and run stuffs inside.

NaitLee commented 1 year ago

yes other os can’t run that bundle either