Author Topic: Is impossible to install HP printing application, it fails due to lack of PyQt4.  (Read 2024 times)

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello,

I was trying to use the printer and there is not an HP installation option like PCLinux has before.
I went to PCC-Hardware-Configure printing and scanner and Setup the printer do not respond when I click on it.

I looked in the forums and in this post I saw this and I tried to install from Synaptic all these tasks:
task-printing,
task-printing-hp and
task-printing-server

All failed dependencies with hplip-gui, no matter what repository I mark, even marking various at same time.

Then I was able to install all hplip with all its dependencies, except hplip-gui.
Then I tried to install hplip-ui and I got:
hplip-gui:
 Depends: PyQt4


I searched in Synaptic for PyQt4 and it is not shown in any of the repos I have marked.

I tried to install task-printing-hp and I got:
task-printing-hp:
 Depends: hplip-gui


But with no PyQt4 available in the repos is impossible to install task-printing-hp.

What can I do to have my HP deskjet 845C working? It was working in my laptop Host PCLOS OpenBox installation 2 months ago.

I have noticed that in the repositories, under Distribution is: pclinuxos/2010, is this correct or it is outdated?
If it is not correct what should I use: pclinuxos/2011, pclinuxos/2012,  or other?

Please, can someone correct the issue in PCC-Hardware-Configure printing and scanner - Setup the printer?.

Thanks for any help.
Regards
joejac
« Last Edit: June 04, 2012, 01:40:19 PM by joejac »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
joejac,

I just installed all three packages, task-printing, task-printing-hp and task-printing-server, with no problems. And, you are right. The hplip-gui package has PyQt4 as a dependency. The actual package name is python-qt4-4.8.4-1pclos2012. But, before you go and try to install it manually, let's look at a couple of things.

Code: [Select]
apt-cache depends hplip-gui
hplip-gui-3.alot-2pclos2011
  Depends: <PyQt4>
    python-qt4-4.8.4-1pclos2012
  Depends: python-dbus
  Depends: python-reportlab
  Depends: python-gobject >= 2.28.3
  Depends: desktop-file-utils
  Depends: desktop-file-utils
  Depends: hplip >= 3.alot-2pclos2011
  Depends: libsane-hpaio >= 3.alot-2pclos2011
  Depends: </bin/sh>
    bash-4.1-3pclos2010
  Depends: </bin/sh>
    bash-4.1-3pclos2010
  Obsoletes: hplip-gui < 3.alot

1. Is your system fully updated?
2. Do you have apt-sources-list package installed?

If you do not have apt-sources-list installed, you need to install that one package before doing anything else. You also need to install all updates before installing new programs. While trying to resolve your issue, I hope you did not enable more than one repository (other than megagames) at a time. That can cause unresolvable dependencies.
« Last Edit: June 04, 2012, 03:45:54 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1518
    • PCLinuxOS.nl
Most important, wich installed version of PCLinuxOS ?
And, last updated, when ?

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello,
I was able to install my HP printer in the LXDE VM guest and it is working. The only annoying thing is the error "Unable to delete printer queue. Could not connect to CUPS Server" I do not know how to solve this, but it is printing from the VM.

In LXDE Host is not possible to install the HP Printer. I get same dependency error message. Can this be due to the test kernel-3.2.18-pclos1.pae.bfs that I had to install in the Host, to make it work with the network card?

I also have a freeze of the Host an average of once per day, my VMs are aborted, because I have to reset the Desktop.

Now I booted from Grub first option, that supposed to have the standard kernel and not to work with the network card, but it is working, I am very confused with these various kernel options at boot time.

With the standard kernel in the LXDE Host I tried to run task-printing-hp: and I still have the dependency error
 Depends: hplip-gui
And it is same LXDE that I used to install the VM that is now printing.

Then I read your post djohnston,
1.- Yes my host and VM are updated, a big green check mark in the task bar.

2.- No, I have not installed apt-sources-list, should not have to be done automatically?

3.- I was so in need to print that, yes for the Host I checked more than one repository, sorry about that.

4.- Then I selected only one repository, then Reload, and then installed   apt-sources-list from Synaptic, I got this message:

While installing package apt-sources-list-1.0.1-2pclos2012:
warning: /etc/apt/sources.list saved as /etc/apt/sources.list.rpmsave

5.- I tried to install only task-printing-hp and same dependency error. Anyway I will print from the VMs. I hope that now that I am booting from first Grub option my Host do not freeze, I do not know. Thanks a lot for your help djohnston, and sorry to make lose your valuable time.

Hello DBaas, I use LXDE, I do not know which version, it is a rolling distro right? updated an hour ago I guess, I try to mark all upgrades and the Apply button is gray, so it has to be upgraded. By the way should I upgrade the test kernel-3.2.18-pclos1.pae.bfs, if so how?

Thanks
joejac

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
joejac,

Just so you know we're on the same page, here are the specs on the machine I installed the printing packages to and I'm posting from right now.

Code: [Select]
echo $DESKTOP_SESSION
LXDE

uname -r
3.2.18-pclos1.a64

rpm -qa | grep task-print
task-printing-epson-2011-1pclos2011
task-printing-2011-1pclos2011
task-printing-server-2011-1pclos2011
task-printing-misc-2011-1pclos2011
task-printing-hp-2011-1pclos2011
task-printing-canon-2011-1pclos2011
task-printing-okidata-2011-1pclos2011
task-printing-lexmark-2011-1pclos2011

I left out all the prompts to save space. This machine runs 24/7 and I use it every day.


I was able to install my HP printer in the LXDE VM guest and it is working. The only annoying thing is the error "Unable to delete printer queue. Could not connect to CUPS Server" I do not know how to solve this, but it is printing from the VM.


One step at a time. Let's first deal with the most important issue, the computer freezing up.


Now I booted from Grub first option, that supposed to have the standard kernel and not to work with the network card, but it is working, I am very confused with these various kernel options at boot time.


The first GRUB option should be the last kernel you installed. In other words, it should be the newer kernel. Open a terminal and enter:

ls -l /boot/vmlinuz

It should show: lrwxrwxrwx 1 root root 25 May 29 01:53 /boot/vmlinuz -> vmlinuz-3.2.18-pclos1.pae.bfs. (The date and time will be different.) If so, the default GRUB option will boot the 3.2.18-pclos1.pae.bfs kernel. To boot the original kernel, 2.6.38.8.bfs, you would have to select it from the list at the bottom of the GRUB boot menu.


4.- Then I selected only one repository, then Reload, and then installed   apt-sources-list from Synaptic, I got this message:

While installing package apt-sources-list-1.0.1-2pclos2012:
warning: /etc/apt/sources.list saved as /etc/apt/sources.list.rpmsave


That is normal. Your old /etc/apt/sources.list (repository list) was saved as as /etc/apt/sources.list.rpmsave. The new repository list is the one Synaptic is now using.


2.- No, I have not installed apt-sources-list, should not have to be done automatically?


Maybe the package should have been pushed to every updater once it was released. I don't know. But it's not automatically installed, so you have to do it yourself. This updated repositories list is necessary because some of the repositories dropped PCLinuxOS support. The dropped support wasn't a decision from the developers.

I did not realize you are running a testing kernel. That should not be a problem, provided it was installed with some other packages that could not be marked as dependencies. Please read AS's post here thoroughly. Bookmark it or copy the post into a text editor or word processor. I realize that the kernel number listed is a different one than yours and mine. The steps still apply. Be sure you thoroughly understand it before doing any of the steps there. When you are ready, post back before you take any steps in that post.

In the meantime, try to install the python-qt4-4.8.4-1pclos2012 package in Synaptic. Report what the errors are.

For future reference:
1. Never enable more than one repository at a time, (not including the megagames repository).
2. Always do all updates before installing new packages.
« Last Edit: June 04, 2012, 10:50:40 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1518
    • PCLinuxOS.nl
Thinkin'....., is cups installed and running ? check in PCC if it's running at startup.

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Thanks a lot djohnston, now I understand a little.

1.- From The first GRUB option, I have for those commands:
echo $DESKTOP_SESSION
LXDE

uname -r:
3.2.18-pclos1.pae.bfs
This kernel resolved my issue with the Network card and internet connection.

2.- ls -l /boot/vmlinuz
lrwxrwxrwx 1 root root 29 May 30 06:52 /boot/vmlinuz -> vmlinuz-3.2.18-pclos1.pae.bfs

3.- The host had installed
python-qt4-core
python-qt4-gui

3.1 but not python-qt4, so when I tried to install it I got the following errors:
python-qt4:
 Depends: python-qt4-declarative (= 4.8.4)
 Depends: python-qt4-designer (= 4.8.4)
 Depends: python-qt4-help (= 4.8.4)
 Depends: python-qt4-multimedia (= 4.8.4)
 Depends: python-qt4-scripttools (= 4.8.4)
 Depends: python-qt4-test (= 4.8.4)
 Depends: python-qt4-webkit (= 4.8.4)

3.2 Should I install all those before python-qt4?, should not Synaptic automatically select and install the Dependent packages?
 
4.- I bookmarked kernel 3.2.15-pclos1 32bit for an indepth read, but i will need time.
4.1 I will keep in mind your advice:
"1. Never enable more than one repository at a time, (not including the megagames repository).
2. Always do all updates before installing new packages."

5.- DeBaas "Configure Printing ..." is not working in PCC.

Regards
joejac

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1518
    • PCLinuxOS.nl
Just checked:
Installed a fresh PCLinuxOS LXDE on test rig:
pclinuxos-lxde-2012.01.iso
Without changing the Synaptic repo,
     http://ftp.heanet.ie/pub/pclinuxos/apt/
     pclinuxos/2010
     main updates nonfree kde4 games
In Synaptic:
Reload
Search
cups (right mousclick)
mark cups for install
Search
task-printing
mark task-printing for install
Mark all upgrades
Apply
Reboot
Printer config without any issues.
Don't now how to help you any further.

cups and task-printing are NOT installed by default in PCLinuxOS LXDE.

You can also try to configure your printer in a webbrowser:
http://127.0.0.1:631/admin
but cups should be installed then.

« Last Edit: June 05, 2012, 12:51:27 PM by DeBaas »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows

3.- The host had installed
python-qt4-core
python-qt4-gui

3.1 but not python-qt4, so when I tried to install it I got the following errors:
python-qt4:
 Depends: python-qt4-declarative (= 4.8.4)
 Depends: python-qt4-designer (= 4.8.4)
 Depends: python-qt4-help (= 4.8.4)
 Depends: python-qt4-multimedia (= 4.8.4)
 Depends: python-qt4-scripttools (= 4.8.4)
 Depends: python-qt4-test (= 4.8.4)
 Depends: python-qt4-webkit (= 4.8.4)


Need to see what you have installed now. In a terminal, as regular user, enter:

rpm -qa | grep python-qt4

Post the output.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline joejac

  • Full Member
  • ***
  • Posts: 169
Hello djohnston

This is the output:

python-qt4-core-4.8.4-1pclos2012
python-qt4-gui-4.8.4-1pclos2012

Regards
joejac

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Hmmm. You have 4.8.4-1 installed. Post all of the output of the following.

su
apt-get update
apt-get check
apt-get dist-upgrade
apt-get install python-qt4
exit



Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline joejac

  • Full Member
  • ***
  • Posts: 169
su
Password:

