-
Notifications
You must be signed in to change notification settings - Fork 613
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
can only concatenate str (not "bytes") to str while using the print function #69
Comments
Hey @aleperuz, I tried the same, although i am getting the following. Fixed the line as below. How had you fixed this? |
@deFr0ggy yes use python 2 and add the fixes from another issue |
Try this one: edit the script that will send commands in the language of your printer (pjl.py, pcl.py or postscript.py) |
Thanks @aleperuz , just got it to resolve this, it's printing the data from "*.ps" file provided now! |
Makes sense! Thanks! |
@aleperuz can you help me on discord? discord:defacermaster |
@deFr0ggy help me on discord please discord:defacermaster |
When i try to print a photo with pret the program crush with error.
can only concatenate str (not "bytes") to str
i modified the program to make sure that the given variable is a string.
self.send(c.UEL + str(data) + c.UEL)
If I print simple text it prints without errors. So I understood that with pret you can only print text, even if I don't understand why since there is the variable that converts pdf and images into files that the printer understands.
Hope this problem is solved.
The text was updated successfully, but these errors were encountered: