-
Notifications
You must be signed in to change notification settings - Fork 26
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
1030: The printer or class does not exist #30
Comments
Even on the same subnet. |
Hello @carstenblt I got the same error, and I make it work with import cups
cups.setServer("host:port")
cups.Connection(host, port) Currently, I don't why the above is necessary. hope it helps you out |
after several tests the solution that work for me was cups.setServer(host)
cups.setPort(port)
conn = cups.Connection(host, port) |
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Hi @hugho-ad , does the I've tried the following code (based on examples/cupstree.py):
and it worked. |
In case you connect to remote CUPS:
|
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
…ection in case of remote cups Server according to OpenPrinting/pycups#30
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
Error code: 1030, 'The printer or class does not exist.')". An explicit call to `setServer` and `setPort` fixed the issue. (see OpenPrinting/pycups#30) Also, added serve_id to printer views
I cannot get it to print - the printer shows up with getPrinters(), but trying to print a file with
conn.printFile(printer='L805', filename='myfile', title='mytitle' , options={})
results in
cups.IPPError: (1030, 'The printer or class does not exist.')
This is weird. If I supply a printer name that does not exist, I instead get a
cups.IPPError: (1280, 'No such file or directory')
instead.I am sure there is some fault on my side, but I can't figure it out. Printing with
lp -h myhost -d L805 somefile
works as expected though.Some more details: The CUPS server is in another subnet than the printer and client, connected through a VPN.
Pycups somehow wants to call the printer via its URI, which fails. First it queries the printer via its correct address, which succeeds, then the second request fails:
The text was updated successfully, but these errors were encountered: