[winswitch] Unable to print from the GTK2 client

Eric Grammatico e.grammatico at gmail.com
Thu Oct 20 15:29:25 BST 2016


Sorry, my mistake...

Failed again. Here are the logs:

xpra attach -d printing --opengl=no --encoding=h264 --username=eric tcp:localhost:10000           
2016-10-20 16:19:51,752 Xpra gtk2 client version 1.0-r14207 64-bit
2016-10-20 16:19:51,753  running on Linux Fedora 24 Twenty Four
2016-10-20 16:19:51,753 Warning: failed to import opencv:
2016-10-20 16:19:51,754  No module named cv2
2016-10-20 16:19:51,754  webcam forwarding is disabled
2016-10-20 16:19:51,934 GStreamer version 1.8.3 for Python 2.7.12 64-bit
2016-10-20 16:19:52,371  keyboard settings: rules=evdev, model=pc101, layout=fr
2016-10-20 16:19:52,372  desktop size is 1680x1050 with 1 screen:
2016-10-20 16:19:52,372   :0.0 (444x277 mm - DPI: 96x96) workarea: 1680x1016
2016-10-20 16:19:52,373     monitor 1 (474x296 mm - DPI: 90x90)
2016-10-20 16:19:52,891 Xpra X11 server version 1.0-r14207 64-bit
2016-10-20 16:19:52,892  running on Linux CentOS Linux 7.2.1511 Core
2016-10-20 16:19:52,892 parse_printing_capabilities() client printing support=True
2016-10-20 16:19:52,892 parse_printing_capabilities() server printing support=True
2016-10-20 16:19:52,893 enabled remote logging
2016-10-20 16:19:52,895 Attached to tcp:localhost:10000 (press Control-C to detach)

2016-10-20 16:19:53,914 pycups settings: DEFAULT_CUPS_DBUS=1, CUPS_DBUS=1, POLLING_DELAY=60
2016-10-20 16:19:53,914 pycups settings: PRINTER_PREFIX=, ADD_LOCAL_PRINTERS=False
2016-10-20 16:19:53,914 pycups settings: FORWARDER_TMPDIR=/tmp
2016-10-20 16:19:53,915 pycups settings: SKIPPED_PRINTERS=['Cups-PDF']
2016-10-20 16:19:53,915 DEFAULT_CUPS_OPTIONS={'fit-to-page': 'True'}
2016-10-20 16:19:53,915 init_printing=<function init_printing at 0x7fe528089320>
2016-10-20 16:19:53,916 init_printing(<bound method XpraClient.send_printers of gtk2.client>) printers_modified_callback=None
2016-10-20 16:19:53,916 init_dbus_listener() dbus_init=None
2016-10-20 16:19:53,916 system bus: <dbus._dbus.SystemBus (system) at 0x7fe53bda4cb0>
2016-10-20 16:19:53,917 system_bus.add_signal_receiver(..)=type='signal',path='/com/redhat/PrinterSpooler',interface='com.redhat.PrinterSpooler'
2016-10-20 16:19:53,919 pycups.get_all_printers()={u'Xerox_Phaser_3250': {'printer-is-shared': False, 'printer-info': u'Xerox Phaser 3250', 'printer-state-message': u'', 'printer-type': 10530836, 'printer-make-and-model': u'Xerox Phaser 3200MFP Foomatic/Postscript', 'printer-state-reasons': [u'none'], 'printer-uri-supported': u'ipp://localhost/printers/Xerox_Phaser_3250', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'usb://Xerox/Phaser%203250?serial=3969298510'}, u'HP_HP_LaserJet_1200': {'printer-is-shared': False, 'printer-info': u'HP HP LaserJet 1200', 'printer-state-message': u'', 'printer-type': 10522692, 'printer-make-and-model': u'HP LaserJet 1200 Postscript (recommended)', 'printer-state-reasons': [u'cups-ipp-conformance-failure-report', u'cups-ipp-missing-job-history'], 'printer-uri-supported': u'ipp://localhost/printers/HP_HP_LaserJet_1200', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'dnssd://Hewlett-Packard%20HP%20LaserJet%201200%20%40%20tadoussac._ipp._tcp.local/cups?uuid=5d554f88-c8e2-39ae-5864-b09c8b939476'}, u'Cups-PDF': {'printer-is-shared': True, 'printer-info': u'Cups-PDF', 'printer-state-message': u'', 'printer-type': 8450124, 'printer-make-and-model': u'Generic CUPS-PDF Printer', 'printer-state-reasons': [u'none'], 'printer-uri-supported': u'ipp://localhost/printers/Cups-PDF', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'cups-pdf:/'}}                                                         
2016-10-20 16:19:53,919 do_send_printers() found printers={u'Xerox_Phaser_3250': {'printer-is-shared': False, 'printer-info': u'Xerox Phaser 3250', 'printer-state-message': u'', 'printer-type': 10530836, 'printer-make-and-model': u'Xerox Phaser 3200MFP Foomatic/Postscript', 'printer-state-reasons': [u'none'], 'printer-uri-supported': u'ipp://localhost/printers/Xerox_Phaser_3250', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'usb://Xerox/Phaser%203250?serial=3969298510'}, u'HP_HP_LaserJet_1200': {'printer-is-shared': False, 'printer-info': u'HP HP LaserJet 1200', 'printer-state-message': u'', 'printer-type': 10522692, 'printer-make-and-model': u'HP LaserJet 1200 Postscript (recommended)', 'printer-state-reasons': [u'cups-ipp-conformance-failure-report', u'cups-ipp-missing-job-history'], 'printer-uri-supported': u'ipp://localhost/printers/HP_HP_LaserJet_1200', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'dnssd://Hewlett-Packard%20HP%20LaserJet%201200%20%40%20tadoussac._ipp._tcp.local/cups?uuid=5d554f88-c8e2-39ae-5864-b09c8b939476'}}                                 
2016-10-20 16:19:53,919 do_send_printers() device-uri(Xerox_Phaser_3250)=usb://Xerox/Phaser%203250?serial=3969298510
2016-10-20 16:19:53,919 get_mimetype()=['application/pdf', 'application/postscript']
2016-10-20 16:19:53,920 do_send_printers() device-uri(HP_HP_LaserJet_1200)=dnssd://Hewlett-Packard%20HP%20LaserJet%201200%20%40%20tadoussac._ipp._tcp.local/cups?uuid=5d554f88-c8e2-39ae-5864-b09c8b939476                                                                                                                                                                        
2016-10-20 16:19:53,920 get_mimetype()=['application/pdf', 'application/postscript']
2016-10-20 16:19:53,920 do_send_printers() new printers: ['Xerox_Phaser_3250', 'HP_HP_LaserJet_1200']
2016-10-20 16:19:53,921 do_send_printers() printers=['Xerox_Phaser_3250', 'HP_HP_LaserJet_1200']
2016-10-20 16:19:53,921 do_send_printers() exported printers=Xerox_Phaser_3250, HP_HP_LaserJet_1200
2016-10-20 16:19:53,921 init_printing() enabled=True
2016-10-20 16:20:30,594 receiving file: ['2063309e720547981b7a1bdb85b93ff4306c5c78', 'application/pdf', True, True, 6099, '6099 bytes', {'copies': '1', 'sha1': '37ac67174f772c608d1517c0590a639428f39add', 'options': {'job-uuid': 'urn:uuid:7fa60444-cc4f-3f82-6e6e-cfb4f2636ca9', 'time-at-creation': '1476973230', 'job-originating-host-name': '172.19.0.1', 'PageSize': 'A4', 'time-at-processing': '1476973230'}, 'printer': 'Xerox_Phaser_3250', 'title': 'Untitled1'}]                                                                                            
2016-10-20 16:20:30,594 sha1 digest: 37ac67174f772c608d1517c0590a639428f39add - expected: 37ac67174f772c608d1517c0590a639428f39add
2016-10-20 16:20:30,594 downloaded 6099 bytes to application/pdf file for printing:
2016-10-20 16:20:30,594  '/home/eric/Downloads/2063309e720547981b7a1bdb85b93ff4306c5c78-3.pdf'
2016-10-20 16:20:30,595  sending 'Untitled1' to printer 'Xerox_Phaser_3250'
2016-10-20 16:20:30,595 safe print options({'copies': '1', 'sha1': '37ac67174f772c608d1517c0590a639428f39add', 'options': {'job-uuid': 'urn:uuid:7fa60444-cc4f-3f82-6e6e-cfb4f2636ca9', 'time-at-creation': '1476973230', 'job-originating-host-name': '172.19.0.1', 'PageSize': 'A4', 'time-at-processing': '1476973230'}, 'printer': 'Xerox_Phaser_3250', 'title': 'Untitled1'}) = {'PageSize': 'A4'}                                                                                                                                                                    
2016-10-20 16:20:30,598 pycups.get_all_printers()={u'Xerox_Phaser_3250': {'printer-is-shared': False, 'printer-info': u'Xerox Phaser 3250', 'printer-state-message': u'', 'printer-type': 10530836, 'printer-make-and-model': u'Xerox Phaser 3200MFP Foomatic/Postscript', 'printer-state-reasons': [u'none'], 'printer-uri-supported': u'ipp://localhost/printers/Xerox_Phaser_3250', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'usb://Xerox/Phaser%203250?serial=3969298510'}, u'HP_HP_LaserJet_1200': {'printer-is-shared': False, 'printer-info': u'HP HP LaserJet 1200', 'printer-state-message': u'', 'printer-type': 10522692, 'printer-make-and-model': u'HP LaserJet 1200 Postscript (recommended)', 'printer-state-reasons': [u'cups-ipp-conformance-failure-report', u'cups-ipp-missing-job-history'], 'printer-uri-supported': u'ipp://localhost/printers/HP_HP_LaserJet_1200', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'dnssd://Hewlett-Packard%20HP%20LaserJet%201200%20%40%20tadoussac._ipp._tcp.local/cups?uuid=5d554f88-c8e2-39ae-5864-b09c8b939476'}, u'Cups-PDF': {'printer-is-shared': True, 'printer-info': u'Cups-PDF', 'printer-state-message': u'', 'printer-type': 8450124, 'printer-make-and-model': u'Generic CUPS-PDF Printer', 'printer-state-reasons': [u'none'], 'printer-uri-supported': u'ipp://localhost/printers/Cups-PDF', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'cups-pdf:/'}}                                                         
2016-10-20 16:20:30,600 pycups.get_all_printers()={u'Xerox_Phaser_3250': {'printer-is-shared': False, 'printer-info': u'Xerox Phaser 3250', 'printer-state-message': u'', 'printer-type': 10530836, 'printer-make-and-model': u'Xerox Phaser 3200MFP Foomatic/Postscript', 'printer-state-reasons': [u'none'], 'printer-uri-supported': u'ipp://localhost/printers/Xerox_Phaser_3250', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'usb://Xerox/Phaser%203250?serial=3969298510'}, u'HP_HP_LaserJet_1200': {'printer-is-shared': False, 'printer-info': u'HP HP LaserJet 1200', 'printer-state-message': u'', 'printer-type': 10522692, 'printer-make-and-model': u'HP LaserJet 1200 Postscript (recommended)', 'printer-state-reasons': [u'cups-ipp-conformance-failure-report', u'cups-ipp-missing-job-history'], 'printer-uri-supported': u'ipp://localhost/printers/HP_HP_LaserJet_1200', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'dnssd://Hewlett-Packard%20HP%20LaserJet%201200%20%40%20tadoussac._ipp._tcp.local/cups?uuid=5d554f88-c8e2-39ae-5864-b09c8b939476'}, u'Cups-PDF': {'printer-is-shared': True, 'printer-info': u'Cups-PDF', 'printer-state-message': u'', 'printer-type': 8450124, 'printer-make-and-model': u'Generic CUPS-PDF Printer', 'printer-state-reasons': [u'none'], 'printer-uri-supported': u'ipp://localhost/printers/Cups-PDF', 'printer-state': 3, 'printer-location': u'', 'device-uri': u'cups-pdf:/'}}                                                         
2016-10-20 16:20:30,600 pycups.print_files('Xerox_Phaser_3250', ['/home/eric/Downloads/2063309e720547981b7a1bdb85b93ff4306c5c78-3.pdf'], 'Untitled1', {'copies': '1', 'sha1': '37ac67174f772c608d1517c0590a639428f39add', 'options': {'job-uuid': 'urn:uuid:7fa60444-cc4f-3f82-6e6e-cfb4f2636ca9', 'time-at-creation': '1476973230', 'job-originating-host-name': '172.19.0.1', 'PageSize': 'A4', 'time-at-processing': '1476973230'}, 'printer': 'Xerox_Phaser_3250', 'title': 'Untitled1'})                                                                              
2016-10-20 16:20:30,602 Error: pycups printing on 'Xerox_Phaser_3250' failed for file
2016-10-20 16:20:30,603  /home/eric/Downloads/2063309e720547981b7a1bdb85b93ff4306c5c78-3.pdf
2016-10-20 16:20:30,603  using cups server connection: <cups.Connection object for /var/run/cups/cups.sock at 0x7fe5280ca930>
2016-10-20 16:20:30,603  printer options:
2016-10-20 16:20:30,603   sha1                     : 37ac67174f772c608d1517c0590a639428f39add
2016-10-20 16:20:30,603   title                    : Untitled1
2016-10-20 16:20:30,603   fit-to-page              : True
2016-10-20 16:20:30,604   copies                   : 1
2016-10-20 16:20:30,604   printer                  : Xerox_Phaser_3250
2016-10-20 16:20:30,604   options                  : {'job-uuid': 'urn:uuid:7fa60444-cc4f-3f82-6e6e-cfb4f2636ca9', 'time-at-creation': '1476973230', 'job-originating-host-name': '172.19.0.1', 'PageSize': 'A4', 'time-at-processing': '1476973230'}                                                                                                                             
2016-10-20 16:20:30,604 printing /home/eric/Downloads/2063309e720547981b7a1bdb85b93ff4306c5c78-3.pdf, job=0
2016-10-20 16:20:30,607 printing failed and returned 0


-
_/) Eric Grammatico.


20 octobre 2016 16:07 "Antoine Martin" <antoine at nagafix.co.uk> a écrit:
> On 20/10/16 19:54, Eric Grammatico wrote:
> 
>> Hi Antoine,
>> 
>> Thanks a lot for the new beta releases.
>> 
>> Unfortunately, same error. Please find below logs from Client, as the file is uploaded to the
>> client (I opened manually the pdf and able to read with Okular).
> 
> Looks like the build you are using is still too old (1.0-r14149), the
> r14207 builds or later should have the fix you need to test with.
> 
> Cheers
> Antoine
> 
>> $> xpra attach -d printing --opengl=no --encoding=h264 --username=eric tcp:localhost:10000
>> 2016-10-20 14:44:41,156 Xpra gtk2 client version 1.0-r14149 64-bit
>> 2016-10-20 14:44:41,156 running on Linux Fedora 24 Twenty Four
> 
> (snip)



More information about the shifter-users mailing list