Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't configure pyQt

When I compile pyQt on Windows 7 it returns an error saying:

Traceback (most recent call last):
   File "configure.py", line 32, in <module>
       import sipconfig
ImportError: No module named sipconfig

I have configured sip but the error still occurs. Can anyone help?

like image 769
Python Kid Avatar asked Aug 07 '12 08:08

Python Kid


2 Answers

The same happened to me on OSX.

As @Janne Karila suggested, you need to download and build SIP first. In the extracted sip source folder issue these commands in a terminal:

python configure.py
make
sudo make install

After that (in case it succeeds) you should be able to build PyQt in his folder using the same 3 commands.

like image 95
Attila Fulop Avatar answered Nov 06 '22 15:11

Attila Fulop


When building sip, try using sudo so you can write the files to the /System directory:

sudo python configure.py
sudo make
sudo make install

I had same issue, then looked at the install directories and noticed files where not there, so I used sudo and successfully built it. Got PyQt built as well.

like image 1
Mauricio S. Avatar answered Nov 06 '22 15:11

Mauricio S.