hp-setup crashes when adding new printer because hp-sendfax is not found

Bug #1306344 reported by Alexander List
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I am trying to add a new printer (also for scanning and faxing), but this fails because the setup routine for Marvell fax expects hp-sendfax, which is not part of the installed package.

$ hp-setup

HP Linux Imaging and Printing System (ver. 3.14.3)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-13 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.

Found device: hp:/net/HP_LaserJet_Professional_M1212nf_MFP?zc=laser
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1237, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 713, in showAddPrinterPage
    self.readwriteFaxInformation()
  File "/usr/share/hplip/ui4/setupdialog.py", line 1034, in readwriteFaxInformation
    d = fax.getFaxDevice(self.fax_uri, disable_dbus=True)
  File "/usr/share/hplip/fax/fax.py", line 533, in getFaxDevice
    return MarvellFaxDevice(device_uri, printer_name, callback, fax_type, disable_dbus)
  File "/usr/share/hplip/fax/marvellfax.py", line 90, in __init__
    sendfax_a_path = os.readlink(sendfax_path+"/hp-sendfax")
OSError: [Errno 2] No such file or directory: '/hp-sendfax'
Traceback (most recent call last):
  File "/usr/share/hplip/ui4/setupdialog.py", line 1237, in NextButton_clicked
    self.showAddPrinterPage()
  File "/usr/share/hplip/ui4/setupdialog.py", line 713, in showAddPrinterPage
    self.readwriteFaxInformation()
  File "/usr/share/hplip/ui4/setupdialog.py", line 1034, in readwriteFaxInformation
    d = fax.getFaxDevice(self.fax_uri, disable_dbus=True)
  File "/usr/share/hplip/fax/fax.py", line 533, in getFaxDevice
    return MarvellFaxDevice(device_uri, printer_name, callback, fax_type, disable_dbus)
  File "/usr/share/hplip/fax/marvellfax.py", line 90, in __init__
    sendfax_a_path = os.readlink(sendfax_path+"/hp-sendfax")
OSError: [Errno 2] No such file or directory: '/hp-sendfax'

alex@thinkpad:~$ apt-cache policy hplip
hplip:
  Installed: 3.14.3-0ubuntu3
  Candidate: 3.14.3-0ubuntu3
  Version table:
 *** 3.14.3-0ubuntu3 0
        500 http://tw.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: hplip 3.14.3-0ubuntu3
ProcVersionSignature: Ubuntu 3.13.0-23.45-generic 3.13.8
Uname: Linux 3.13.0-23-generic x86_64
ApportVersion: 2.14.1-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Apr 11 11:06:56 2014
InstallationDate: Installed on 2013-03-19 (387 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130318)
MachineType: LENOVO 3626A14
Papersize: a4
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.13.0-23-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash crashkernel=384M-:128M vt.handoff=7
SourcePackage: hplip
UpgradeStatus: Upgraded to trusty on 2014-03-04 (37 days ago)
dmi.bios.date: 04/26/2012
dmi.bios.vendor: LENOVO
dmi.bios.version: 6QET69WW (1.39 )
dmi.board.name: 3626A14
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6QET69WW(1.39):bd04/26/2012:svnLENOVO:pn3626A14:pvrThinkPadX201:rvnLENOVO:rn3626A14:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 3626A14
dmi.product.version: ThinkPad X201
dmi.sys.vendor: LENOVO

Revision history for this message
Alexander List (alexlist) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please try the following:

1. In a terminal window run the command

sudo touch /usr/bin/hp-sendfax

Does hp-setup work now?

If not, run

sudo chmod +x /usr/bin/hp-sendfax

Does hp-setup work now?

Now run

sudo rm /usr/bin/hp-sendfax

to return to the original state.

2. Set up your printer with system-config-printer (for example via the printer icon in the System Settings). Does this work?

3. The steps of (1) will probably only satisfy hp-setup, but not make you able to actually send faxes. To send faxes you need to install the hplip-gui package:

sudo apt-get install hplip-gui

Please tell whether after this everything works.

Changed in hplip (Ubuntu):
status: New → Incomplete
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

When you install hplip-gui, please do it in a terminal window via

sudo apt-get install hplip-gui

and post all screen output here. Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for hplip (Ubuntu) because there has been no activity for 60 days.]

Changed in hplip (Ubuntu):
status: Incomplete → Expired
Revision history for this message
fuscata (d-launchpad-fuscata-com) wrote :

Creating the file as described in #2 did not help in my case. I had to:

sudo ln -s /usr/share/hplip/sendfax.py /usr/bin/hp-sendfax

Revision history for this message
Gfish (gareth-goldswain) wrote :

Following #5 worked for me

Revision history for this message
rhk (rhk) wrote :

Following #5 worked for me too. Thanks @fuscata!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.