This is happening because these files are not meant to be run directly and are missing the line:

#!/usr/bin/env python

at the top of each file. Bash is trying to interpert these files as shell scripts, not Python code.

Even with this line, these files won't do anything because they have no test code in them (in other words, there is no module level code in them, only definitions for other files to operate on when imported).

-Don


On 10/11/06, Arno Jung <[EMAIL PROTECTED]> wrote:
I found the following. Are you interestet?
I hope, it can help.
Kind Regards
Arno

arju:/usr/share/hplip/ui # ./faxallowabletypesdlg.py
./faxallowabletypesdlg.py: line 22: from: command not found
./faxallowabletypesdlg.py: line 23: from: command not found
./faxallowabletypesdlg.py: line 25: syntax error near unexpected
token `('
./faxallowabletypesdlg.py: line 25: `class
FaxAllowableTypesDlg(FaxAllowableTypesDlg_base):'
arju:/usr/share/hplip/ui #


arju:/usr/share/hplip/ui # ./faxsendjobform.py
import: unable to grab mouse `Erfolg'.
import: unable to read X window image `'.
import: unable to read X window image `'.
import: unable to grab mouse `Erfolg'.
import: unable to read X window image `'.
import: unable to read X window image `'.
import: unable to grab mouse `Erfolg'.
import: unable to read X window image `'.
import: unable to read X window image `'.
./faxsendjobform.py: line 26: from: command not found
./faxsendjobform.py: line 27: from: command not found
./faxsendjobform.py: line 29: try:: command not found
./faxsendjobform.py: line 30: from: command not found
./faxsendjobform.py: line 31: except: command not found
./faxsendjobform.py: line 33: syntax error near unexpected token
`"Fax send disabled - Python 2.3+ required."'
./faxsendjobform.py: line 33: `     log.error("Fax send disabled -
Python 2.3+ required.")'
arju:/usr/share/hplip/ui #



arju:/usr/share/hplip/ui # ./faxsettingsform.py
./faxsettingsform.py: line 24: from: command not found
./faxsettingsform.py: line 25: from: command not found
./faxsettingsform.py: line 26: from: command not found
./faxsettingsform.py: line 27: from: command not found
./faxsettingsform.py: line 29: syntax error near unexpected token `('
./faxsettingsform.py: line 29: `class PhoneNumValidator(QValidator):'
arju:/usr/share/hplip/ui #


arju:/usr/share/hplip/ui # ./faxsendjobform_base.py
./faxsendjobform_base.py: line 11: from: command not found
./faxsendjobform_base.py: line 14: syntax error near unexpected
token `('
./faxsendjobform_base.py: line 14: `class FaxSendJobForm_base(QDialog):'
arju:/usr/share/hplip/ui #


arju:/usr/share/hplip/ui # ./faxallowabletypesdlg_base.py
./faxallowabletypesdlg_base.py: line 11: from: command not found
./faxallowabletypesdlg_base.py: line 14: syntax error near
unexpected token `('
./faxallowabletypesdlg_base.py: line 14: `class
FaxAllowableTypesDlg_base(QDialog):'
arju:/usr/share/hplip/ui #


arju:/usr/share/hplip/ui # ./faxsettingsform_base.py
./faxsettingsform_base.py: line 11: from: command not found
./faxsettingsform_base.py: line 14: syntax error near unexpected
token `('
./faxsettingsform_base.py: line 14: `class
FaxSettingsForm_base(QDialog):'
arju:/usr/share/hplip/ui #



arju:/usr/share/hplip/fax # ./fax.py
./fax.py: line 22: from: command not found
import: unable to grab mouse `Erfolg'.
import: unable to read X window image `'.
import: unable to read X window image `'.
import: unable to grab mouse `Erfolg'.
import: unable to read X window image `'.
import: unable to read X window image `'.
import: unable to grab mouse `Erfolg'.
import: unable to read X window image `'.
import: unable to read X window image `'.
./fax.py: line 26: from: command not found
./fax.py: line 29: from: command not found
./fax.py: line 30: from: command not found
./fax.py: line 31: from: command not found
./fax.py: line 32: from: command not found
./fax.py: line 33: from: command not found
./fax.py: line 35: try:: command not found
./fax.py: line 37: except: command not found
./fax.py: line 38: pass: command not found
./fax.py: line 43: PAGE_FLAG_NONE: command not found
./fax.py: line 44: PAGE_FLAG_NEW_PAGE: command not found
./fax.py: line 45: PAGE_FLAG_END_PAGE: command not found
./fax.py: line 46: PAGE_FLAG_NEW_DOC: command not found
./fax.py: line 47: PAGE_FLAG_END_DOC: command not found
./fax.py: line 48: PAGE_FLAG_END_STREAM: command not found
./fax.py: line 50: MAJOR_VER: command not found
./fax.py: line 51: MINOR_VER: command not found
./fax.py: line 53: MFPDTF_RASTER_BITMAP: command not found
./fax.py: line 54: MFPDTF_RASTER_GRAYMAP: command not found
./fax.py: line 55: MFPDTF_RASTER_MH: command not found
./fax.py: line 56: MFPDTF_RASTER_MR: command not found
./fax.py: line 57: MFPDTF_RASTER_MMR: command not found
./fax.py: line 58: MFPDTF_RASTER_RGB: command not found
./fax.py: line 59: MFPDTF_RASTER_YCC411: command not found
./fax.py: line 60: MFPDTF_RASTER_JPEG: command not found
./fax.py: line 61: MFPDTF_RASTER_PCL: command not found
./fax.py: line 62: MFPDTF_RASTER_NOT: command not found
./fax.py: line 65: DT_UNKNOWN: command not found
./fax.py: line 66: DT_FAX_IMAGES: command not found
./fax.py: line 67: 2: command not found
./fax.py: line 68: DT_DIAL_STRINGS: command not found
./fax.py: line 69: DT_DEMO_PAGES: command not found
./fax.py: line 70: DT_SPEED_DIALS: command not found
./fax.py: line 71: DT_FAX_LOGS: command not found
./fax.py: line 72: DT_CFG_PARMS: command not found
./fax.py: line 73: DT_LANG_STRS: command not found
./fax.py: line 74: 9: command not found
./fax.py: line 75: DT_REPORT_STRS: command not found
./fax.py: line 76: DT_FONTS: command not found
./fax.py: line 77: DT_TTI_BITMAP: command not found
./fax.py: line 78: DT_COUNTERS: command not found
./fax.py: line 79: DT_DEF_PARMS: command not found
./fax.py: line 80: DT_SCAN_OPTIONS: command not found
./fax.py: line 81: DT_FW_JOB_TABLE: command not found
./fax.py: line 84: RT_START_PAGE: command not found
./fax.py: line 85: RT_RASTER: command not found
./fax.py: line 86: RT_END_PAGE: command not found
./fax.py: line 89: FIXED_HEADER_SIZE: command not found
./fax.py: line 92: IMAGE_VARIANT_HEADER_SIZE: command not found
./fax.py: line 93: DIAL_STRINGS_VARIANT_HEADER_SIZE: command not found
./fax.py: line 94: FAX_IMAGE_VARIANT_HEADER_SIZE: command not found
./fax.py: line 97: SOP_RECORD_SIZE: command not found
./fax.py: line 98: RASTER_RECORD_SIZE: command not found
./fax.py: line 99: EOP_RECORD_SIZE: command not found
./fax.py: line 100: DIAL_STRING_RECORD_SIZE: command not found
./fax.py: line 103: PAGE_FLAG_NEW_PAGE: command not found
./fax.py: line 104: PAGE_FLAG_END_PAGE: command not found
./fax.py: line 105: PAGE_FLAG_NEW_DOC: command not found
./fax.py: line 106: PAGE_FLAG_END_DOC: command not found
./fax.py: line 107: PAGE_FLAG_END_STREAM: command not found
./fax.py: line 110: SRC_UNKNOWN: command not found
./fax.py: line 111: SRC_HOST: command not found
./fax.py: line 112: SRC_SCANNER: command not found
./fax.py: line 113: SRC_HOST_THEN_SCANNER: command not found
./fax.py: line 114: SRC_SCANNER_THEN_HOST: command not found
./fax.py: line 117: TTI_NONE: command not found
./fax.py: line 118: TTI_PREPENDED_TO_IMAGE: command not found
./fax.py: line 119: TTI_OVERLAYED_ON_IMAGE: command not found
./fax.py: line 121: RASTER_DATA_SIZE: command not found
./fax.py: line 124: STATUS_IDLE: command not found
./fax.py: line 125: STATUS_PROCESSING_FILES: command not found
./fax.py: line 126: STATUS_DIALING: command not found
./fax.py: line 127: STATUS_CONNECTING: command not found
./fax.py: line 128: STATUS_SENDING: command not found
./fax.py: line 129: STATUS_COMPLETED: command not found
./fax.py: line 130: STATUS_CREATING_COVER_PAGE: command not found
./fax.py: line 131: STATUS_ERROR: command not found
./fax.py: line 132: STATUS_BUSY: command not found
./fax.py: line 133: STATUS_CLEANUP: command not found
./fax.py: line 136: EVENT_FAX_SEND_CANCELED: command not found
./fax.py: line 195: FILE_HEADER_SIZE: command not found
./fax.py: line 196: PAGE_HEADER_SIZE: command not found
./fax.py: line 200: syntax error near unexpected token `('
./fax.py: line 200: `class FaxAddressBook(KirbyBase):'
arju:/usr/share/hplip/fax #




















> I use here
> hplip-1.6.9-1.1.i586.rpm
> hplip-hpijs-1.6.9-1.1.i586.rpm
> SuSE-10.1
> python-ReportLab-1.2.0-2.i586.rpm
> net-snmp-devel-5.3.0.1-21.i586.rpm
>
> hp-setup was used
>
> arju:~ # /usr/lib/cups/backend/hpfax
> direct hpfax:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q "HP Fax" "HP
> OfficeJet 5110 USB CN2BKB20SR2Q HPLIP HP Fax" "MFG:HP;MDL:Fax;DES:HP
> Fax;"
> arju:~ #
>
>
>
> I can not send faxes
> I think, there are errors while using the device-Uri's
> Please see here a part of  hp-toolbox -gg
> There is written "printer is idle" but
> I am missing the actions from hpfax
> Am I right?
> Kind Regards
> Arno
>
>
> [ . . . . . .]
> The printer is idle.,\n2006,10,6,20,3,15,4,279,1,0,root,1000,The
> printer is idle.,'
> hp-toolbox[8069]: debug: Run: ******************** hp-sendfax -d
> %FAX_URI% (hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q)
> ********************
> hp-toolbox[8069]: debug: hp-sendfax -d %FAX_URI%
> hp-toolbox[8069]: debug: hp-sendfax -d
> hpfax:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q
> hp-toolbox[8069]: debug: hp-sendfax
> hp-toolbox[8069]: debug: ['hp-sendfax', '-d',
> 'hpfax:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q']
> hp-toolbox[8069]: debug: Cleaning up child processes.
>
> HP Linux Imaging and Printing System (ver. 1.6.9)
> PC Sendfax Utility ver. 4.2
>
> Copyright (c) 2003-6 Hewlett-Packard Development Company, LP
> This software comes with ABSOLUTELY NO WARRANTY.
> This is free software, and you are welcome to distribute it
> under certain conditions. See COPYING file for more details.
>
> hp-toolbox[8069]: debug: Reading data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=eventgui\nevent-code=600\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\njob-id=7\nretry-timeout=0\nevent-type=event\nencoding=none\nlength=30\ndata:\nStarted
> rendering a fax job.\n\n'
> hp-toolbox[8069]: debug: ******************** eventgui
> ********************
> hp-toolbox[8069]: debug:
> 'msg=eventgui\nevent-code=600\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\njob-id=7\nretry-timeout=0\nevent-type=event\nencoding=none\nlength=30\ndata:\nStarted
> rendering a fax job.\n\n'
> hp-toolbox[8069]: debug: Event: 600 'event'
> hp-toolbox[8069]: debug: Event: code=600 type=event string=Started
> rendering a fax job. timeout=0 id=7
> uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q
> hp-toolbox[8069]: debug: Activate: ********************
> hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q ********************
> hp-toolbox[8069]: debug: Update: ********************
> hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q ********************
> hp-toolbox[8069]: debug: (xmit) Sending data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=queryhistory\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\n'
> hp-toolbox[8069]: debug: (xmit) Reading data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=queryhistoryresult\nresult-code=0\nencoding=none\nlength=1296\ndata:\n\n2006,10,6,19,34,6,4,279,1,0,root,1000,The
> printer is idle.,\n2006,10,6,19,34,7,4,279,1,0,root,1000,The printer
> is idle.,\n2006,10,6,19,34,13,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,34,29,4,279,1,5,root,600,Started rendering a
> fax job.,\n2006,10,6,19,34,37,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,34,37,4,279,1,0,root,3000,Fax job
> started.,\n2006,10,6,19,36,17,4,279,1,0,root,3002,Fax job
> failed.,Please correct the problem and try
> again.\n2006,10,6,19,36,41,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,36,42,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,37,2,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,37,3,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,44,48,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,45,4,4,279,1,6,root,600,Started rendering a fax
> job.,\n2006,10,6,19,46,15,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,46,15,4,279,1,0,root,3000,Fax job
> started.,\n2006,10,6,19,47,54,4,279,1,0,root,3002,Fax job
> failed.,Please correct the problem and try
> again.\n2006,10,6,20,3,14,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,15,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,21,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,40,4,279,1,7,root,600,Started rendering a fax
> job.,'
> hp-toolbox[8069]: debug: Reading data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=eventgui\nevent-code=3000\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\njob-id=0\nretry-timeout=0\nevent-type=event\nencoding=none\nlength=18\ndata:\nFax
> job started.\n\n'
> hp-toolbox[8069]: debug: ******************** eventgui
> ********************
> hp-toolbox[8069]: debug:
> 'msg=eventgui\nevent-code=3000\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\njob-id=0\nretry-timeout=0\nevent-type=event\nencoding=none\nlength=18\ndata:\nFax
> job started.\n\n'
> hp-toolbox[8069]: debug: Event: 3000 'event'
> hp-toolbox[8069]: debug: Event: code=3000 type=event string=Fax job
> started. timeout=0 id=0 uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q
> hp-toolbox[8069]: debug: Activate: ********************
> hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q ********************
> hp-toolbox[8069]: debug: Update: ********************
> hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q ********************
> hp-toolbox[8069]: debug: (xmit) Sending data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=queryhistory\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\n'
> hp-toolbox[8069]: debug: (xmit) Reading data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=queryhistoryresult\nresult-code=0\nencoding=none\nlength=1412\ndata:\n\n2006,10,6,19,34,6,4,279,1,0,root,1000,The
> printer is idle.,\n2006,10,6,19,34,7,4,279,1,0,root,1000,The printer
> is idle.,\n2006,10,6,19,34,13,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,34,29,4,279,1,5,root,600,Started rendering a
> fax job.,\n2006,10,6,19,34,37,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,34,37,4,279,1,0,root,3000,Fax job
> started.,\n2006,10,6,19,36,17,4,279,1,0,root,3002,Fax job
> failed.,Please correct the problem and try
> again.\n2006,10,6,19,36,41,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,36,42,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,37,2,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,37,3,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,44,48,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,45,4,4,279,1,6,root,600,Started rendering a fax
> job.,\n2006,10,6,19,46,15,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,46,15,4,279,1,0,root,3000,Fax job
> started.,\n2006,10,6,19,47,54,4,279,1,0,root,3002,Fax job
> failed.,Please correct the problem and try
> again.\n2006,10,6,20,3,14,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,15,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,21,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,40,4,279,1,7,root,600,Started rendering a fax
> job.,\n2006,10,6,20,3,48,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,48,4,279,1,0,root,3000,Fax job started.,'
> error: Channel write error
> error: Channel write error.
> error: Fax send error.
> error: Error, aborting.
> hp-toolbox[8069]: debug: Reading data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=eventgui\nevent-code=3002\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\njob-id=0\nretry-timeout=0\nevent-type=event\nencoding=none\nlength=58\ndata:\nFax
> job failed.\nPlease correct the problem and try again.\n'
> hp-toolbox[8069]: debug: ******************** eventgui
> ********************
> hp-toolbox[8069]: debug:
> 'msg=eventgui\nevent-code=3002\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\njob-id=0\nretry-timeout=0\nevent-type=event\nencoding=none\nlength=58\ndata:\nFax
> job failed.\nPlease correct the problem and try again.\n'
> hp-toolbox[8069]: debug: Event: 3002 'event'
> hp-toolbox[8069]: debug: Event: code=3002 type=event string=Fax job
> failed. timeout=0 id=0 uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q
> hp-toolbox[8069]: debug: Activate: ********************
> hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q ********************
> hp-toolbox[8069]: debug: Update: ********************
> hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q ********************
> hp-toolbox[8069]: debug: (xmit) Sending data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=queryhistory\ndevice-uri=hp:/usb/OfficeJet_5110?serial=CN2BKB20SR2Q\n'
> hp-toolbox[8069]: debug: (xmit) Reading data on channel (3)
> hp-toolbox[8069]: debug:
> 'msg=queryhistoryresult\nresult-code=0\nencoding=none\nlength=1508\ndata:\n\n2006,10,6,19,34,6,4,279,1,0,root,1000,The
> printer is idle.,\n2006,10,6,19,34,7,4,279,1,0,root,1000,The printer
> is idle.,\n2006,10,6,19,34,13,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,34,29,4,279,1,5,root,600,Started rendering a
> fax job.,\n2006,10,6,19,34,37,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,34,37,4,279,1,0,root,3000,Fax job
> started.,\n2006,10,6,19,36,17,4,279,1,0,root,3002,Fax job
> failed.,Please correct the problem and try
> again.\n2006,10,6,19,36,41,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,36,42,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,37,2,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,37,3,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,44,48,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,45,4,4,279,1,6,root,600,Started rendering a fax
> job.,\n2006,10,6,19,46,15,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,19,46,15,4,279,1,0,root,3000,Fax job
> started.,\n2006,10,6,19,47,54,4,279,1,0,root,3002,Fax job
> failed.,Please correct the problem and try
> again.\n2006,10,6,20,3,14,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,15,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,21,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,40,4,279,1,7,root,600,Started rendering a fax
> job.,\n2006,10,6,20,3,48,4,279,1,0,root,1000,The printer is
> idle.,\n2006,10,6,20,3,48,4,279,1,0,root,3000,Fax job
> started.,\n2006,10,6,20,6,20,4,279,1,0,root,3002,Fax job
> failed.,Please correct the problem and try again.'
> hp-toolbox[8069]: debug: Cleaning up child processes.
> arju:~ #
>
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HPLIP-Help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hplip-help

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HPLIP-Help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hplip-help

Reply via email to