CUPS Cloud Print

Found CUPS Cloud Print useful?

Introduction

CUPS Cloud Print is a Google Cloud Print driver for UNIX-like operating systems ( Linux, Mac OS X , BSDs etc ). It allows any application which prints via CUPS to print to Google Cloud Print directly.

Why?

Assuming you have Print-Cloud-Ready printer, Google Cloud Print allows you to print to your printer without installing any printer specific drivers – aside from the obvious advantages of not having to install drivers for every printer you come into contact with, it allows you to use a proprietary printer on platforms you would not normally easily be able to use ( for example, printing from an ARM-based Raspberry Pi to a printer where the manufacturer only provides x86 proprietary drivers ).

Also, because Google Docs ( Google Drive ) presents itself as a printer to Cloud Print, it also means you can ‘print’ directly to Google Docs using CUPS Cloud Print ( some users have leveraged this functionality to scan to Google Docs ).

License and Downloading

CUPS Cloud Print is licensed under the GNU Public License version 3 or above, the source code is freely available as a Github repository.

20160521 Release – 21st May 2016

  • Fix: Now works on Mac OS X 10.11 ( El Capitan )
  • Change: Moved Mac OS X Install dir from /usr/local/share/cloudprint-cups to /Library/cloudprint-cups

20160502 Release – 2nd May 2016

  • New: Use CCD instead of ( now broken ) old legacy format
  • Fix: Add refresh tokens to launchd on Darwin package
  • Fix: Suggest installing texlive-lang-cjk in debian package
  • Fix: Delete /usr/share/cloudprint-cups/.cache on Gentoo ebuild uninstall
  • Change: Upgrade oauth2client to 1.5.2
  • Change: Write temp files to disk on Darwin if ps2pdf not present

20140814.3 Release – 31st May 2015

  • Fix: Now works on Mac OS X 10.10 ( Yosemite )
  • Change: Moved Mac OS X Install dir from /usr/local/share/cloudprint-cups to /usr/share/cloudprint-cups

20140814.2 Release – 13th December 2014

  • Fix: Upgrade script error no longer prevents Mac OS X installation
  • Fix: Strip control chars when sanitising text
  • Fix: Fixed printing from stdin, detect mimetypes from job types
  • Change: Upgraded oauth2client to v1.4.2
  • Change: Stop writing temp files to disk
  • Change: Stop writing base64 encoded files to disk
  • Change: Require 'which' and 'file' packages in rpm ( dummy 'which' package added for OpenSUSE )
  • Change: Require python-six for latest oauth2client version
  • Change: Prevent capabilities prefixed with 'cups', or other ones that could point to binaries being used to populate ppd with potentially arbitrary commands from GCP
  • Change: Dont write temp ppd files in reportissues.py script
  • Change: Backend now only accepts data from stdin, and refuses to read files passed in

20140814 Release – 14th August 2014

  • Fix: Issue #71 on Github, always send use_cdd=false param with every request Git logo

20140702 Release – 2nd July 2014

  • New: Split printer class into seperate Printer and PrinterManager classes Git logo
  • New: OS X package support Git logo
  • New: Added SELinux support to RPM packages Git logo
  • New: Added refresh token cron script Git logo
  • Fix: Use python interpreter when python2 interpreter not available. Git logo
  • Fix: Setup script shows printer names in multiple columns, instead of one column. Git logo
  • Fix: Now PEP8 compliant Git logo
  • Fix: Detect _lp as valid cups group in configure script Git logo
  • Change: Moved testing data and scripts into 'testing' subdirectory Git logo
  • Change: Changed protocol to gcp:// instead of cloudprint:// Git logo

20140308 Release – 8th March 2014

  • Fix: Use shorter URI format to workaround issue on older distros having a short max length on printer URIs Git logo

20140307 Release – 7th March 2014

  • Security: Only log access token to log file in debug mode Git logo
  • New: Support printers with same name in same account Git logo
  • New: Log now pipe delimited and contains timestamp Git logo
  • Fix: Set UseCIEColor when converting postscript file to pdf, fixes printing files generated by Adobe Reader Git logo
  • Fix: Set page name to Untitled when page printed with no name Git logo
  • Fix: Open oauth2 config file in read only mode if access denied to write, fixes running under Mac OS X Git logo
  • Fix: No longer run upgrade script on fresh install Git logo
  • Fix: Fix the log file permissions on creation or upgrade, only adjust owners and permissions if needed to change Git logo
  • Fix: Exclude groups that cant be correct for cups group when discovering CUPS group Git logo
  • Fix: Discover CUPS group by examining CUPS log file ownerships, then PPD directory if logs missing Git logo
  • Change: Sanitised the indentation of python files Git logo
  • Change: Removed upgrade message about location of files changing Git logo
  • Change: Moved common functions into utils class, allows better unit testing Git logo
  • Change: Centralised logging setup into utils script Git logo

20140210 Release – 10th February 2014

  • New: Show better error message if printer ppd not found Git logo
  • Fix: Use python logging facility instead of writing to log files directly, fixes No handlers could be found for logger error Git logo
  • Fix: Upgrade script now faster with multiple printers, now only gets list of PPDs once and filters for each printer Git logo
  • Fix: Show better error if renewing OAUTH2 token fails Git logo
  • Fix: Explicitely define dirs in rpm files list, ensures will be removed correctly on uninstall Git logo
  • Fix: Deb package now deletes old pyc files on uninstall/upgrade Git logo
  • Fix: Config file permissions now fixed to allow updating of access token when printing Git logo
  • Fix: Compile python code on rpm install to ensure old files are removed on uninstall Git logo
  • Fix: Compile python code on Gentoo install to ensure old files are removed on uninstall Git logo
  • Fix: Compile python code on arch install to ensure old files are removed on uninstall Git logo
  • Change: Merged submitjob.py script into backend script Git logo
  • Change: Error out immediately if lpadmin command not in path on upgrade Git logo

20140112 Release – 12th January 2014

  • NEW: When invalid OAuth2 code used, show the error message Git logo
  • NEW: Can now delete associated printers when deleting an account Git logo
  • NEW: Added test script for post-packaging testing Git logo
  • CHANGE: Moved files from /usr/lib/ to /usr/share Git logo

20131013 Release – 13th October 2013

  • CHANGE: Use imagemagick for rotating PDFs instead of pdfjam due to issues with CentOS and Fedora Git logo

20131009 Release – 8th October 2013

  • FIX: Override default for when applications assume wrong default values ( eg duplex ) Git logo
  • FIX: No longer error on adding printers with duplicate capability names, Git logo
  • FIX: Landscape printing should now work correctly on all printers Git logo
  • FIX: Ignore duplicate parameters Git logo
  • FIX: Detect duplex option Git logo
  • FIX: Adding printers with prefix no longer errors Git logo
  • CHANGE: pdfjam dependency now required Git logo
  • CHANGE: List cloud printers script now shows display name instead of printer name Git logo

