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

cups.IPPError: (1030, u'Not Found') #126

Open
rickrich opened this issue Mar 17, 2016 · 10 comments
Open

cups.IPPError: (1030, u'Not Found') #126

rickrich opened this issue Mar 17, 2016 · 10 comments

Comments

@rickrich
Copy link

I have used this before, but I upgraded to Fedora 22 and now I get this error:

$ sudo pip install cloudprint
[sudo] password for rick:
Requirement already satisfied (use --upgrade to upgrade): cloudprint in /usr/lib/python2.7/site-packages/cloudprint-0.14-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7/site-packages/argparse-1.4.0-py2.7.egg (from cloudprint)
Requirement already satisfied (use --upgrade to upgrade): pycups in /usr/lib64/python2.7/site-packages (from cloudprint)
Requirement already satisfied (use --upgrade to upgrade): requests>=2.7.0 in /usr/lib/python2.7/site-packages (from cloudprint)
Requirement already satisfied (use --upgrade to upgrade): urllib3==1.13.1 in /usr/lib/python2.7/site-packages (from requests>=2.7.0->cloudprint)

$ cloudprint
Traceback (most recent call last):
File "/usr/bin/cloudprint", line 9, in
load_entry_point('cloudprint==0.14', 'console_scripts', 'cloudprint')()
File "build/bdist.linux-x86_64/egg/cloudprint/cloudprint.py", line 604, in main
File "build/bdist.linux-x86_64/egg/cloudprint/cloudprint.py", line 356, in get_printer_info
cups.IPPError: (1030, u'Not Found')

Any help???

@rickrich
Copy link
Author

CUPS is running, tho:

$ systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2016-03-13 16:12:18 CDT; 3 days ago
Docs: man:cupsd(8)
Main PID: 18098 (cupsd)
Status: "Scheduler is running..."
CGroup: /system.slice/cups.service
├─18098 /usr/sbin/cupsd -l
└─19280 /usr/lib/cups/notifier/dbus dbus://

@a-andreyev
Copy link

a-andreyev commented May 12, 2016

+1 same issue with archlinux (armv7h):
$ systemctl status org.cups.cupsd.service

* org.cups.cupsd.service - CUPS Scheduler
   Loaded: loaded (/usr/lib/systemd/system/org.cups.cupsd.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-05-12 08:16:52 UTC; 2h 20min ago
     Docs: man:cupsd(8)
 Main PID: 255 (cupsd)
    Tasks: 2 (limit: 512)
   CGroup: /system.slice/org.cups.cupsd.service
           `-255 /usr/bin/cupsd -l

May 12 08:16:52 rpi2homehost systemd[1]: Started CUPS Scheduler.

@davesteele
Copy link
Contributor

Printer(s) information? queue name and printer model?

@a-andreyev
Copy link

$ lpstat -s:

system default destination: HOME_SAMSUNG_SCX4200
device for HOME_SAMSUNG_SCX4200: usb://Samsung/SCX-4200%20Series?serial=8T66BFGQ701222F.

$ lpstat -p HOME_SAMSUNG_SCX4200:

printer HOME_SAMSUNG_SCX4200 is idle.  enabled since Fri Feb 26 13:46:38 2016

@davesteele
Copy link
Contributor

Nothing obvious there.

@a-andreyev
Copy link

a-andreyev commented May 12, 2016

I'm sorry! My problem fixed when I've reinstalled my printer via cups (guess something was wrong in the printer description). Not sure what was wrong, probably PPD file was not assigned, but now it's ok.
Thank you!

@rickrich
Copy link
Author

$ root pip uninstall cloudprint
The directory '/home/rick/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Cannot uninstall requirement cloudprint, not installed
The directory '/home/rick/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

$ root pip install cloudprint
The directory '/home/rick/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/rick/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting cloudprint
Downloading cloudprint-0.14.tar.gz
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7/site-packages/argparse-1.4.0-py2.7.egg (from cloudprint)
Requirement already satisfied (use --upgrade to upgrade): pycups in /usr/lib64/python2.7/site-packages (from cloudprint)
Requirement already satisfied (use --upgrade to upgrade): requests>=2.7.0 in /usr/lib/python2.7/site-packages (from cloudprint)
Installing collected packages: cloudprint
Running setup.py install for cloudprint ... done
Successfully installed cloudprint-0.14

$ cloudprint -i p1505n
Traceback (most recent call last):
File "/usr/bin/cloudprint", line 9, in
load_entry_point('cloudprint==0.14', 'console_scripts', 'cloudprint')()
File "/usr/lib/python2.7/site-packages/cloudprint/cloudprint.py", line 586, in main
ppd, description = get_printer_info(cups_connection, name)
File "/usr/lib/python2.7/site-packages/cloudprint/cloudprint.py", line 347, in get_printer_info
ppd_path = cups_connection.getPPD(printer_name)
cups.IPPError: (1030, u'Not Found')

$ lpstat -a p1505n
p1505n accepting requests since Sun 25 Jan 2015 01:07:58 PM CST

$ lpstat -p p1505n
printer p1505n is idle. enabled since Sun 25 Jan 2015 01:07:58 PM CST

$ systemctl status cups
● cups.service - CUPS Scheduler
Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2016-05-07 06:27:08 CDT; 5 days ago
Docs: man:cupsd(8)
Main PID: 1658 (cupsd)
Status: "Scheduler is running..."
CGroup: /system.slice/cups.service
├─ 1658 /usr/sbin/cupsd -l
└─29377 /usr/lib/cups/notifier/dbus dbus://

No dice here, though! Should I install Google's Chrome ???

@davesteele
Copy link
Contributor

There's also a Go client.

@rickrich
Copy link
Author

Thanks! https://github.com/google/cups-connector/wiki/Install did the trick. Sorry, Jason.

@valiafetisov
Copy link

For me, the cups.IPPError: (1030, u'Not Found') problem was that CUPS ppd folder (/usr/share/cups/model) had two different drivers for the same printer model I was using. So the line

ppd_path = cups_connection.getPPD(printer_name)

located at /usr/share/cloudprint/cloudprint/cloudprint.py:372 was throwing the error.
I deleted unused driver and the problem was solved.

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

4 participants