Closed budda85 closed 11 months ago
Okay, sorry. I have made a second attempt and now i see the Web interface. But when i ty to print, i have this problem with the 'variable red'
Traceback (most recent call last): File "/home/pi/brother_ql_web/.brother_ql_pip/lib/python3.11/site-packages/bottle.py", line 876, in _handle return route.call(*args) ^^^^^^^^^^^^^^^^^^ File "/home/pi/brother_ql_web/.brother_ql_pip/lib/python3.11/site-packages/bottle.py", line 1759, in wrapper rv = callback(a, **ka) ^^^^^^^^^^^^^^^^^^ File "/home/pi/brother_ql_web/.brother_ql_pip/lib/python3.11/site-packages/brother_ql_web/web.py", line 118, in print_text qlr = generate_label( ^^^^^^^^^^^^^^^ File "/home/pi/brother_ql_web/.brother_ql_pip/lib/python3.11/site-packages/brother_ql_web/labels.py", line 220, in generate_label red=red, ^^^ UnboundLocalError: cannot access local variable 'red' where it is not associated with a value 192.168.10.218 - - [17/Aug/2023 16:00:06] "POST /api/print/text HTTP/1.1" 500 760
My config:
{ "server": { "port": 8013, "host": "", "log_level": "WARNING", "additional_font_folder": "" }, "printer": { "model": "QL-720NW", "printer": "tcp://192.168.10.110" }, "label": { "default_size": "62", "default_orientation": "standard", "default_font_size": 70, "default_fonts": [ {"family": "Minion Pro", "style": "Semibold"}, {"family": "Linux Libertine", "style": "Regular"}, {"family": "DejaVu Serif", "style": "Book"} ] }, "website": { "html_title": "Label Designer", "page_title": "Brother QL Label Designer", "page_headline": "Design your label and print it…" } }
Sorry for the delay - this issue somehow got lost in my e-mails.
Thank you for the report. I have just pushed a printing fix to GitHub - my refactoring unfortunately still misses tests and static code analysis did not report anything fishy. For the other issue, you apparently managed to fix this yourself?
Hey, i try to use your fork, but when i start i have an Error in my browser:
Here are my Logs. What do i wrong?