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

empty service file created #30

Open
Zaoliang opened this issue Mar 26, 2021 · 2 comments
Open

empty service file created #30

Zaoliang opened this issue Mar 26, 2021 · 2 comments

Comments

@Zaoliang
Copy link

I got an empty service file 'AirPrint-hplaserjet100colormfpm175a.service' created:

--

@linux:~/Downloads/airprint-generate> ./airprint-generate.py -v
hplaserjet100colormfpm175a Losing support for: text/css,image/x-photocd,image/x-bitmap,image/pwg-raster,application/vnd.cups-raw,application/vnd.cups-postscript,application/vnd.cups-pdf-banner,application/vnd.hp lasercups-pdf
Traceback (most recent call last):
File "./airprint-generate.py", line 279, in
apg.generate()
File "./airprint-generate.py", line 226, in generate
tree.write(f, pretty_print=True, xml_declaration=True, encoding="UTF-8")
File "src/lxml/etree.pyx", line 2057, in lxml.etree._ElementTree.write
File "src/lxml/serializer.pxi", line 758, in lxml.etree._tofilelike
File "src/lxml/etree.pyx", line 318, in lxml.etree._ExceptionContext._raise_if_stored
File "src/lxml/serializer.pxi", line 682, in lxml.etree._FilelikeWriter.write
TypeError: write() argument must be str, not bytes

--
My OS: openSUSE Tumbleweed
Shared printer connected to printer server: HP Laserjet 100 Color MFP M175a

any idea about this TypeError? Thanks!

@tmulzer
Copy link

tmulzer commented Apr 22, 2021

Same with a kyocera printer and Arch Linux (Manjaro KDE).

@tmulzer
Copy link

tmulzer commented Apr 22, 2021

PullRequest #31 is the solution.

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

2 participants