I hve an issue printing a textfile with a python script. The script is simple:
But instead of a clean print I get the error above. Tried also with "sudo". Using 'lp "testdatei.txt"' directly in a terminal windows works perfectly. Even using the code above within the python interactive mode works, but not as a script. User "pi" is in the lp group. I have no idea were the right problem exists.
Code: Select all
import os os.system('lp "testdatei.txt"')