20130914 Release – 14th September 2013

  • NEW: Use display name if available for generating values for ppd Git logo
  • NEW: Added version param to scripts Git logo
  • NEW: Added test cases and list of capabilities for testing internal name function Git logo
  • FIX: Prevent duplicate options and capabilities being generated Git logo
  • FIX: Post name of capability instead of internal hash, should fix issues with capabilities failing to work correctly Git logo
  • FIX: Fixed displaying of errors from Google side ( eg when print proxy is down ) Git logo
  • FIX: Allow overriding print params per print job Git logo
  • CHANGE: Removed gcp_ prefix for capabilities ( unless conflicts with reserved words ) Git logo

20130718 Release – 18th July 2013

  • NEW: PDF now supplied to CCP via CUPS, increases printing speed. Git logo
  • NEW: Default to A4 paper size in countries that use A4 paper. Git logo
  • FIX: Use utf8 output for ppd, use internal option and capability hashes for names to prevent errors - should fix a lot of errors related to non-ASCII chars in capabilities. Git logo
  • FIX: Removed redundant ppdc dependencies. Git logo
  • FIX: Removed old PPD files, as no longer used. Git logo
  • FIX: Optimise PDF generated for printing. Git logo
  • FIX: Only ask once per account for prefix. Git logo
  • FIX: Fixed final warnings in PPD. Git logo
  • FIX: Custom printer name should now work. Git logo
  • FIX: CUPS Backend etc now use source install by default. Git logo
  • FIX: Add translations into cups ppd. Git logo

20130608 Release – 8th June 2013

  • FIX: Parameters with long names should no longer error Git logo

20130604 Release – 3rd June 2013

  • FIX: Fixed syntax error on adding individual printers. Git logo

20130603 Release – 3rd June 2013

  • NEW: Added reportissues.py script to assist in debugging issues Git logo
  • FIX: Use option name instead of displayname if displayname is missing Git logo
  • CHANGE: On answering no for adding all printers, ask to add individual printers Git logo
  • CHANGE: Ask whether or not to use prefix rather than assuming user knows to enter prefix directly Git logo

20130526 Release – 26th May 2013

  • FIX: Strip out colon chars from capability and options in ppd. Git logo

20130519 Release – 19th May 2013

  • FIX: No longer error on capabilities with missing display name. Git logo

20130510 Release – 10th May 2013

  • Fix: Use lp group instead of trying to discover group name dynamically Git logo
  • Fix: Only update config file permissions when config options changed, not when tokens refreshed. Git logo
  • Fix: Deb package installs cloudprint files with correct permissions. Git logo

20130504 Release – 4th May 2013

  • New: Script to delete user accounts ( deleteaccount.py ) Git logo
  • New: Capabilities for printer supplied by Google Cloud Print ( eg Colour, Print tray, etc ) now appear as options in dialogs. Git logo
  • Fix: RPM package can now be built as a non-root user. Git logo
  • Change: PPD file now generated dynamically Git logo

20130203 Release – 3rd February 2013

  • Priority Fix: Ensure printing is always sent over HTTPS, fixes an issue where Google has began returning errors on HTTP API requests Git logo
  • New: Extra debug data now logged if JSON decoding fails Git logo
  • New: Added gentoo/freebsd support Git logo
  • Change: Detect CUPS user group automatically rather than assume group name is always lp Git logo

20130101 Release – 1st January 2013

  • New: Python 2.6 now properly supported Git logo
  • New: Began adding py.test unit tests Git logo

20121208 Release – 8th December 2012

  • New: Added FedEx office support Git logo

20121202 Release – 2nd December 2012

  • Fix: Show all printers, including ones marked as dormant Git logo
  • Fix: Issue #16 – Arch package, cupsddk dependency is discontinued. Git logo
  • Fix: Depend on system-config-printer-libs instead of python-cups in RPM Git logo
  • Change: Backwards compatiblity changes for older versions of python Git logo

20120908 Release – 8th September 2012

  • Fix: Issue #13 – Invalid CUPS printer name generated Git logo

20120823 Release – 23rd August 2012

  • Fix: Fixed error when trying to print to printers with an account name containing an ‘@’ Git logo

20120818 Release – 18th August 2012

  • New: Multiple Google user account support, you can now add printers from multiple Google Cloud Print accounts Git logo
  • New: Depreciated Google ClientLogin replaced with OAuth2 implementation – Google Account password no longer stored locally – when upgrading you will need to remove and re-add your Google Account and printers Git logo
  • Fix: No longer blindly overwrite printers when adding a new printer with same name as an existing printer Git logo

20120812 Release – 12th August 2012

  • New: PPD of cloud printers now replaced when upgrading CUPS Cloud Print Git logo
  • New: PPD now has an IEEE 1284 device id Git logo
  • New: Device and options now logged when printing Git logo
  • New: Cloud Print printers now listed as ‘Discovered Network Printers’ when adding printers Git logo
  • New: Added Colour Model option to CUPS PPD, send Colour option to Google when printing to colour printers Git logo
  • Fix: Querying available options no longer hangs Git logo
  • Fix: PDF files should now print correctly Git logo
  • Fix: More Python3 fixes Git logo
  • Fix: Fixed error when installing printer with non ASCII characters Git logo
  • Fix: Check that files exist before attempting to delete them Git logo

20120513 Release – 13th May 2012

  • Security: cloudprint.conf now only accessible by root and cups Git logo
  • New: Added Arch Linux support Git logo
  • Fix: Require python 2.7 Git logo
  • Fix: Log permissions now fixed when recreated by logrotate Git logo
  • Fix: Fixes to dependencies to require ghostscript Git logo
  • Fix: Backend script no longer fails if cannot write to log file Git logo

20120422 Release – 22nd April 2012

  • New: When setting up printers, prompt for an optional prefix for printer names Git logo
  • New: Added debian and redhat support, package build stubs now in repository Git logo
  • Change: Renamed Gentoo ebuild to be consistent with new RPM and Deb packages Git logo

20120123 Release – 23rd January 2012

  • Fix: Require python2 instead of any version of Python Git logo
  • Fix: Only try to convert to PDF if file isnt already a PDF Git logo
  • Fix: Cast to string on joining string as part of request, fixes an issue with some files printing Git logo

20111110 Release – 11th November 2011

  • New: Added utility to list printers Git logo
  • New: Added setup script Git logo
  • New: Added application specific password support Git logo
  • Fix: Print jobs now titled with job name from CUPS instead of hardcoded Git logo
  • Fix: PPD now presents as a colour printer Git logo
  • Fix: Now compatible with BSD install Git logo
  • Fix: No longer send PDF data twice, should half printing time Git logo
  • Fix: Make install should now install all *.py files Git logo
  • Fix: Errors now reporting properly to CUPS Git logo
  • Fix: Check for pstopdf if ps2pdf doesnt exist Git logo

20111011 Release – 11th October 2011

  • Initial Release Git logo

I generally use Gentoo , CentOS and Ubuntu, but I’ve tried to create packages to suite 99% of Linux distributions. All packages are set as noarch ( or the distro’s equivalent ), so should work on any CPU architecture ( x86, x86_64, ARM, MIPS etc ).

If there is a (Free) OS which you require packages for, please comment below and I’ll investigate creating packages for it.

Please select your Operating System for installation instructions:

Ubuntu 12.04+ , Kubuntu 12.04+ , Xubuntu 12.04+ , Mint 13+ etc - PPA Based Installation

Run in a terminal:

sudo add-apt-repository ppa:simon-cadman/niftyrepo
sudo apt-get update
sudo apt-get install cupscloudprint
sudo /usr/share/cloudprint-cups/setupcloudprint.py

Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you're done.

Debian Squeeze+ , MEPIS 11+ etc - .deb file based installation

If your OS supports PPA repositories, it is preferable to install using PPAs, you will then automatically receive updates when new versions are released.

If you need to install using a deb file, run in a terminal ( as root, or using sudo ):

wget https://niftyrepo.niftiestsoftware.com/cups-cloud-print/packages/cupscloudprint_20160502-1_all.deb 
dpkg -i cupscloudprint_20160502-1_all.deb
apt-get -f install
/usr/share/cloudprint-cups/setupcloudprint.py

Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you're done.

CentOS 6+ , Fedora 19+ , Oracle 6+ , RHEL 6+ , Scientific Linux 6+ etc - Yum Based

Note: RHEL based distributions require the EPEL repository installed ( see here or here for examples of how to install the repository ).

Create a file in /etc/yum.repos.d/niftyrepo.repo with this text inside ( as root, or using sudo ):

[niftyrepo]
name=niftyrepo
baseurl=https://niftyrepo.niftiestsoftware.com/rpm/
gpgcheck=1
gpgkey=https://niftyrepo.niftiestsoftware.com/rpm/RPM-GPG-KEY-niftiestsoftware

Then run in a terminal ( as root, or using sudo ):

yum update
yum install cupscloudprint
/usr/share/cloudprint-cups/setupcloudprint.py
Note: Users wit recent versions of Fedora should use 'dnf' instead of yum, and may also need to install the python-cups package manually.

Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you're done.

OpenSUSE 11.1+ , SUSE EL 11+ etc - Zypper Based

Create a file in /etc/zypp/repos.d/niftyrepo.repo with this text inside ( as root, or using sudo ):

[niftyrepo]
name=cupscloudprint
baseurl=https://niftyrepo.niftiestsoftware.com/rpm/
gpgcheck=1
gpgkey=https://niftyrepo.niftiestsoftware.com/rpm/RPM-GPG-KEY-niftiestsoftware

Then run in a terminal ( as root, or using sudo ):

rpm --import https://niftyrepo.niftiestsoftware.com/rpm/RPM-GPG-KEY-niftiestsoftware
zypper update
zypper install cupscloudprint
/usr/share/cloudprint-cups/setupcloudprint.py

Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you're done.

.rpm file based installation

If your OS supports Yum repositories, it is preferable to install using a Yum repo, you will then automatically receive updates when new versions are released.

Run in a terminal ( as root, or using sudo ):

rpm --import https://niftyrepo.niftiestsoftware.com/rpm/RPM-GPG-KEY-niftiestsoftware
rpm -i https://niftyrepo.niftiestsoftware.com/cups-cloud-print/packages/cupscloudprint-20160502-1.noarch.rpm 
/usr/share/cloudprint-cups/setupcloudprint.py

Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you're done.

Gentoo, Sabayon, Funtoo etc - Portage Ebuild

The preferred way to install CUPS Cloud Print on Gentoo is using my layman repository - simply run in a terminal (as root with layman installed):

layman -o https://raw.github.com/simoncadman/niftyrepo-layman/master/repositories.xml -f -a niftyrepo
emerge -va cupscloudprint
/usr/share/cloudprint-cups/setupcloudprint.py

Then follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing.

You can alternatively download the latest ebuild manually to a local overlay and emerge as normal.

Arch, Chakra etc - Arch Pacman

Add to /etc/pacman.conf:

[niftyrepo]
Server = https://niftyrepo.niftiestsoftware.com/arch
SigLevel = Required TrustAll

Then run in a terminal ( as root, or using sudo ), answering 'Y' when asked to the import PGP key ( 2048R/C5541D9D ):

pacman -Syu cupscloudprint
/usr/share/cloudprint-cups/setupcloudprint.py

Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you’re done.

You can alternatively download the latest arch PKG file and install as normal.

Other (Source install) - Source Install

Run in a terminal ( as root, or using sudo ):

git clone git://github.com/simoncadman/CUPS-Cloud-Print.git
cd CUPS-Cloud-Print/
git checkout tags/20160502
./configure
make install
/usr/local/share/cloudprint-cups/setupcloudprint.py

Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you're done.

When upgrading, you should always run:

/usr/local/share/cloudprint-cups/upgrade.py

Mac OS X 10.7+ - Darwin Based

Download and run the latest package from here, then run in a terminal:

sudo /Library/cloudprint-cups/setupcloudprint.py

Follow the instructions about authorizing CUPS Cloud Print to use your Google Account for printing, and you're done.

FreeBSD, PC-BSD etc - FreeBSD based

CUPS Cloud Print is now in FreeBSD ports! See here for installation instructions.
Instructions for running source install
Run in a terminal ( as root, or using sudo ):
git clone git://github.com/simoncadman/CUPS-Cloud-Print.git
cd CUPS-Cloud-Print/
git checkout tags/20160502
./configure
gmake install
/usr/local/share/cloudprint-cups/setupcloudprint.py
Follow the instructions about authorising CUPS Cloud Print to use your Google Account for printing, and you're done. When upgrading, you should always run:
/usr/local/share/cloudprint-cups/upgrade.py

After installing CUPS Cloud Print ( see Installation ), you should first run the setup script, as root ( if you install from source the path will be /usr/local/share/cloudprint-cups ):

/usr/share/cloudprint-cups/setupcloudprint.py

This will create a CUPS printer for each Google Cloud Print printer on your account, and ( if it is the first time you have installed CUPS Cloud Print ) prompt you to allow CUPS Cloud Print to print using your account.

If you notice any bugs or would like to request a feature, please create an issue on the project’s Github issues page .

