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
20140702 Release – 2nd July 2014
- New: Split printer class into seperate Printer and PrinterManager classes
- New: OS X package support
- New: Added SELinux support to RPM packages
- New: Added refresh token cron script
- Fix: Use python interpreter when python2 interpreter not available.
- Fix: Setup script shows printer names in multiple columns, instead of one column.
- Fix: Now PEP8 compliant
- Fix: Detect _lp as valid cups group in configure script
- Change: Moved testing data and scripts into 'testing' subdirectory
- Change: Changed protocol to gcp:// instead of cloudprint://
20140308 Release – 8th March 2014
- Fix: Use shorter URI format to workaround issue on older distros having a short max length on printer URIs
20140307 Release – 7th March 2014
- Security: Only log access token to log file in debug mode
- New: Support printers with same name in same account
- New: Log now pipe delimited and contains timestamp
- Fix: Set UseCIEColor when converting postscript file to pdf, fixes printing files generated by Adobe Reader
- Fix: Set page name to Untitled when page printed with no name
- Fix: Open oauth2 config file in read only mode if access denied to write, fixes running under Mac OS X
- Fix: No longer run upgrade script on fresh install
- Fix: Fix the log file permissions on creation or upgrade, only adjust owners and permissions if needed to change
- Fix: Exclude groups that cant be correct for cups group when discovering CUPS group
- Fix: Discover CUPS group by examining CUPS log file ownerships, then PPD directory if logs missing
- Change: Sanitised the indentation of python files
- Change: Removed upgrade message about location of files changing
- Change: Moved common functions into utils class, allows better unit testing
- Change: Centralised logging setup into utils script
20140210 Release – 10th February 2014
- New: Show better error message if printer ppd not found
- Fix: Use python logging facility instead of writing to log files directly, fixes No handlers could be found for logger error
- Fix: Upgrade script now faster with multiple printers, now only gets list of PPDs once and filters for each printer
- Fix: Show better error if renewing OAUTH2 token fails
- Fix: Explicitely define dirs in rpm files list, ensures will be removed correctly on uninstall
- Fix: Deb package now deletes old pyc files on uninstall/upgrade
- Fix: Config file permissions now fixed to allow updating of access token when printing
- Fix: Compile python code on rpm install to ensure old files are removed on uninstall
- Fix: Compile python code on Gentoo install to ensure old files are removed on uninstall
- Fix: Compile python code on arch install to ensure old files are removed on uninstall
- Change: Merged submitjob.py script into backend script
- Change: Error out immediately if lpadmin command not in path on upgrade
20140112 Release – 12th January 2014
- NEW: When invalid OAuth2 code used, show the error message
- NEW: Can now delete associated printers when deleting an account
- NEW: Added test script for post-packaging testing
- CHANGE: Moved files from /usr/lib/ to /usr/share
20131013 Release – 13th October 2013
20131009 Release – 8th October 2013
- FIX: Override default for when applications assume wrong default values ( eg duplex )
- FIX: No longer error on adding printers with duplicate capability names,
- FIX: Landscape printing should now work correctly on all printers
- FIX: Ignore duplicate parameters
- FIX: Detect duplex option
- FIX: Adding printers with prefix no longer errors
- CHANGE: pdfjam dependency now required
- CHANGE: List cloud printers script now shows display name instead of printer name
20130914 Release – 14th September 2013
- NEW: Use display name if available for generating values for ppd
- NEW: Added version param to scripts
- NEW: Added test cases and list of capabilities for testing internal name function
- FIX: Prevent duplicate options and capabilities being generated
- FIX: Post name of capability instead of internal hash, should fix issues with capabilities failing to work correctly
- FIX: Fixed displaying of errors from Google side ( eg when print proxy is down )
- FIX: Allow overriding print params per print job
- CHANGE: Removed gcp_ prefix for capabilities ( unless conflicts with reserved words )
20130718 Release – 18th July 2013
- NEW: PDF now supplied to CCP via CUPS, increases printing speed.
- NEW: Default to A4 paper size in countries that use A4 paper.
- 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.
- FIX: Removed redundant ppdc dependencies.
- FIX: Removed old PPD files, as no longer used.
- FIX: Optimise PDF generated for printing.
- FIX: Only ask once per account for prefix.
- FIX: Fixed final warnings in PPD.
- FIX: Custom printer name should now work.
- FIX: CUPS Backend etc now use source install by default.
- FIX: Add translations into cups ppd.
20130608 Release – 8th June 2013
20130604 Release – 3rd June 2013
20130603 Release – 3rd June 2013
- NEW: Added reportissues.py script to assist in debugging issues
- FIX: Use option name instead of displayname if displayname is missing
- CHANGE: On answering no for adding all printers, ask to add individual printers
- CHANGE: Ask whether or not to use prefix rather than assuming user knows to enter prefix directly
20130526 Release – 26th May 2013
20130519 Release – 19th May 2013
20130510 Release – 10th May 2013
- Fix: Use lp group instead of trying to discover group name dynamically
- Fix: Only update config file permissions when config options changed, not when tokens refreshed.
- Fix: Deb package installs cloudprint files with correct permissions.
20130504 Release – 4th May 2013
- New: Script to delete user accounts ( deleteaccount.py )
- New: Capabilities for printer supplied by Google Cloud Print ( eg Colour, Print tray, etc ) now appear as options in dialogs.
- Fix: RPM package can now be built as a non-root user.
- Change: PPD file now generated dynamically
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
- New: Extra debug data now logged if JSON decoding fails
- New: Added gentoo/freebsd support
- Change: Detect CUPS user group automatically rather than assume group name is always lp
20130101 Release – 1st January 2013
20121208 Release – 8th December 2012
20121202 Release – 2nd December 2012
- Fix: Show all printers, including ones marked as dormant
- Fix: Issue #16 – Arch package, cupsddk dependency is discontinued.
- Fix: Depend on system-config-printer-libs instead of python-cups in RPM
- Change: Backwards compatiblity changes for older versions of python
20120908 Release – 8th September 2012
20120823 Release – 23rd August 2012
20120818 Release – 18th August 2012
- New: Multiple Google user account support, you can now add printers from multiple Google Cloud Print accounts
- 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
- Fix: No longer blindly overwrite printers when adding a new printer with same name as an existing printer
20120812 Release – 12th August 2012
- New: PPD of cloud printers now replaced when upgrading CUPS Cloud Print
- New: PPD now has an IEEE 1284 device id
- New: Device and options now logged when printing
- New: Cloud Print printers now listed as ‘Discovered Network Printers’ when adding printers
- New: Added Colour Model option to CUPS PPD, send Colour option to Google when printing to colour printers
- Fix: Querying available options no longer hangs
- Fix: PDF files should now print correctly
- Fix: More Python3 fixes
- Fix: Fixed error when installing printer with non ASCII characters
- Fix: Check that files exist before attempting to delete them
20120513 Release – 13th May 2012
- Security: cloudprint.conf now only accessible by root and cups
- New: Added Arch Linux support
- Fix: Require python 2.7
- Fix: Log permissions now fixed when recreated by logrotate
- Fix: Fixes to dependencies to require ghostscript
- Fix: Backend script no longer fails if cannot write to log file
20120422 Release – 22nd April 2012
- New: When setting up printers, prompt for an optional prefix for printer names
- New: Added debian and redhat support, package build stubs now in repository
- Change: Renamed Gentoo ebuild to be consistent with new RPM and Deb packages
20120123 Release – 23rd January 2012
- Fix: Require python2 instead of any version of Python
- Fix: Only try to convert to PDF if file isnt already a PDF
- Fix: Cast to string on joining string as part of request, fixes an issue with some files printing
20111110 Release – 11th November 2011
- New: Added utility to list printers
- New: Added setup script
- New: Added application specific password support
- Fix: Print jobs now titled with job name from CUPS instead of hardcoded
- Fix: PPD now presents as a colour printer
- Fix: Now compatible with BSD install
- Fix: No longer send PDF data twice, should half printing time
- Fix: Make install should now install all *.py files
- Fix: Errors now reporting properly to CUPS
- Fix: Check for pstopdf if ps2pdf doesnt exist
20111011 Release – 11th October 2011
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.pyNote: 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.pyFollow 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
I managed to solve that problem. There is no PPA for 16.04.
Now, I get this
sudo /usr/share/cloudprint-cups/setupcloudprint.py
You currently have these accounts configured:
11alpharoad@gmail.com
Add more accounts (Y/N)? n
Add all Google Cloud Print printers from 11alpharoad@gmail.com to CUPS (Y/N)? y
Use a prefix for names of created printers (Y/N)? n
Error adding: Dell_C1765nfw (1280, u’server-error-internal-error’)
Error adding: Canon_MF3110_-_Shed (1280, u’server-error-internal-error’)
Error adding: Save_to_Google_Docs (1280, u’server-error-internal-error’)
Added 3 new printers to CUPS
Hi All,
I’ve just released a new version of CUPS Cloud Print – see here – packages are currently rolling out to repos.
This should hopefully solve a lot of problems people have been having recently ( newer Ubuntu version support, supports CDD instead of the broken legacy capabilities system etc ).
Thanks
Simon
Hello, I tried to install it on Antergos (Cinnamon) when trying to add printer I get this:
ERROR: Failed to decode JSON, value was:
User credentials required
User credentials required
Error 403
Traceback (most recent call last):
File “/usr/share/cloudprint-cups/setupcloudprint.py”, line 113, in
printers = printer_manager.getPrinters()
File “/usr/share/cloudprint-cups/printermanager.py”, line 108, in getPrinters
responseobj = requestor.search()
File “/usr/share/cloudprint-cups/cloudprintrequestor.py”, line 93, in search
return self.doRequest(‘search?connection_status=ALL&client=webui’)
File “/usr/share/cloudprint-cups/cloudprintrequestor.py”, line 86, in doRequest
raise e
ValueError: No JSON object could be decoded
How can I solve it?
Hi there, just trying out cupscloudprint_20160502-1_all.deb in Debian Wheezy, installation instructions go fine. Print jobs complete in CUPS but don’t print and just show up as an Error in the jobs list of the Google Cloud Print management console. Printer is a Canon LBP 5100 connected to a Windows 10 PC. Any clues on what I should do to try and find out what details of the error are? Thanks
hi, i just installed your driver as i got today my new printer, i’m running arch linux and installed the binary pkg from your custom repository, installation and printer setup went well but every time i try to print something the print job stops and i get the error
“Error response from Cloud Print for type pdf: Unable to analyze print job ticket.” (the actual response is roughly translated from italian)
am i missing something? it just returns this error even if i try to print plain text or images..
thanks
Thanks for this great software.
I’m installing a FujiXerox Docuprint p265 dw on a home network,
direct connection to my Fritz! router, shows as 192.168.178.161.
I executed your .py on my chromebook c720 under crouton xubuntu 14.04,
then:
sudo /etc/init.d/cups restart
You currently have these accounts configured:
xxxxxxx@gmail.com
yyyyyyy@gmail.com
Add more accounts (Y/N)? N
Add all Google Cloud Print printers from xxxxxx@gmail.com to CUPS (Y/N)? Y
Use a prefix for names of created printers (Y/N)? Y
Prefix ( e.g. GCP- )? FX-
Added FX-Save_to_Google_Drive
Added 1 new printers to CUPS
Add all Google Cloud Print printers from hmhxmu@gmail.com to CUPS (Y/N)? N
Not adding printers automatically
1) Save to Google Drive
Add printer (1-1, 0 to cancel)?
Didn’t know how to respond! I haven’t installed anyGoogle Cloud Print printers,
the goal was to install this one as a GCP printer.
Any suggestions please?
Follow-up to my earlier issue:
After adding p265dw in CUPS as (Generic Laserjet- gutenprint)
to Google Cloud Print from a linux server with Chrome browser -it found the network printers (2) –
I ran the script again. This gave three options to add in the prompt as above:
1) same as above
2) another printer
3) the P265dw
I chose 3, declined to add another.
I now have listed on the chromebook/crouton/xubuntu-14.04:
FUJI_XEROX_DocuPrint_P265_dw accepting requests since Fri 03 Jun 2016 16:38:22 AEST
FX-FUJI_XEROX_DocuPrint_P265_dw accepting requests since Fri 03 Jun 2016 16:26:23 AEST
FX-Save_to_Google_Drive accepting requests since Fri 03 Jun 2016 16:02:50 AEST
The FX- printers set by the py, the FUJI_ by Google Chrome I guess.
Is the approach above the recommended one for efficient wireless printing from my chromebook?
Will the printer be available when I’m not in the crouton shell, but just original chromebook login?
Thanks Simon. A good result for me.
Thank you!
I was looking for a solution like this! I installed it without problem and maybe after my spring exams session i will have a look to the source code 😛
HI,
Would it be possible to package this for Raspbian (Raspberry Pi)?
Thanks,
Allan
Hi,
I met the same problem than mellotanica though job submitted directly from google docs (i.e. not going through cupscloudprint) do work.
I’m using mint 17.3 x64 xfce.
All the best
This is the perfect solution for those who want to print out from Banana Pro running armbian with Canon printer as well as Raspberry pi user.
Because Canon only releases driver for Intel/AMD Linux but ARM core, many people are suffering from difficulties in printing.
Since recent Canon printer has web service print function with Google Cloud Print, it’s pretty easy to configure using this even from source compiling.
I also amazed that this solution could perfectly handles Japanese character as well as ascii text and graphics.
This means, your solution can handle all double-byte character (UTF-8) languages without any trouble. Super!
Anyway, Thank you so-much. I really appreciate you all!!
powerful and simple to install (ubuntu15.10).
Cloud Printer appear in the systems printing dialog.
Thank you
can’t install on Mint Sara 18 Cinnamon
Setting up cupscloudprint (20160502-1) …
Traceback (most recent call last):
File “/usr/share/cloudprint-cups/upgrade.py”, line 51, in
requestors, storage = Auth.SetupAuth(False)
File “/usr/share/cloudprint-cups/auth.py”, line 161, in SetupAuth
data = json.loads(content)
File “/usr/lib/python2.7/json/__init__.py”, line 339, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 382, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded
dpkg: error processing package cupscloudprint (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
cupscloudprint
E: Sub-process /usr/bin/dpkg returned an error code (1)
Save to google drive works, but when I try to add a job to my printer I get:
“Error response from Cloud Print for type pdf: Failed to parse the print job’s print ticket.”
Any suggestions?
Excellent utility. Works a dream on my Ubuntu 16.04 🙂
Many Thanks, I hope this comment will help other users.
Installed on linux-mint 18.1 (Xenial 16.04)
followed your setup (PPA etc).
I then saved via the “savetoprinter” , a libreoffice document directly into gdrive no local copy was saved as a pdf.
I could edit this pdf within google docs.
Hello,
I’m having problems installing on Fedora 25.
During dnf install cupscloudprint the first time I got:
Installing : cupscloudprint-20160502-1.noarch 7/7
Config is invalid or missing, not running on fresh install
Then after removing it, I tried again and this is what I got:
Running transaction
Installing : ilmbase-2.2.0-5.fc24.x86_64 1/7
Installing : OpenEXR-libs-2.2.0-5.fc24.x86_64 2/7
Installing : ImageMagick-libs-6.9.3.0-3.fc25.x86_64 3/7
Installing : ImageMagick-6.9.3.0-3.fc25.x86_64 4/7
Installing : python-six-1.10.0-3.fc25.noarch 5/7
Installing : python-httplib2-0.9.2-3.fc25.noarch 6/7
Installing : cupscloudprint-20160502-1.noarch 7/7
Traceback (most recent call last):
File “/usr/share/cloudprint-cups/upgrade.py”, line 51, in
requestors, storage = Auth.SetupAuth(False)
File “/usr/share/cloudprint-cups/auth.py”, line 161, in SetupAuth
data = json.loads(content)
File “/usr/lib64/python2.7/json/__init__.py”, line 339, in loads
return _default_decoder.decode(s)
File “/usr/lib64/python2.7/json/decoder.py”, line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib64/python2.7/json/decoder.py”, line 382, in raw_decode
raise ValueError(“No JSON object could be decoded”)
ValueError: No JSON object could be decoded
When I try to launch /usr/share/cloudprint-cups/setupcloudprint.py
I get Segmentation Fault…
I’m used to install it on Linux Mint and I never got this kind of error before.
Should you suggest me what to do?
Thanks a lot
Thanks for this awesome software! It saved me going through loops with an unsupported (No Linux driver) for Fuji Xerox P265 dw
Hello and tks a lot for creating this tool.
I try to install it on Xubuntu 16.04.
All the procedure is correct:
sudo add-apt-repository ppa:simon-cadman/niftyrepo
sudo apt-get update
sudo apt-get install cupscloudprint
sudo /usr/share/cloudprint-cups/setupcloudprint.py
After that, I can see my EPSON_XP-630_Series_EPSON5D62E4 in Printer Console but unfortunately, I receive this message I try to Print a Test Page :
Inactif – Printing Failed
No more information.
I try to remove my account with:
sudo /usr/share/cloudprint-cups/deleteaccount.py
and install it again but it’s always the same thing at the end.
I say that it’s works on Android with my smartphone . I can print anything with this account.
Do you have an idea to solve this problem?
If you are getting an Error like:
===========================================
ERROR: Failed to decode JSON, value was:
User credentials required
User credentials required
Error 403
===========================
The issue is that you have 2 factor authentication turned on on your Google account(s). You will need to use an app password. Not sure if you can use an app password with CUPS Could print or how.
I don’t know if this is a but, so I post the issue here. If one think this is not the correct place, please let me know.
I’ve just installed CUPS CLOUD PRINT and everything went well due installation and configuration process.
I can see Google Printer whatever software I try to print, but when I do that I receive following error message (“job-printer-state-message”):
“Print job failed with ‘ascii’ codec can’t encode character u’\xe3′ in position 102: ordinal not in range(128)”
Could you please help me?
Att.,
João Paulo
Got same problem as João Paulo
Hi,
Great project!
Could you please provide packages for newer versions of OSX ? The current one doesn’t install on OSX Sierra.
when running sudo python setupcloudprint.py
I get the following:
Error adding: GCP-Canon_D530D560_UFRII_LT
(1028, u’client-error-not-possible’)
It says it added printers, but the printers do not appear.
Does this work on Ubuntu 17? Do I need to run 32bit ubuntu for it to work instead of 64?
I tried reinstalling, but that doesn’t appear to work:
sudo apt-get install cupscloudprint
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package cupscloudprint
Any suggestions?
I really wanted this to work, had to go through some hoops to set it up but seemed to be getting somewhere, however now I’m getting message – “Sorry, CUPS Cloud Print no longer supports printing files directly for security reasons”.
Could someone please help?
Thanks
I’m looking for a way to print from a RaspberryPi TO Google Cloudprint,
to print form Places where i have no other way to reach the Printer.
Is this possible with your Package? How can i install it on a RaspberryPi?
Thank You
Karl
On linux mint 19.1
Download the .deb from https://www.niftiestsoftware.com/cups-cloud-print/
Select Debian Squeeze+ , MEPIS 11+ etc – .deb file based installation
Download the deb file
Go to downloads and double click to install
next open a terminal and:
sudo /usr/share/cloudprint-cups/setupcloudprint.py
Follow the instructions that pop up in the terminal exactly!
(cutting and pasting and adding to google’s services. Easy stuff)
Should go something like this:
Add more accounts (Y/N)? n
Add all Google Cloud Print printers from WhateveYourAddressIs@gmail.com to CUPS (Y/N)? y
Use a prefix for names of created printers (Y/N)? n
Should work. Works for me. I’m printing from linux mint 19 to windows 10 printer I added to google cloud print.
I have this 1028 error too … has anyone got a solution for this ?
Has this project been abandoned? The repository seems to no longer exist.