Jump to content

Problem installing pyqt


Recommended Posts

I'm trying to install pyqt so that I can get the Liquid Weather theme for superkaramba, but I get the following error:

 

[root@localhost scythe]# urpmi pyqt
Some requested packages cannot be installed:
PyQt-devel-3.15.1-4mdk.x86_64 (due to unsatisfied PyQt[== 3.15.1])
Continue installation anyway? (Y/n) n

 

I found this site on Google where someone else had the same problem (albeit with i586 architecture instead of my x86_64) and they couldn't find a solution. Any ideas?

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

I got this when I installed python-qt:

 

[root@localhost scythe]# urpmi python-qt
One of the following packages is needed:
1- glibc-devel-2.4-7mdv2007.0.x86_64 : Header and object files for development using standard C libraries (to install)
2- uClibc-devel-0.9.28-4mdv2007.0.x86_64 : Development files for uClibc (to install)
What is your choice? (1-2) 2
The following packages can't be installed because they depend on packages
that are older than the installed ones:
glibc-devel-2.4-7mdv2007.0
gcc-4.1.1-3mdk
lib64qt3-devel-3.3.7-2.mdv2007.0.mde
uClibc-devel-0.9.28-4mdv2007.0
lib64qassistantclient1-3.3.7-2.mdv2007.0.mde
lib64xrender1-devel-0.9.1-3mdv2007.0
lib64x11_6-devel-1.0.3-2.1mdv2007.0
python-qt-3.5.4-1mdv2007.0
Continue installation anyway? (Y/n)
To satisfy dependencies, the following packages are going to be installed:
lib64qscintilla6-1.6-6mdv2007.0.x86_64
lib64xau6-devel-1.0.2-1mdv2007.0.x86_64
lib64xdmcp6-devel-1.0.1-2mdv2007.0.x86_64
qscintilla-translations-1.6-6mdv2007.0.x86_64
x11-proto-devel-1.0.3-1mdv2007.0.x86_64
Proceed with the installation of the 5 packages? (5 MB) (Y/n)

installing lib64qscintilla6-1.6-6mdv2007.0.x86_64.rpm lib64xdmcp6-devel-1.0.1-2mdv2007.0.x86_64.rpm x11-proto-devel-1.0.3-1mdv2007.0.x86_64.rpm qscintilla-translations-1.6-6mdv2007.0.x86_64.rpm lib64xau6-devel-1.0.2-1mdv2007.0.x86_64.rpm from //var/ftp/pub/Mandrivalinux/media/main64
Preparing...					 #############################################
  1/5: x11-proto-devel	   #############################################
  2/5: qscintilla-translations#############################################
  3/5: lib64qscintilla6	  #############################################
  4/5: lib64xdmcp6-devel	 #############################################
  5/5: lib64xau6-devel	   #############################################
[root@localhost scythe]#
[root@localhost scythe]# urpmi pyqt
Some requested packages cannot be installed:
PyQt-devel-3.15.1-4mdk.x86_64 (due to unsatisfied PyQt[== 3.15.1])
Continue installation anyway? (Y/n)
[root@localhost scythe]#

So I'm pretty much back where I started, unless python-qt actually did install correctly even with the old dependencies.

Link to comment
Share on other sites

I didn't notice that before, but it seems that the pyqt version in the repositories require PyQt[== 3.15.1], not PyQt[>= 3.15.1]. So it leads me to think You'll have to try searching for a newer version of pyqt, compatible with python Qt bindings 3.5.4. Maybe You'll have to build it from source, which can You get from here i.e.

 

Hope this help. Please leave me a note how it went after finishing, as I'm curious myself.

Link to comment
Share on other sites

I would guess that you don't actually need pyqt-devel, you just need python-qt. Unfortunately when you say "urpmi pyqt" it guesses that the package you really want is pyqt-devel because the name is more similar.

 