Which platforms can CUPS Cloud Print run on?

The supported operating systems are listed on the nstallation instructions section. It should work on any platform which those operating systems run on ( Raspberry Pi, embedded hardware such as routers, etc ).

I also generally prefer to only support Free operating systems for my software.

How do I remove google accounts from CUPS Cloud Print?

The deleteaccount.py script will remove accounts from CUPS Cloud Print:

sudo /usr/share/cloudprint-cups/deleteaccount.py

I've shared a CUPS Cloud Print printer over Samba for a Windows client, which printer driver should I use?

The "Samsung CLP-660 Series PS" printer driver works under Windows 7, but it may not work 100%, as it is unsupported. I believe basic printing does work though.

Google has added new options for my printer, but CUPS is not showing them as options, how to I force CUPS Cloud Print to refresh the printer capabilities?

Running the upgrade script refreshes the available printer options:

sudo /usr/share/cloudprint-cups/upgrade.py

323 thoughts on “CUPS Cloud Print”

  1. Problem solved (my problem). When you get this running /usr/local/share/cloudprint-cups/setupcloudprint.py:
    ……
    Error adding: Galaxy_Nexus (1280, u’server-error-internal-error’)
    Error adding: Xoom (1280, u’server-error-internal-error’)
    Added 6 new printers to CUPS

    You probably need to open up the https-port in your firewall for cups .

    Bye

  2. hello all,
    I am using an Acer CB3-111 chromebook and running Ubuntu trusty. The problem I am running into is this, when I install the cups cloudprint and get to where it ask me if I want to add more accounts it fails. Here is a log:
    You currently have these accounts configured:
    xxxxxxxxxxxxxx@gmail.com
    Add more accounts (Y/N)? n
    Traceback (most recent call last):
    File “/usr/share/cloudprint-cups/setupcloudprint.py”, line 109, in
    connection = cups.Connection()
    RuntimeError: failed to connect to server

    Why am I getting this error?

  3. I have tried this cups cloudprint and another and get the same result:

    You currently have these accounts configured:

    *************@gmail.com
    Add more accounts (Y/N)? n
    Traceback (most recent call last):
    File “/usr/share/cloudprint-cups/setupcloudprint.py”, line 109, in
    connection = cups.Connection()
    RuntimeError: failed to connect to server

    Why am I getting the failed to connect error?

  4. I am trying to use this cups cloudprint script and I get stuck at adding accounts. I already have an account setup, so I choose no and then the script fails.

    You currently have these accounts configured:

    doogalbear@gmail.com
    Add more accounts (Y/N)? n
    Traceback (most recent call last):
    File “/usr/share/cloudprint-cups/setupcloudprint.py”, line 109, in
    connection = cups.Connection()
    RuntimeError: failed to connect to server

    Why am I getting this error?

  5. I am trying to use this script and I get to the point where it ask me to add accounts. I already have an account so i say no and the script fails and says it cannot connect to server. Does anyone know why I get this error?

  6. I’m sorry for the multiple post. My computer wasn’t refreshing the page and didn’t know.

  7. Hi doogal,

    That sounds like CUPS isn’t running, you should just need to start the CUPS server, on Ubuntu you should be able to start it with:

    sudo service cups start

    Hope this helps

    Simon

  8. Hi Gernot,

    Interesting, do you have another instance of Python installed? On a vanilla install of Debian 8 I can just install the deb, then run:

    apt-get -f install

    And it installs the missing dependencies. I’ve updated the Debian instructions with that command, as it seems to be required if the dependencies aren’t already installed.

    Simon

  9. Hi Simon,
    many thanks. Now everything is fine (connection to Google, getting Google’s code, not adding a new account but using my old one) but finally I get the error message:
    Traceback … File “setupcloudprint.py”, line 109 in
    Connection=cups.Connection()
    RuntimeError: failed to connect to server

    I think that has nothing to do with your software. It is my main problem: cups (or wicd or network-manager) does not connect to the wi-fi properly, although wi-fi works fine, otherwise I would not be able to run my browser or all the Chroomebook stuff. wicd sees the wi-fi and the printer but comes back, after a time-out, with authentication failure or bad password and similarly for the hplib (for my HP printer) package.
    Many thanks again,
    Gernot

  10. I’m getting this error on osx 10.9.5 Yosemite while trying to install. Any suggestions?
    (works fine on ubuntu and osx 10.8)

    Tristans-MacBook-Air:$ sudo /usr/share/cloudprint-cups/setupcloudprint.py
    Traceback (most recent call last):
    File "/usr/share/cloudprint-cups/setupcloudprint.py", line 63, in
    import cups
    ImportError: No module named cups

  11. THANKS ! I just setup this CUPS CloudPrint in about 3 minutes . It works GREAT !!! This is exactly what I needed to solve my printing problem !

    Thank you again for a GREAT solution

    Ray S.

  12. Thanks for this!! I’ve got it installed and working with Ubuntu trusty in a chroot on my Pixel Chromebook and it prints just fine.

  13. Hey Tristan, for that error (ImportError: No module named cups) I needed to install the python-cups package in Fedora. I presume that your Ubuntu system already had it installed, but for OSX, you need to find a way to install python modules and get the appropriate one to continue.

  14. I’m trying to install on Fedora 22 64bit. Install fails when trying to verify the authorization token from Google.

    Get the error that the code is not valid.

    The RPM repository only has the older version of the package:

    cupscloudprint.noarch 20140814.2-1 niftyrepo

    Apparently at the -2 version the authorization client changed. Please update your repository.

    Thanks, Marc

  15. Hello! I’m trying to install CUPS to Ubuntu and when trying to insert the following code, happens this:

    xxxx@xxxxxxx:~$ sudo /usr/share/cloudprint-cups/setupcloudprint.py
    sudo: /usr/share/cloudprint-cups/setupcloudprint.py: command not found

    Could someone help me?

  16. Followed your instructions and worked like a charm on Ubuntu 12.04 with an Epson WF-100W portable printer. Thanks ! Very much appreciated. Will be donating.

  17. Excellent, I now have my Canon MG6650 working from Centos 7. Canon provide a Linux driver for this device (it is networked after all) but it doesn’t work properly on Centos 7 with CUPS 1.6. It works fine from Ubuntu 12.04 with CUPS 1.5 and also from Android using some Canon software for that. Centos 7 seems too put the printer into what looks like a retro double width character printing mode reminding me of dot matrix printers from years ago. As I can’t get it to work with my Dell 1320c either and that worked in Fedora 16 previously (yes, quite an upgrade). Anyway, thought I’d share this here in case any one else is having similar problems.

  18. Perfect! Worked a treat on Fedora 21, after installing python-cups. Smooth, seamless, instant. Great work!

  19. an error is found:
    sudo /usr/share/cloudprint-cups/setupcloudprint.py
    Code from Google: 4/qn2zfaXfhfeG6k-NmaxqgOA4z0SGo0NZpeje2jBKIwY
    The code does not seem to be valid ( ), please try again.
    May be the slash in code is problem?

  20. Having a problem setting this up. The system is checking the cert from google for accounts.google.com. However when I pull the cert it just shows as a global domain wildcard of *.google.com.

    Here is the full error text

    The code does not seem to be valid ( Server presented certificate that does not match host accounts.google.com: {‘notAfter’: ‘Jan 5 00:00:00 2016 GMT’, ‘subjectAltName’: ((u’DNS’, ‘accounts.google.com’), (u’DNS’, ‘*.partner.android.com’)), ‘subject’: (((‘countryName’, u’US’),), ((‘stateOrProvinceName’, u’California’),), ((‘localityName’, u’Mountain View’),), ((‘organizationName’, u’Google Inc’),), ((‘commonName’, u’accounts.google.com’),))} ), please try again.

    Open this URL, grant access to CUPS Cloud Print,then provide the code displayed :

  21. HI,
    When I go to add a classic printer within my Chromium browser it hangs there every time.

    Here is the link I’m using chrome://devices/.

    I am running Freebsd 10.2 and I ran the Python script ‘setupcloudprint.py’ and registered my Google account no problem. I entered my code sent from google.

    I checked my running services and did not see anything enabled related to google cloud print. Is there a way to verify that the cloud print service is running?

    Anyone experience this issue?

    I’m new to FreeBSD and love the features.

    Thanks in advance!!

  22. Hi,

    When I try to install the package on OS X 10.11 it fail with the following error:

    “This package is not compatible with this OS X version, the installation might fail.”

    I proceed with the installation even if I got this warning and it fail after.

    Need some help please.

    Thanks,

    Guillaume

  23. I tried the install instructions on my MINT 13 LTS XFCE with the following failures and result which of course is broken but how to fix this??

    ~ $ sudo add-apt-repository ppa:simon-cadman/niftyrepo
    You are about to add the following PPA to your system:
    Repository for Niftiest Software projects ( libvirt-wakeonlan, CUPS Cloud Print etc )
    More info: https://launchpad.net/~simon-cadman/+archive/ubuntu/niftyrepo
    Press [ENTER] to continue or ctrl-c to cancel adding it

    Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /tmp/tmp.1qgVjaT7uu –trustdb-name /etc/apt/trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –keyserver hkp://keyserver.ubuntu.com:80/ –recv DEA2EB3DEBAA2542E850B90330C01B2A12CAC781
    gpg: requesting key 12CAC781 from hkp server keyserver.ubuntu.com
    gpg: key 12CAC781: public key “Launchpad PPA for Simon Cadman” imported
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
    crawforda@Armada-M700 ~ $ sudo apt-get update
    Ign file: binary/ Release.gpg
    Ign file: binary/ Release
    Ign file: binary/ Translation-en_GB
    Ign file: binary/ Translation-en
    Get:1 http://ppa.launchpad.net precise Release.gpg [316 B]
    Ign http://ppa.launchpad.net precise Release.gpg
    Get:2 http://archive.ubuntu.com precise Release.gpg [198 B]
    Get:3 http://de.archive.ubuntu.com precise-backports Release.gpg [198 B]
    Get:4 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
    Get:5 http://archive.canonical.com precise Release.gpg [198 B]
    Get:6 http://dl.google.com stable Release.gpg [198 B]
    Get:7 http://ppa.launchpad.net precise Release [12.9 kB]
    Hit http://archive.ubuntu.com precise Release
    Get:8 http://security.ubuntu.com precise-security Release.gpg [198 B]
    Hit http://de.archive.ubuntu.com precise-backports Release
    Get:9 http://archive.getdeb.net precise-getdeb Release.gpg [836 B]
    Hit http://archive.canonical.com precise Release
    Ign http://ppa.launchpad.net precise Release
    Hit http://dl.google.com stable Release
    Ign http://ppa.launchpad.net precise/main Sources/DiffIndex
    Get:10 http://archive.ubuntu.com precise-updates Release [196 kB]
    Get:11 http://security.ubuntu.com precise-security Release [54.3 kB]
    Ign http://ppa.launchpad.net precise/main i386 Packages/DiffIndex
    Ign http://ppa.launchpad.net precise/main TranslationIndex
    Hit http://archive.getdeb.net precise-getdeb Release
    Get:12 http://ppa.launchpad.net precise/main Sources [1,211 B]
    Get:13 http://ppa.launchpad.net precise/main i386 Packages [722 B]
    Get:14 http://ppa.launchpad.net precise/main TranslationIndex [196 B]
    Get:15 http://de.archive.ubuntu.com precise-backports/main i386 Packages [6,478 B]
    100% [15 Packages bzip2 0 B] [Release gpgv 8,180 B] [Connecting to packages.libzip2: (stdin) is not a bzip2 file.
    Get:16 http://de.archive.ubuntu.com precise-backports/universe i386 Packages [44.3 kB]
    Get:17 http://archive.canonical.com precise/partner i386 Packages [7,885 B]
    Get:18 http://archive.ubuntu.com precise/main i386 Packages [1,274 kB]
    Hit http://de.archive.ubuntu.com precise-backports/main TranslationIndex
    Hit http://de.archive.ubuntu.com precise-backports/universe TranslationIndex
    Hit http://archive.canonical.com precise/partner TranslationIndex
    Get:19 http://ppa.launchpad.net precise/main Translation-en [334 B]
    Get:20 http://de.archive.ubuntu.com precise-backports/main Translation-en [5,737 B]
    Get:21 http://archive.canonical.com precise/partner Translation-en [4,440 B]
    26% [15 Packages gzip 0 B] [16 Packages bzip2 0 B] [11 Release gpgv 54.3 kB] [bzip2: (stdin) is not a bzip2 file.
    Err http://ppa.launchpad.net precise/main Sources
    404 Not Found
    Get:22 http://de.archive.ubuntu.com precise-backports/universe Translation-en [35.2 kB]
    Err http://ppa.launchpad.net precise/main i386 Packages
    404 Not Found
    Ign http://ppa.launchpad.net precise/main Translation-en_GB
    Ign http://ppa.launchpad.net precise/main Translation-en
    30% [20 Translation-en bzip2 0 B] [11 Release gpgv 54.3 kB] [Connecting to pacbzip2: (stdin) is not a bzip2 file.
    34% [22 Translation-en bzip2 0 B] [11 Release gpgv 54.3 kB] [Connecting to pacbzip2: (stdin) is not a bzip2 file.
    Get:23 http://archive.getdeb.net precise-getdeb/apps i386 Packages [67.2 kB]
    Get:24 http://security.ubuntu.com precise-security/main i386 Packages [624 kB]
    Get:25 http://archive.getdeb.net precise-getdeb/games i386 Packages [88.3 kB]
    Ign http://archive.getdeb.net precise-getdeb/apps TranslationIndex
    Ign http://archive.getdeb.net precise-getdeb/games TranslationIndex
    Get:26 http://archive.ubuntu.com precise/restricted i386 Packages [8,431 B]
    Get:27 http://archive.ubuntu.com precise/universe i386 Packages [4,796 kB]
    Ign http://archive.getdeb.net precise-getdeb/apps Translation-en_GB
    Ign http://archive.getdeb.net precise-getdeb/apps Translation-en
    Get:28 http://security.ubuntu.com precise-security/restricted i386 Packages [11.6 kB]
    Get:29 http://security.ubuntu.com precise-security/universe i386 Packages [133 kB]
    Ign http://archive.getdeb.net precise-getdeb/games Translation-en_GB
    Ign http://archive.getdeb.net precise-getdeb/games Translation-en
    Get:30 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,860 B]
    Get:31 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]
    Get:32 http://security.ubuntu.com precise-security/multiverse TranslationIndex [199 B]
    Get:33 http://security.ubuntu.com precise-security/restricted TranslationIndex [202 B]
    Get:34 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]
    Get:35 http://security.ubuntu.com precise-security/main Translation-en [241 kB]
    Get:36 http://security.ubuntu.com precise-security/multiverse Translation-en [1,408 B]
    Get:37 http://security.ubuntu.com precise-security/restricted Translation-en [2,976 B]
    Get:38 http://security.ubuntu.com precise-security/universe Translation-en [79.9 kB]
    Get:39 http://archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
    Hit http://archive.ubuntu.com precise/main TranslationIndex
    Hit http://archive.ubuntu.com precise/multiverse TranslationIndex
    Hit http://archive.ubuntu.com precise/restricted TranslationIndex
    Hit http://archive.ubuntu.com precise/universe TranslationIndex
    Hit http://packages.linuxmint.com maya Release.gpg
    Get:40 http://archive.ubuntu.com precise-updates/main i386 Packages [1,014 kB]
    Get:41 http://archive.ubuntu.com precise-updates/restricted i386 Packages [16.1 kB]
    Get:42 http://archive.ubuntu.com precise-updates/universe i386 Packages [280 kB]
    Get:43 http://archive.ubuntu.com precise-updates/multiverse i386 Packages [16.7 kB]
    Get:44 http://archive.ubuntu.com precise-updates/main TranslationIndex [10.6 kB]
    Get:45 http://archive.ubuntu.com precise-updates/multiverse TranslationIndex [7,613 B]
    Get:46 http://archive.ubuntu.com precise-updates/restricted TranslationIndex [7,297 B]
    Get:47 http://archive.ubuntu.com precise-updates/universe TranslationIndex [8,333 B]
    Hit http://archive.ubuntu.com precise/main Translation-en_GB
    Get:48 http://archive.ubuntu.com precise/main Translation-en [726 kB]
    Get:49 http://packages.linuxmint.com maya Release [24.3 kB]
    Hit http://archive.ubuntu.com precise/multiverse Translation-en_GB
    Get:50 http://archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
    Hit http://archive.ubuntu.com precise/restricted Translation-en_GB
    Get:51 http://archive.ubuntu.com precise/restricted Translation-en [2,395 B]
    Hit http://archive.ubuntu.com precise/universe Translation-en_GB
    Get:52 http://archive.ubuntu.com precise/universe Translation-en [3,341 kB]
    Hit http://packages.linuxmint.com maya/main Sources
    Get:53 http://archive.ubuntu.com precise-updates/main Translation-en_GB [96.4 kB]
    Get:54 http://archive.ubuntu.com precise-updates/main Translation-en [407 kB]
    Hit http://packages.linuxmint.com maya/upstream Sources
    Get:55 http://archive.ubuntu.com precise-updates/multiverse Translation-en_GB [79.8 kB]
    Get:56 http://archive.ubuntu.com precise-updates/multiverse Translation-en [9,603 B]
    Get:57 http://archive.ubuntu.com precise-updates/restricted Translation-en_GB [2,406 B]
    Get:58 http://archive.ubuntu.com precise-updates/restricted Translation-en [3,869 B]
    Get:59 http://archive.ubuntu.com precise-updates/universe Translation-en_GB [5,492 B]
    Get:60 http://archive.ubuntu.com precise-updates/universe Translation-en [162 kB]
    Hit http://packages.linuxmint.com maya/import Sources
    Hit http://packages.linuxmint.com maya/backport Sources
    Hit http://packages.linuxmint.com maya/main i386 Packages
    Hit http://packages.linuxmint.com maya/upstream i386 Packages
    Hit http://packages.linuxmint.com maya/import i386 Packages
    Hit http://packages.linuxmint.com maya/backport i386 Packages
    Ign http://packages.linuxmint.com maya/backport TranslationIndex
    Ign http://packages.linuxmint.com maya/import TranslationIndex
    Ign http://packages.linuxmint.com maya/main TranslationIndex
    Ign http://packages.linuxmint.com maya/upstream TranslationIndex
    Ign http://packages.linuxmint.com maya/backport Translation-en_GB
    Ign http://packages.linuxmint.com maya/backport Translation-en
    Ign http://packages.linuxmint.com maya/import Translation-en_GB
    Ign http://packages.linuxmint.com maya/import Translation-en
    Ign http://packages.linuxmint.com maya/main Translation-en_GB
    Ign http://packages.linuxmint.com maya/main Translation-en
    Ign http://packages.linuxmint.com maya/upstream Translation-en_GB
    Ign http://packages.linuxmint.com maya/upstream Translation-en
    Fetched 14.1 MB in 1min 21s (173 kB/s)
    W: Failed to fetch http://dl.google.com/linux/deb/dists/stable/Release Unable to find expected entry ‘non-free/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file)

    W: Failed to fetch http://ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu/dists/precise/main/source/Sources 404 Not Found

    W: Failed to fetch http://ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu/dists/precise/main/binary-i386/Packages 404 Not Found

    W: Failed to fetch gzip:/var/lib/apt/lists/partial/de.archive.ubuntu.com_ubuntu_dists_precise-backports_main_binary-i386_Packages Hash Sum mismatch

    W: Failed to fetch gzip:/var/lib/apt/lists/partial/de.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_binary-i386_Packages Hash Sum mismatch

    W: Failed to fetch copy:/var/lib/apt/lists/partial/de.archive.ubuntu.com_ubuntu_dists_precise-backports_main_i18n_Translation-en Hash Sum mismatch

    W: Failed to fetch gzip:/var/lib/apt/lists/partial/de.archive.ubuntu.com_ubuntu_dists_precise-backports_universe_i18n_Translation-en Hash Sum mismatch

    E: Some index files failed to download. They have been ignored, or old ones used instead.
    crawforda@Armada-M700 ~ $ sudo apt-get install cupscloudprint sudo /usr/share/cloudprint-cups/setupcloudprint.py
    Reading package lists… Error!
    E: Encountered a section with no Package: header
    E: Problem with MergeList /var/lib/apt/lists/dl.google.com_linux_deb_dists_stable_non-free_binary-i386_Packages
    E: The package lists or status file could not be parsed or opened.

    With thanks in advance

  24. I’m experiencing the same issues as Guillaume is with OSX 10.11 (“El Capitan”) on every Mac computer that I have tried it on. Any guidance would be helpful.

    Thanks!

    -Andrew

  25. Hi,

    Trying to add a cloud printer from OSX Yosemite and getting this error:
    Error adding: GCP-Dell_DEL30CDA72634FA (1280, u’server-error-internal-error’)

    This is the cups log:
    D [26/Jan/2016:17:30:00 +0100] [Client 15] 2.0 CUPS-Add-Modify-Printer 2
    D [26/Jan/2016:17:30:00 +0100] CUPS-Add-Modify-Printer ipp://localhost/printers/GCP-Dell%5FDEL30CDA72634FA
    D [26/Jan/2016:17:30:00 +0100] cupsdIsAuthorized: username=”root”
    D [26/Jan/2016:17:30:00 +0100] GCP-Dell_DEL30CDA72634FA device-uri: Unknown URI scheme
    I [26/Jan/2016:17:30:00 +0100] Setting GCP-Dell_DEL30CDA72634FA device-uri to “gcp://daan%40v-santen.nl/1382401c-651d-f528-91ae-0630211f7cc4” (was “gcp://daan%40v-santen.nl/1382401c-651d-f528-91ae-0630211f7cc4″.)
    D [26/Jan/2016:17:30:00 +0100] cupsdMarkDirty(–p–)
    D [26/Jan/2016:17:30:00 +0100] cupsdSetBusyState: newbusy=”Active clients and dirty files”, busy=”Active clients”
    D [26/Jan/2016:17:30:00 +0100] Discarding unused printer-state-changed event…
    D [26/Jan/2016:17:30:00 +0100] copy_model: Running “cups-driverd cat cupscloudprint:daan%40v-santen.nl:1382401c-651d-f528-91ae-0630211f7cc4.ppd”…
    D [26/Jan/2016:17:30:01 +0100] [CGI] Traceback (most recent call last):
    D [26/Jan/2016:17:30:01 +0100] [CGI] File “/usr/libexec/cups/driver/cupscloudprint”, line 81, in
    D [26/Jan/2016:17:30:01 +0100] [CGI] from printermanager import PrinterManager
    D [26/Jan/2016:17:30:01 +0100] [CGI] File “/usr/share/cloudprint-cups/printermanager.py”, line 16, in
    D [26/Jan/2016:17:30:01 +0100] [CGI] import cups
    D [26/Jan/2016:17:30:01 +0100] [CGI] ImportError: No module named cups
    E [26/Jan/2016:17:30:01 +0100] copy_model: empty PPD file
    D [26/Jan/2016:17:30:01 +0100] CUPS-Add-Modify-Printer server-error-internal-error: Unable to copy PPD file.
    E [26/Jan/2016:17:30:01 +0100] [Client 15] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/GCP-Dell%5FDEL30CDA72634FA) from localhost
    D [26/Jan/2016:17:30:01 +0100] [Client 15] Content-Length: 118
    D [26/Jan/2016:17:30:01 +0100] [Client 15] cupsdSendHeader: code=200, type=”application/ipp”, auth_type=0
    D [26/Jan/2016:17:30:01 +0100] PID 1533 (/usr/libexec/cups/daemon/cups-driverd) stopped with status 1.
    D [26/Jan/2016:17:30:01 +0100] [Client 15] con->http=0x7fa6ba814200
    D [26/Jan/2016:17:30:01 +0100] [Client 15] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=118, response=0x7fa6ba44a870(IPP_STATE_DATA), pipe_pid=0, file=-1
    D [26/Jan/2016:17:30:01 +0100] [Client 15] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
    D [26/Jan/2016:17:30:01 +0100] [Client 15] bytes=0, http_state=0, data_remaining=118
    D [26/Jan/2016:17:30:01 +0100] [Client 15] Flushing write buffer.
    D [26/Jan/2016:17:30:01 +0100] [Client 15] New state is HTTP_STATE_WAITING
    D [26/Jan/2016:17:30:01 +0100] [Client 15] Waiting for request.

    The strange this is that I have been able to add the same printer before, but out of the blue it stopped working.

    Does anyone have an idea?

  26. It seems that the package is missing, I got the following error
    kris@V-Ubuntu64:~$ sudo apt-get install cupscloudprint
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    E: Unable to locate package cupscloudprint

  27. If anyone wants to install on Lubuntu 15.10 Wily i386 System [DELL DIMENSION 3000 is what I’m using]: *NOT LISTED IN ABOVE INSTALL OPTIONS*

    Debian Squeeze+ , MEPIS 11+ etc – .deb file based installation
    If your OS supports PPA repositories, it is preferable to install using PPAs, you will then automatically receive updates when new versions are released.
    If you need to install using a deb file, run in a terminal ( as root, or using sudo ):

    INSTALL INSTRUCTIONS: [Open terminal and execute the following lines shown below]
    sudo apt-get install cloudprint python-requests
    wget https://niftyrepo.niftiestsoftware.com/cups-cloud-print/packages/cupscloudprint_20140814.2-1_all.deb
    Manually install cupscloudprint_20140814.2-1_all.deb with GDebi Package Manager [It should say you have broken dependencies to run sudo apt-get -f install to fix in terminal]

    sudo apt-get -f install
    The following extra packages will be installed:
    python-httplib2
    The following NEW packages will be installed:
    python-httplib2

    Then type in terminal:
    sudo /usr/share/cloudprint-cups/setupcloudprint.py

    Terminal will show you the following:
    Name for this user account ( eg something@gmail.com )? 2016kentc
    Open this URL, grant access to CUPS Cloud Print,then provide the code displayed :

    Copy the URL/login to Google account and then if you don’t get the Google Code, re-paste the URL in web browser you logged into, and that should give you a manage cups printers page to allow access.

    You currently have these accounts configured:
    YOURGOOGLEUSERNAME [@GMAIL.COM]
    Add more accounts (Y/N)? N
    Add all Google Cloud Print printers from YOURGOOGLEUSERNAME to CUPS (Y/N)? Y
    Use a prefix for names of created printers (Y/N)? Y
    Prefix ( e.g. GCP- )? PUTNAMEHERE-
    Added 1 new printers to CUPS

    After you do that, then run in terminal:
    cloudprint
    Goto http://goo.gl/printer/***** to clame this printer

  28. I’ve been using this for ages and it worked fine. I use it to connect to special printers with windows only drivers.

    Unfortunately every now and again, the Winows PC thinks the USB printers have moved and create a new one marking the old one as offline. I have to then
    delete the old printers
    set up the new printers including changing their names and preferences
    update Google Cloud Print through the manager to remove the printers, and then add the new classic printers

    All of the above is done on the Windows PC. I then run

    /usr/share/cloudprint-cups/setupcloudprint.py

    on my Fedora 19 box to delete and add the printers. However, this time I got errors.

    I’ve spent all day trying to fix the problem without success. Instead I decided to move onto another Fedora box, running F21 and start from scratch. Unfortunately I got the same errors:

    [root@eddie-new ~]# /usr/share/cloudprint-cups/setupcloudprint.py
    Name for this user account ( eg something@gmail.com )? ******.******@gmail.com
    Open this URL, grant access to CUPS Cloud Print,then provide the code displayed :

    https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudprint&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&client_id=843805314553.apps.googleusercontent.com&access_type=offline

    Code from Google: [snip]

    You currently have these accounts configured:
    *******.*****@gmail.com
    Add more accounts (Y/N)? n
    Add all Google Cloud Print printers from *******.*****@gmail.com to CUPS (Y/N)? y
    Use a prefix for names of created printers (Y/N)? n
    Error adding: ValuePlusSvc (1280, u’server-error-internal-error’)
    Error adding: Leeds_showroom_copier_2 (1280, u’server-error-internal-error’)
    Error adding: ValuePlusKia (1280, u’server-error-internal-error’)
    Error adding: ValuePlusFord (1280, u’server-error-internal-error’)
    Error adding: Call_Centre_HP (1280, u’server-error-internal-error’)
    Error adding: Save_to_Google_Drive (1280, u’server-error-internal-error’)
    Error adding: OKI_C511 (1280, u’server-error-internal-error’)
    Error adding: OKI_C511 (1280, u’server-error-internal-error’)
    Added 8 new printers to CUPS
    [root@eddie-new ~]#

    The printers get set up but they have no named, description and cannot be used.

  29. Same problem..empty PPD file message today, the service stopped working after some months. No idea what’s happening and no message from google that service has changed.

  30. Hi. I’m using Lubuntu 15.10, and I did an the Ubuntu_Base upgrade. Now I’m getting the following error when I try to use the printer which showed offline, and does this after I tried to readd everything:

    Add more accounts (Y/N)? N
    Add all Google Cloud Print printers from 2016kentc to CUPS (Y/N)? Y
    Use a prefix for names of created printers (Y/N)? N
    Error adding: Brother_MFC-9340CDW (1280, u’server-error-internal-error’)
    Error adding: Save_to_Google_Docs (1280, u’server-error-internal-error’)
    Added 2 new printers to CUPS

  31. Hi, suddenly are printers stopped working. I deleted our Google account to start all over. Now setupcloudprint.py gives errors. In the console errors like …

    Error adding: printer (1280, u’server-error-internal-error’)

    and in the logs …

    [19/Mar/2016:12:20:36 +0100] copy_model: empty PPD file
    E [19/Mar/2016:12:20:36 +0100] [Client 17] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/printer) from localhost

    What could the problem be?

    Thanks a lot!

  32. I am getting the cannot find i386 files trying to install on Lubuntu 15.10. I have restarted CUPS and tried the reinstall with no joy. Any ideas?

    Thanks,
    Rick

  33. On Fedora23 everything installs just fine… But, when running the setup

    The code does not seem to be valid ( ), please try again.

    Error occurs…. No diagnostic messages… Removed the firewall totally (just to test). Google account appears to be set properly.

  34. Now we can’t add any printer.
    I think that google change some thing in structure.

    Somebody can help us?

  35. It’s definitely busted. The last time I was able to print to it was 03/16/2016. I deleted the previous GCP printers and tried adding new ones. “Unable to copy PPD file.”

  36. Hi, suddenly we were unable to print and I thought to reinstall the printers. This gives the error “copy_model: empty PPD file” in het cups error logs. I’m not so familiar with Linux so maybe this has something to do with user rights? I’m using “sudo” with the commands.
    Thanks!
    Els

  37. More on the El Capitan issues mentioned by Guillaume and Andrew:
    I installed manually from GitHub on El Capitan 10.11.4 with XCode 7.3 (7D175) and Python 2.7.10. I was able to do the OAUTH portion of adding my account, but adding printers fails with error 1280 (server error)
    The traceback from reportissues.py:
    Traceback (most recent call last):
    File “/usr/local/share/cloudprint-cups/dynamicppd.py”, line 107, in
    doCat()
    File “/usr/local/share/cloudprint-cups/dynamicppd.py”, line 64, in doCat
    print printer.generatePPD()
    File “/usr/local/share/cloudprint-cups/printer.py”, line 283, in generatePPD
    self._getInternalName(capability, ‘capability’, None, addedCapabilities)
    File “/usr/local/share/cloudprint-cups/printer.py”, line 355, in _getInternalName
    if details[‘name’] == itemName:
    TypeError: string indices must be integers
    Result of cupstestppd was 3
    (stdin): FAIL
    **FAIL** Unable to open PPD file – Missing PPD-Adobe-4.x header on line 0.
    REF: Page 42, section 5.2.

  38. I am having the same issue as Daan with a Canon printer on Ubuntu 16.04. It worked on Ubuntu 15.10.

  39. I just installed today. In Antergos it worked just fine (installed cupscloudprint from AUR) and it added my Google Account printers just fine and could print from the two of them.

    In Kubuntu 16.04, it didn’t work. Installed the .deb file for Debian since it coudn’t be found from ppa, but I got the (1280, u’server-error-internal-error’) and no printers where added.

  40. I am having the same issue: (1280, u’server-error-internal-error’) It worked fine on Ubuntu 14.04. Tried a reinstall without any succes.

  41. Hi.

    I am trying to install this, but I can’t.

    I add the PPA using
    add-apt-repository ppa:simon-cadman/cups-cloud-print

    Then update using
    apt-get update

    Then
    apt-get install cupscloudprint

    I get a 404 error on the packages.
    Laptop is running Ubuntu 15.04.

Leave a Reply

Your email address will not be published. Required fields are marked *