printing will fail with python3.5 set as default

Bug #1530656 reported by Wolf Rogner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned
hplip (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Setting Python 3.5 as the default for python3 breaks printing over HPlib.

Steps to reproduce:

sudo -s
cd /usr/bin
rm python3
ln -s python3.5 python3

...

print something using a hplip enabled printer -> printer stopped

rm python3
ln -s python3.4 python3 # this was the default setting after installation

...

printing resumes

I also observed a crash in the HPLip libraries which indicated the cause being in the hplip package. (this was not reproducable though)

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: hplip 3.15.7-0ubuntu4
ProcVersionSignature: Ubuntu 4.2.0-22.27-generic 4.2.6
Uname: Linux 4.2.0-22-generic x86_64
NonfreeKernelModules: nvidia wl
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Jan 3 15:30:56 2016
InstallationDate: Installed on 2013-05-17 (960 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64+mac (20130424)
Lpstat: device for HP-Color-LaserJet-CP2025dn: hp:/net/HP_Color_LaserJet_CP2025dn?ip=10.1.0.20
MachineType: Apple Inc. MacBookPro10,1
Papersize: a4
PpdFiles: Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/HP-Color-LaserJet-CP2025dn.ppd'] failed with exit code 2: grep: /etc/cups/ppd/HP-Color-LaserJet-CP2025dn.ppd: Permission denied
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-22-generic root=UUID=3679e976-6405-4981-aa99-8c79d15e6aa3 ro quiet splash vt.handoff=7
SourcePackage: hplip
UpgradeStatus: Upgraded to wily on 2015-10-23 (72 days ago)
dmi.bios.date: 12/21/2012
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBP101.88Z.00EE.B03.1212211437
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-C3EC7CD22292981F
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro10,1
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-C3EC7CD22292981F
dmi.modalias: dmi:bvnAppleInc.:bvrMBP101.88Z.00EE.B03.1212211437:bd12/21/2012:svnAppleInc.:pnMacBookPro10,1:pvr1.0:rvnAppleInc.:rnMac-C3EC7CD22292981F:rvrMacBookPro10,1:cvnAppleInc.:ct10:cvrMac-C3EC7CD22292981F:
dmi.product.name: MacBookPro10,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Revision history for this message
Wolf Rogner (war-rsb) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

To the HPLIP developers at HP: It seems that there are compatibility issues of current HPLIP with Python 3.5. Can you pleas check and fix this? Thanks.

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

Thanks for reporting issue.
We will look into this matter.

Revision history for this message
Gaurav Sood (gaurav-sood) wrote :

If we change the softlink to point to another python version, we need to reinstall hplip. Did you do that?
Try resinstalling HPLIP and check if things work.

Revision history for this message
Wolf Rogner (war-rsb) wrote :

relinked to python3.5 and reinstalled hplip (even restarted the machine)

-> still the same phenomenon: printer is stopped.

syslog:
Jan 4 11:18:37 mbr hp[4034]: prnt/backend/hp.c 919: ERROR: null print job total=0

Also see screenshot

Revision history for this message
goutam (goutamkk) wrote :

Hi Wolf,

Can you try install hplip from auto-installer package 'hplip-3.15.11.run' file. You can download the file from here http://hplipopensource.com/hplip-web/gethplip.html.

Run command 'sh hplip-3.15.11.run' to install hplip package.

Let us know if the issue is still reproducing.

Thanks,
Goutam

Revision history for this message
Wolf Rogner (war-rsb) wrote :

Sorry for the delay.

I tried it with 3.15.11 and it seems to work fine.

Did I observe correctly that the tool suite is wirtten in python2.6?

If so, what influence does a relink of python3 to 3.5 have?

Revision history for this message
goutam (goutamkk) wrote :

hplip is written to suite version py2.6 and py3.X.
While building the code certain binaries are linked with the default python library. When default python version is changed to higher version, the code needs to be recompiled to link to the python library which is defaulted now.

Revision history for this message
Wolf Rogner (war-rsb) wrote :

If this holds true, I should be able to fix this issue by completly wiping hplip and reinstall it with python3.5 set.

I tried this and it did not work.

Revision history for this message
goutam (goutamkk) wrote :

Did you try install hplip-3.15.11 through 'hplip-3.15.11.run' auto installer package ?
If yes, and if it is not working can you tell us what is the error you are getting.

Revision history for this message
Wolf Rogner (war-rsb) wrote :

What did I do:

I redirected python3 to python3.5 (ln -s)

I ran hplip-3.15.11.run which analyses and compiles the libraries according to the underlying system.
It worked fine.

printing works.

The log messages suggest that the compilation uses python 2.6 (I have 2.7 as default, which indicates that the installation routines deliberately choose 2.6).

What I observed is that graphical frontends of 3.15.11 differ from the utilities in 3.7.x (which is installed by default in 15.10).

Thus I tried to figure out if the issue can be reverted to just requiring a fresh install of 3.7.x with python3.5 as default python3 installation.

I have no way of deinstalling the utilities (there is no uninstall switch in the installation or at least I didn't find it).

So I can only install and confirm: It works.

I cannot tell or research the reason and if it is possible to fix the issue by simply reinstalling hplip from the standard repo.
From a production point of view, I cannot install a library which is not supported through the standard repo.

Revision history for this message
goutam kodu (goutam-hplip) wrote : Re: [Bug 1530656] Re: printing will fail with python3.5 set as default
Download full text (4.0 KiB)

Hi wolf,

Thank you for confirming that hplip-3.15.11.run is working fine.
We will surely take a look at fixing this issue when Hplip package
installed from standard repo

Thank you,
goutam
On 15 Jan 2016 15:20, "Wolf Rogner" <email address hidden> wrote:

> What did I do:
>
> I redirected python3 to python3.5 (ln -s)
>
> I ran hplip-3.15.11.run which analyses and compiles the libraries
> according to the underlying system.
> It worked fine.
>
> printing works.
>
> The log messages suggest that the compilation uses python 2.6 (I have
> 2.7 as default, which indicates that the installation routines
> deliberately choose 2.6).
>
> What I observed is that graphical frontends of 3.15.11 differ from the
> utilities in 3.7.x (which is installed by default in 15.10).
>
> Thus I tried to figure out if the issue can be reverted to just
> requiring a fresh install of 3.7.x with python3.5 as default python3
> installation.
>
> I have no way of deinstalling the utilities (there is no uninstall
> switch in the installation or at least I didn't find it).
>
> So I can only install and confirm: It works.
>
> I cannot tell or research the reason and if it is possible to fix the
> issue by simply reinstalling hplip from the standard repo.
> >From a production point of view, I cannot install a library which is not
> supported through the standard repo.
>
> --
> You received this bug notification because you are subscribed to HPLIP.
> https://bugs.launchpad.net/bugs/1530656
>
> Title:
> printing will fail with python3.5 set as default
>
> Status in HPLIP:
> New
> Status in hplip package in Ubuntu:
> New
>
> Bug description:
> Setting Python 3.5 as the default for python3 breaks printing over
> HPlib.
>
> Steps to reproduce:
>
> sudo -s
> cd /usr/bin
> rm python3
> ln -s python3.5 python3
>
> ...
>
> print something using a hplip enabled printer -> printer stopped
>
> rm python3
> ln -s python3.4 python3 # this was the default setting after installation
>
> ...
>
> printing resumes
>
> I also observed a crash in the HPLip libraries which indicated the
> cause being in the hplip package. (this was not reproducable though)
>
> ProblemType: Bug
> DistroRelease: Ubuntu 15.10
> Package: hplip 3.15.7-0ubuntu4
> ProcVersionSignature: Ubuntu 4.2.0-22.27-generic 4.2.6
> Uname: Linux 4.2.0-22-generic x86_64
> NonfreeKernelModules: nvidia wl
> ApportVersion: 2.19.1-0ubuntu5
> Architecture: amd64
> CurrentDesktop: Unity
> Date: Sun Jan 3 15:30:56 2016
> InstallationDate: Installed on 2013-05-17 (960 days ago)
> InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64+mac
> (20130424)
> Lpstat: device for HP-Color-LaserJet-CP2025dn:
> hp:/net/HP_Color_LaserJet_CP2025dn?ip=10.1.0.20
> MachineType: Apple Inc. MacBookPro10,1
> Papersize: a4
> PpdFiles: Error: command ['fgrep', '-H', '*NickName',
> '/etc/cups/ppd/HP-Color-LaserJet-CP2025dn.ppd'] failed with exit code 2:
> grep: /etc/cups/ppd/HP-Color-LaserJet-CP2025dn.ppd: Permission denied
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-22-generic
> root=UUID=3679e976-6405-4981-aa99-8c79d15e6aa3 ro quiet splash vt.handoff=7
> SourcePackage: hplip
> Up...

Read more...

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hplip (Ubuntu):
status: New → Confirmed
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.