So the real problem is why it refused to install python-qt. I have it installed but I can't remember how I did it, it was a while ago. I'm pretty sure though that if it had asked me whether to get "Header and object files for development using standard C libraries" or "Development files for uClibc" then I would definitely have chosen the first one (standard) rather than the second (something I've never heard of).

Link to comment
Share on other sites

I didn't notice that before, but it seems that the pyqt version in the repositories require PyQt[== 3.15.1], not PyQt[>= 3.15.1]. So it leads me to think You'll have to try searching for a newer version of pyqt, compatible with python Qt bindings 3.5.4. Maybe You'll have to build it from source, which can You get from here i.e.

 

Hope this help. Please leave me a note how it went after finishing, as I'm curious myself.

Ok, so I downloaded the source package you linked. The I moved it to my /etc folder and proceeded to install as per the README. It said to do

 

#python configure.py

 

To start the configuration, but it gives me this:

[root@localhost PyQt-x11-gpl-4.1.1]# python configure.py
Traceback (most recent call last):
 File "configure.py", line 30, in ?
import sipconfig
ImportError: No module named sipconfig
[root@localhost PyQt-x11-gpl-4.1.1]#

More than likely this is because of something I overlooked completely because I have almost no experience installing from source. What do I do now?

Link to comment
Share on other sites

For now I'm away from home, and I don't have access to my Mandriva. But I have some suggestions. First tell me what Qt version are You using? Is it 3 or 4? I bet it's 3, but post what You get when typing in console

 

rpm -qa | grep qt

 

I'm asking because I gave You the link to PyQt v4, which supports only Qt v4. PyQt v3 supports Qt v3 and earlier, so probably You need this one, but You'll have to check. Sorry for this, if I gave You incorrect link :oops:Here You have a link for v.3 sources.

And one more thing. Before compiling PyQt on my Mandriva 2007 Free, I had to compile SIP first.

Link to comment
Share on other sites

This is what I get. Looks like I do indeed have Qt3 isntalled.

 

[root@localhost scythe]# rpm -qa | grep qt
lib64qt3support4-4.1.4-12.1mdv2007.0
lib64qt3-3.3.7-2.mdv2007.0.mde
lib64qtcore4-4.1.4-12.1mdv2007.0
lib64avahi-qt3_1-0.6.13-4.2mdv2007.0
lib64qtxml4-4.1.4-12.1mdv2007.0
qt3-3.3.7-2.mdv2007.0.mde
lib64qtsql4-4.1.4-12.1mdv2007.0
qt4-accessibility-plugin-lib64-4.1.4-12mdv2007.0
lib64dbus-qt-1_1-0.70-1mdv2007.0
pinentry-qt-0.7.2-6mdv2007.0
lib64qtgui4-4.1.4-12.1mdv2007.0
lib64qtdesigner1-4.1.4-12.1mdv2007.0
lib64poppler-qt1-0.5.3-5.1mdv2007.0
qt4-common-4.1.4-12.1mdv2007.0
lib64qtnetwork4-4.1.4-12.1mdv2007.0
[root@localhost scythe]#

 

Should I install Qt4 or just use PyQt3?

Link to comment
Share on other sites

I have to admit I don't understand why You have i.e lib64qt3 along with

lib64qtcore4... I rather expected You would have Your output something like this

 

lib64avahi-qt3_1-0.6.13-3mdv2007.0 
lib64avahi-qt3_1-devel-0.6.13-3mdv2007.0 
lib64dbus-qt-1_1-0.70-1mdv2007.0 
libqt3-3.3.6-18mdv2007.0 
lib64qt3-3.3.6-18mdv2007.0 
qt3-common-3.3.6-18mdv2007.0 
lib64poppler-qt1-0.5.3-5mdv2007.0 
pinentry-qt-0.7.2-5mdv2007.0 
lib64qt3-devel-3.3.6-18mdv2007.0 
aqbanking-qt3-2.2.1-1mdv2007.0

 

Try compiling SIP first, and then PyQt v4. If that fails, try with PyQt v3. I don't know where this will lead to :unsure: , but You can try. Maybe You'll have more luck this time.

Edited by zibi1981
Link to comment
Share on other sites

Ok, I'm attempting to compile SIP. This is what I get in the Konsole:

 

 [root@localhost sip-4.5.2]# python configure.py
This is SIP 4.5.2 for Python 2.4.3 on linux2.
The SIP code generator will be installed in /usr/bin.
The SIP module will be installed in /usr/lib64/python2.4/site-packages.
The SIP header file will be installed in /usr/include/python2.4.
The default directory to install .sip files in is /usr/share/sip.
The platform/compiler configuration is linux-g++.
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
[root@localhost sip-4.5.2]# make
make[1]: Entering directory `/etc/sip-4.5.2/sipgen'
gcc -c -pipe -O2 -w -I. -o main.o main.c
make[1]: gcc: Command not found
make[1]: *** [main.o] Error 127
make[1]: Leaving directory `/etc/sip-4.5.2/sipgen'
make: *** [all] Error 2

 

What am I doing wrong?

Link to comment
Share on other sites

I didn't have any problems with compiling SIP on my Mandriva. Weird. Do You have latest gcc version installed? Type gcc --version in console and paste here the output. You can also try locating it with

 

rpm -qa | grep gcc

 

If You find out that You don't have it, then install gcc first with

 

urpmi gcc

 

and then try to compile SIP an PyQt.

Link to comment
Share on other sites

Oddly enough, this is what I get:

 

[scythe@localhost ~]$ su
Password:
[root@localhost scythe]# rpm -qa | grep gcc
libgcc1-4.1.1-3mdk
gcc-cpp-4.1.1-3mdk
[root@localhost scythe]# gcc --version
bash: gcc: command not found
[root@localhost scythe]# urpmi gcc
The following packages can't be installed because they depend on packages
that are older than the installed ones:
glibc-devel-2.4-7mdv2007.0
gcc-4.1.1-3mdk
Continue installation anyway? (Y/n) n
[root@localhost scythe]#

Apparently GCC is already installed but not recognized? I tried to install ntfs-3g earlier today and it wouldn't let me because there was no GCC. This is just blatantly weird.

 

I think I'm going to try to reinstall from a freshly downloaded disk. Maybe that'll solve this and a couple other problems I'm having. Unless you have another suggestion :wacko:

Link to comment
Share on other sites

Can You check what version of gcc is available in Your repositories?

 

urpmq -i gcc

 

And also what version of make have You?

 

make --version

 

Maybe before reinstalling Mandriva You should try reinstalling gcc...

Link to comment
Share on other sites

Here's what I get with those commands:

[root@localhost scythe]# urpmq -i gcc
Name		: gcc
Version	 : 4.1.1
Release	 : 3mdk
Group	   : Development/C
Size		: 14184045					 Architecture: x86_64
Source RPM  : gcc-4.1.1-3mdk.src.rpm		 Build Host: ramanujan.mandriva.com
Packager	: Gwenole Beauchesne <gbeauchesne@mandriva.com>
URL		 : http://gcc.gnu.org/
Summary	 : GNU Compiler Collection
Description :
A compiler aimed at integrating all the optimizations and features
necessary for a high-performance and stable development environment.
This package is required for all other GCC compilers, namely C++,
Fortran 95, Objective C, Java and Ada 95.

If you have multiple versions of GCC installed on your system, it is
preferred to type "gcc-$(gcc4.1-version)" (without double quotes) in
order to use the GNU C compiler version 4.1.1.
Name		: gcc
Version	 : 4.1.1
Release	 : 3mdk
Group	   : Development/C
Size		: 14184045					 Architecture: x86_64
Source RPM  : gcc-4.1.1-3mdk.src.rpm		 Build Host: ramanujan.mandriva.com
Packager	: Gwenole Beauchesne <gbeauchesne@mandriva.com>
URL		 : http://gcc.gnu.org/
Summary	 : GNU Compiler Collection
Description :
A compiler aimed at integrating all the optimizations and features
necessary for a high-performance and stable development environment.
This package is required for all other GCC compilers, namely C++,
Fortran 95, Objective C, Java and Ada 95.

If you have multiple versions of GCC installed on your system, it is
preferred to type "gcc-$(gcc4.1-version)" (without double quotes) in
order to use the GNU C compiler version 4.1.1.
[root@localhost scythe]# make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for x86_64-mandriva-linux-gnu

 

I was planning on reinstalling Mandriva anyway because I've got a weird bug with KDE and I probably installed a few RPMs wrong. Some dependencies are screwed up and it's probably just easier to start from scratch. But if this crops up again, it wouldn't hurt knowing how to fix it :)

Link to comment
Share on other sites

So You seem to have both tools, gcc and make. I don't know what's wrong. Maybe it's because of Your processors architecture? I read many complains from people using 64-bit OSes. Many things that work in 32-bits, doesn't necessarily in 64... We shall see after You reinstall Your system.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...