apt-get update
Get:1 http://ftp.heanet.ie pclinuxos/2010 release [2890B]
Get:2 http://ftp.vim.org pclinuxos/2010 release [503B]
Fetched 3393B in 0s (4831B/s)
Hit http://ftp.heanet.ie pclinuxos/2010/main pkglist
Hit http://ftp.heanet.ie pclinuxos/2010/main release
Hit http://ftp.heanet.ie pclinuxos/2010/updates pkglist
Hit http://ftp.heanet.ie pclinuxos/2010/updates release
Hit http://ftp.heanet.ie pclinuxos/2010/nonfree pkglist
Hit http://ftp.heanet.ie pclinuxos/2010/nonfree release
Hit http://ftp.heanet.ie pclinuxos/2010/kde4 pkglist
Hit http://ftp.heanet.ie pclinuxos/2010/kde4 release
Hit http://ftp.heanet.ie pclinuxos/2010/games pkglist
Hit http://ftp.heanet.ie pclinuxos/2010/games release
Hit http://ftp.vim.org pclinuxos/2010/megagames pkglist
Hit http://ftp.heanet.ie pclinuxos/2010/xfce4 pkglist
Hit http://ftp.heanet.ie pclinuxos/2010/xfce4 release
Hit http://ftp.vim.org pclinuxos/2010/megagames release
Reading Package Lists... Done                 
Building Dependency Tree... Done

apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done

apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.

apt-get install python-qt4
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or that some of the repositories
in use are in an inconsistent state at the moment.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  python-qt4: Depends: python-qt4-declarative (= 4.8.4)
              Depends: python-qt4-designer (= 4.8.4)
              Depends: python-qt4-help (= 4.8.4)
              Depends: python-qt4-multimedia (= 4.8.4)
              Depends: python-qt4-scripttools (= 4.8.4)
              Depends: python-qt4-test (= 4.8.4)
              Depends: python-qt4-webkit (= 4.8.4)
E: Broken packages

exit
exit
 
Thanks djohnston
joejac

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Try this:

su
apt-get update
apt-get dist-upgrade
apt-get --fix-broken install python-qt4-declarative
exit


Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline joejac

  • Full Member
  • ***
  • Posts: 169
apt-get update
Get:1 http://ftp.heanet.ie pclinuxos/2010 release [2890B]
Get:2 http://ftp.vim.org pclinuxos/2010 release [503B]
Fetched 3393B in 1s (2903B/s)
Hit http://ftp.vim.org pclinuxos/2010/megagames pkglist
Get:1 http://ftp.heanet.ie pclinuxos/2010/main pkglist [2841kB]
Hit http://ftp.vim.org pclinuxos/2010/megagames release               
Get:2 http://ftp.heanet.ie pclinuxos/2010/main release [161B]                 
Get:3 http://ftp.heanet.ie pclinuxos/2010/updates pkglist [213kB]             
Get:4 http://ftp.heanet.ie pclinuxos/2010/updates release [161B]               
Get:5 http://ftp.heanet.ie pclinuxos/2010/nonfree pkglist [55.8kB]             
Get:6 http://ftp.heanet.ie pclinuxos/2010/nonfree release [161B]               
Get:7 http://ftp.heanet.ie pclinuxos/2010/kde4 pkglist [165kB]                 
Get:8 http://ftp.heanet.ie pclinuxos/2010/kde4 release [158B]                 
Get:9 http://ftp.heanet.ie pclinuxos/2010/games pkglist [50.5kB]               
Get:10 http://ftp.heanet.ie pclinuxos/2010/games release [159B]               
Get:11 http://ftp.heanet.ie pclinuxos/2010/xfce4 pkglist [46.7kB]             
Get:12 http://ftp.heanet.ie pclinuxos/2010/xfce4 release [158B]               
Fetched 3373kB in 1m59s (28.3kB/s)                                             
Reading Package Lists... Done
Building Dependency Tree... Done

apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 upgraded, 0 newly installed, 0 removed and 0 not upgraded.

apt-get --fix-broken install python-qt4-declarative
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or that some of the repositories
in use are in an inconsistent state at the moment.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  python-qt4-declarative: Depends: libQtDeclarative.so.4
E: Broken packages

Thanks
joejac

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows

The following packages have unmet dependencies:
  python-qt4-declarative: Depends: libQtDeclarative.so.4
E: Broken packages


Man, this just keeps getting more tangled, doesn't it? Try this. Open Synaptic. Click Reload, Mark All Upgrades, Apply if there are any upgrades. Next, do a search for declarative and mark libQtDeclarative for upgrade or installation, whichever applies. What does that get?

You've got the dependency chain out of whack somewhere, but I'm not sure where. Is printing still working on your Linux guest?

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378