K
K
ks_ks2012-07-04 11:41:12
Python
ks_ks, 2012-07-04 11:41:12

How to properly install PyQt4 on ubuntu 10.04?

After installation, what via:
$ sudo apt-get install python-qt4
what via:

$ python configure.py
$ make
$ make install
from sorts from offsite.
It is not possible to call later: It gives an error - "QUrl not found". Meanwhile QtCore is successfully imported. The system is 64 bits, like the percentage too. Even after installation, it repeatedly gave an error of the wrong version of sip api - 8.0, against 7.1 which was needed. Mind blown, simple - with these incompatible versions and installation from sorts. Help identify what's wrong? I install this disgrace, for the subsequent opportunity to use spynner
>>> from PyQt4.QtCore import QUrl

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alukardd, 2012-07-04
@Alukardd

do not use make && make install in package ditras - here is an article for you on the topic
Import like this: from PyQt4.QtCore import QUrl
As for sip api, this is a separate package and when installing from source, you took the latest PyQt4 with the appropriate requirements, instead of You were offered a repository.

A
andreysmind, 2012-07-04
@andreysmind

I think I had something similar. that is, the symptoms are the same, only the system is Makos.
helped in the working console to execute
export VERSIONER_PYTHON_PREFER_32_BIT=yes
This is not a solution to the problem, but allows you to write and debug code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question