hp-setup and hp-plugin broken (hplipWithPlugin) #21796

Open
listx opened this Issue Jan 11, 2017 · 0 comments

Projects

None yet

2 participants

@listx
Contributor
listx commented Jan 11, 2017

Issue description

Following https://nixos.org/wiki/Printers, I put

services.printing = {
  enable = true;
  drivers = [ pkgs.hplipWithPlugin ];
};

in my configuration.nix. (My printer is not supported by Gutenprint and I must use the proprietary plugin). After a sudo nixos-rebuild switch, I first did hp-setup, which gave me this:

 > hp-setup                 

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

Copyright (c) 2001-15 HP 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_Pro_MFP_M125nw?ip=192.168.0.2

HP Linux Imaging and Printing System (ver. 3.16.5)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-15 HP 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 Linux Imaging and Printing System (ver. 3.16.5)
Plugin Download and Install Utility ver. 2.1

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

Checking for network connection...                                                                                                                                                Downloading plug-in from: 
sh: lsb_release: command not found
warning:  distro is not found in AUTH_TYPES                                                                                                                                    Receiving digital keys: /home/l/.nix-profile/bin/gpg --homedir /home/l/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9                                                                                                                                                                             Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.16.5 Plugin Self Extracting Archive................................................
/home/l/.hplip/hplip-3.16.5-plugin.run: ./hplip-plugin-install: /bin/bash: bad interpreter: No such file or directory
error: Python gobject/dbus may be not installed                                                                                                                                   error: Plug-in install failed.

Done.
error:  The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins.  Please run 'hp-plugin' as normal user to install plug-ins.   Visit  http://hplipopensource.com  for more infomation. 

Done.

I then tried running just hp-plugin, which fails like this:

 > hp-plugin

HP Linux Imaging and Printing System (ver. 3.16.5)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-15 HP 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 Linux Imaging and Printing System (ver. 3.16.5)
Plugin Download and Install Utility ver. 2.1

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

Checking for network connection...                                                                                                                                                Downloading plug-in from: 
sh: lsb_release: command not found
warning:  distro is not found in AUTH_TYPES                                                                                                                                    Receiving digital keys: /home/l/.nix-profile/bin/gpg --homedir /home/l/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9                                                                                                                                                                             Creating directory plugin_tmp
Verifying archive integrity... All good.
Uncompressing HPLIP 3.16.5 Plugin Self Extracting Archive................................................
/home/l/.hplip/hplip-3.16.5-plugin.run: ./hplip-plugin-install: /bin/bash: bad interpreter: No such file or directory
error: Python gobject/dbus may be not installed                                                                                                                                   error: Plug-in install failed.

Done.

Steps to reproduce

Install the hplipWithPlugin package (either with nix-env -iA or by editing configuration.nix as described above).
Run hp-plugin.

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)

16.09.1445.e9a8853 (Flounder)

  • Nix version: (run nix-env --version)

nix-env (Nix) 1.11.4

  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)

"16.09.1445.e9a8853"

@listx listx changed the title from hp-setup and hp-plugin broken to hp-setup and hp-plugin broken (hplipWithPlugin) Jan 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment