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

How to run on windows? #34

Open
Abhi0725 opened this issue Nov 9, 2020 · 3 comments
Open

How to run on windows? #34

Abhi0725 opened this issue Nov 9, 2020 · 3 comments

Comments

@Abhi0725
Copy link

Abhi0725 commented Nov 9, 2020

I am trying to run this on windows and getting error on font_helpers.py file method get_fonts(). Seems like fc-scan is working only on Linux?

@FriedrichFroebel
Copy link

As documented inside the README, the fontconfig package is required for the package to work, so you will have to provide this package or at least the corresponding binary inside your $PATH. It seems like Anaconda (https://anaconda.org/anaconda/fontconfig) provides corresponding binaries, although I have not tested them.

@elhannaoui-ayoub
Copy link

@Abhi0725 did you find any solution to run this script on windows , i'm always getting this error
deprecation warning: brother_ql.devicedependent is deprecated and will be removed in a future release
Traceback (most recent call last):
File "C:\Users\DELL\Downloads\brother_ql_web-master (1)\brother_ql_web-master\brother_ql_web.py", line 302, in
main()
File "C:\Users\DELL\Downloads\brother_ql_web-master (1)\brother_ql_web-master\brother_ql_web.py", line 277, in main
FONTS = get_fonts()
^^^^^^^^^^^
File "C:\Users\DELL\Downloads\brother_ql_web-master (1)\brother_ql_web-master\font_helpers.py", line 29, in get_fonts
styles = parts[2].split('=')[1].split(',')
~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

@FriedrichFroebel
Copy link

What is the plain output of the corresponding fontconfig subprocess command issued?

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

3 participants