Fedora Smolt PyQt4.QtCore import error



Computer Configuration GNU Linux Fedora using Linux Command

 

   When try to open smolt on Fedora 10, there seem to have problem with  PyQt4.QtCore. The message say that the is some problem with ImportError: No module named PyQt4.QtCore.  Try searching for solution but nothing came up.  But for now my best solution to running smolt in Fedora core is to install PyQt4... see example below

 

Error message when open smolt GUI interfce on Fedora 10:

[fedora10@fedora10 ~]$ su - -c "/usr/share/smolt/client/smoltGui.py"

Password:

Traceback (most recent call last):

  File "/usr/share/smolt/client/smoltGui.py", line 22, in <module>

    from PyQt4.QtCore import *

ImportError: No module named PyQt4.QtCore

[fedora10@fedora10 ~]$

 

Solution for ImportError: No module named PyQt4.QtCore... install PyQt4.

 

Change to root user account:

[fedora10@fedora10 ~]$ su -

Password:

[root@fedora10 ~]#

 

Start the installation process:

[root@fedora10 ~]# yum -y install PyQt4*

Loaded plugins: refresh-packagekit

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package PyQt4.i386 0:4.5.4-1.fc10 set to be updated

--> Processing Dependency: sip >= 4.8.2 for package: PyQt4-4.5.4-1.fc10.i386

---> Package PyQt4-devel.i386 0:4.5.4-1.fc10 set to be updated

--> Processing Dependency: qt4-devel for package: PyQt4-devel-4.5.4-1.fc10.i386

--> Processing Dependency: sip-devel for package: PyQt4-devel-4.5.4-1.fc10.i386

--> Running transaction check

---> Package qt-devel.i386 1:4.5.2-3.fc10 set to be updated

--> Processing Dependency: libGL-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXfixes-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libSM-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXinerama-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: xorg-x11-proto-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXt-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXcursor-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXrandr-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libICE-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libGLU-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXrender-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libX11-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXft-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libpng-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libjpeg-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXi-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

--> Processing Dependency: libXext-devel for package: 1:qt-devel-4.5.2-3.fc10.i386

---> Package sip.i386 0:4.8.2-1.fc10 set to be updated

---> Package sip-devel.i386 0:4.8.2-1.fc10 set to be updated

--> Processing Dependency: python-devel for package: sip-devel-4.8.2-1.fc10.i386

--> Running transaction check

---> Package libICE-devel.i386 0:1.0.4-4.fc10 set to be updated

---> Package libSM-devel.i386 0:1.1.0-2.fc10 set to be updated

---> Package libX11-devel.i386 0:1.1.5-4.fc10 set to be updated

--> Processing Dependency: libxcb-devel for package: libX11-devel-1.1.5-4.fc10.i386

--> Processing Dependency: libXau-devel for package: libX11-devel-1.1.5-4.fc10.i386

--> Processing Dependency: libXdmcp-devel for package: libX11-devel-1.1.5-4.fc10.i386

---> Package libXcursor-devel.i386 0:1.1.9-3.fc10 set to be updated

---> Package libXext-devel.i386 0:1.0.4-1.fc9 set to be updated

---> Package libXfixes-devel.i386 0:4.0.3-4.fc10 set to be updated

---> Package libXft-devel.i386 0:2.1.13-1.fc10 set to be updated

--> Processing Dependency: freetype-devel >= 2.1.9-2 for package: libXft-devel-2.1.13-1.fc10.i386

--> Processing Dependency: fontconfig-devel >= 2.2-1 for package: libXft-devel-2.1.13-1.fc10.i386

---> Package libXi-devel.i386 0:1.1.3-4.fc9 set to be updated

---> Package libXinerama-devel.i386 0:1.0.3-2.fc10 set to be updated

---> Package libXrandr-devel.i386 0:1.2.3-1.fc10 set to be updated

---> Package libXrender-devel.i386 0:0.9.4-3.fc9 set to be updated

---> Package libXt-devel.i386 0:1.0.5-1.fc10 set to be updated

---> Package libjpeg-devel.i386 0:6b-43.fc10 set to be updated

---> Package libpng-devel.i386 2:1.2.37-1.fc10 set to be updated

--> Processing Dependency: zlib-devel for package: 2:libpng-devel-1.2.37-1.fc10.i386

---> Package mesa-libGL-devel.i386 0:7.2-0.15.fc10 set to be updated

---> Package mesa-libGLU-devel.i386 0:7.2-0.15.fc10 set to be updated

---> Package python-devel.i386 0:2.5.2-1.fc10 set to be updated

---> Package xorg-x11-proto-devel.noarch 0:7.4-5.fc10 set to be updated

--> Running transaction check

---> Package fontconfig-devel.i386 0:2.6.0-3.fc10 set to be updated

---> Package freetype-devel.i386 0:2.3.7-3.fc10 set to be updated

---> Package libXau-devel.i386 0:1.0.4-1.fc10 set to be updated

---> Package libXdmcp-devel.i386 0:1.0.2-6.fc10 set to be updated

---> Package libxcb-devel.i386 0:1.1.91-7.fc10 set to be updated

---> Package zlib-devel.i386 0:1.2.3-18.fc9 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

 

====================================================================================================

 Package                        Arch             Version                    Repository         Size

====================================================================================================

Installing:

 PyQt4                          i386             4.5.4-1.fc10               updates           2.8 M

 PyQt4-devel                    i386             4.5.4-1.fc10               updates           7.2 M

 

Installing for dependencies:

 fontconfig-devel               i386             2.6.0-3.fc10               fedora            216 k

 freetype-devel                 i386             2.3.7-3.fc10               updates           157 k

 libICE-devel                   i386             1.0.4-4.fc10               fedora             13 k

 libSM-devel                    i386             1.1.0-2.fc10               fedora             10 k

 libX11-devel                   i386             1.1.5-4.fc10               updates           1.1 M

 libXau-devel                   i386             1.0.4-1.fc10               fedora             11 k

 libXcursor-devel               i386             1.1.9-3.fc10               fedora             19 k

 libXdmcp-devel                 i386             1.0.2-6.fc10               fedora            8.0 k

 libXext-devel                  i386             1.0.4-1.fc9                fedora             60 k

 libXfixes-devel                i386             4.0.3-4.fc10               fedora            9.8 k

 libXft-devel                   i386             2.1.13-1.fc10              fedora             17 k

 libXi-devel                    i386             1.1.3-4.fc9                fedora             52 k

 libXinerama-devel              i386             1.0.3-2.fc10               fedora            8.5 k

 libXrandr-devel                i386             1.2.3-1.fc10               fedora             17 k

 libXrender-devel               i386             0.9.4-3.fc9                fedora            9.2 k

 libXt-devel                    i386             1.0.5-1.fc10               fedora            328 k

 libjpeg-devel                  i386             6b-43.fc10                 fedora            104 k

 libpng-devel                   i386             2:1.2.37-1.fc10            updates           110 k

 libxcb-devel                   i386             1.1.91-7.fc10              updates           144 k

 mesa-libGL-devel               i386             7.2-0.15.fc10              updates           460 k

 mesa-libGLU-devel              i386             7.2-0.15.fc10              updates           101 k

 python-devel                   i386             2.5.2-1.fc10               fedora            901 k

 qt-devel                       i386             1:4.5.2-3.fc10             updates           7.6 M

 sip                            i386             4.8.2-1.fc10               updates           243 k

 sip-devel                      i386             4.8.2-1.fc10               updates            19 k

 xorg-x11-proto-devel           noarch           7.4-5.fc10                 updates           278 k

 zlib-devel                     i386             1.2.3-18.fc9               fedora             42 k

 

Transaction Summary

====================================================================================================

Install     29 Package(s)        

Update       0 Package(s)        

Remove       0 Package(s)        

 

Total download size: 22 M

 

Downloading Packages:

(1/29): PyQt4-4.5.4-1.fc10.i386.rpm                                          | 2.8 MB     00:23    

(2/29): PyQt4-devel-4.5.4-1.fc10.i386.rpm                                    | 7.2 MB     02:15    

(3/29): fontconfig-devel-2.6.0-3.fc10.i386.rpm                               | 216 kB     00:47    

(4/29): freetype-devel-2.3.7-3.fc10.i386.rpm                                 | 157 kB     00:01    

(5/29): libICE-devel-1.0.4-4.fc10.i386.rpm                                   |  13 kB     00:03    

(6/29): libSM-devel-1.1.0-2.fc10.i386.rpm                                    |  10 kB     00:01    

(7/29): libX11-devel-1.1.5-4.fc10.i386.rpm                                   | 1.1 MB     00:16    

(8/29): libXau-devel-1.0.4-1.fc10.i386.rpm                                   |  11 kB     00:00    

(9/29): libXcursor-devel-1.1.9-3.fc10.i386.rpm                               |  19 kB     00:03    

(10/29): libXdmcp-devel-1.0.2-6.fc10.i386.rpm                                | 8.0 kB     00:00    

(11/29): libXext-devel-1.0.4-1.fc9.i386.rpm                                  |  60 kB     00:06    

(12/29): libXfixes-devel-4.0.3-4.fc10.i386.rpm                               | 9.8 kB     00:02    

(13/29): libXft-devel-2.1.13-1.fc10.i386.rpm                                 |  17 kB     00:01    

(14/29): libXi-devel-1.1.3-4.fc9.i386.rpm                                    |  52 kB     00:03    

(15/29): libXinerama-devel-1.0.3-2.fc10.i386.rpm                             | 8.5 kB     00:00    

(16/29): libXrandr-devel-1.2.3-1.fc10.i386.rpm                               |  17 kB     00:01    

(17/29): libXrender-devel-0.9.4-3.fc9.i386.rpm                               | 9.2 kB     00:00    

(18/29): libXt-devel-1.0.5-1.fc10.i386.rpm                                   | 328 kB     00:53    

(19/29): libjpeg-devel-6b-43.fc10.i386.rpm                                   | 104 kB     00:54    

(20/29): libpng-devel-1.2.37-1.fc10.i386.rpm                                 | 110 kB     00:02    

(21/29): libxcb-devel-1.1.91-7.fc10.i386.rpm                                 | 144 kB     00:02    

(22/29): mesa-libGL-devel-7.2-0.15.fc10.i386.rpm                             | 460 kB     00:09    

(23/29): mesa-libGLU-devel-7.2-0.15.fc10.i386.rpm                            | 101 kB     00:01    

(24/29): python-devel-2.5.2-1.fc10.i386.rpm                                  | 901 kB     04:17    

(25/29): qt-devel-4.5.2-3.fc10.i386.rpm                                      | 7.6 MB     02:25    

(26/29): sip-4.8.2-1.fc10.i386.rpm                                           | 243 kB     00:03    

(27/29): sip-devel-4.8.2-1.fc10.i386.rpm                                     |  19 kB     00:00    

(28/29): xorg-x11-proto-devel-7.4-5.fc10.noarch.rpm                          | 278 kB     00:07    

(29/29): zlib-devel-1.2.3-18.fc9.i386.rpm                                    |  42 kB     00:05    

----------------------------------------------------------------------------------------------------

Total                                                                28 kB/s |  22 MB     13:37    

 

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : sip-4.8.2-1.fc10.i386                                                       1/29

  Installing     : zlib-devel-1.2.3-18.fc9.i386                                                2/29

  Installing     : freetype-devel-2.3.7-3.fc10.i386                                            3/29

  Installing     : fontconfig-devel-2.6.0-3.fc10.i386                                          4/29

  Installing     : 2:libpng-devel-1.2.37-1.fc10.i386                                           5/29

  Installing     : libxcb-devel-1.1.91-7.fc10.i386                                             6/29

  Installing     : libjpeg-devel-6b-43.fc10.i386                                               7/29

  Installing     : python-devel-2.5.2-1.fc10.i386                                              8/29

  Installing     : PyQt4-4.5.4-1.fc10.i386                                                     9/29

  Installing     : sip-devel-4.8.2-1.fc10.i386                                                10/29

  Installing     : mesa-libGL-devel-7.2-0.15.fc10.i386                                        11/29

  Installing     : mesa-libGLU-devel-7.2-0.15.fc10.i386                                       12/29

  Installing     : libXdmcp-devel-1.0.2-6.fc10.i386                                           13/29

  Installing     : xorg-x11-proto-devel-7.4-5.fc10.noarch                                     14/29

  Installing     : libICE-devel-1.0.4-4.fc10.i386                                             15/29

  Installing     : libSM-devel-1.1.0-2.fc10.i386                                              16/29

  Installing     : libXau-devel-1.0.4-1.fc10.i386                                             17/29

  Installing     : libX11-devel-1.1.5-4.fc10.i386                                             18/29

  Installing     : libXrender-devel-0.9.4-3.fc9.i386                                          19/29

  Installing     : libXft-devel-2.1.13-1.fc10.i386                                            20/29

  Installing     : libXext-devel-1.0.4-1.fc9.i386                                             21/29

  Installing     : libXcursor-devel-1.1.9-3.fc10.i386                                         22/29

  Installing     : libXrandr-devel-1.2.3-1.fc10.i386                                          23/29

  Installing     : libXi-devel-1.1.3-4.fc9.i386                                               24/29

  Installing     : libXfixes-devel-4.0.3-4.fc10.i386                                          25/29

  Installing     : libXinerama-devel-1.0.3-2.fc10.i386                                        26/29

  Installing     : libXt-devel-1.0.5-1.fc10.i386                                              27/29

  Installing     : 1:qt-devel-4.5.2-3.fc10.i386                                               28/29

  Installing     : PyQt4-devel-4.5.4-1.fc10.i386                                              29/29

 

Installed:

  PyQt4.i386 0:4.5.4-1.fc10                     PyQt4-devel.i386 0:4.5.4-1.fc10                   

 

Dependency Installed:

  fontconfig-devel.i386 0:2.6.0-3.fc10            freetype-devel.i386 0:2.3.7-3.fc10              

  libICE-devel.i386 0:1.0.4-4.fc10                libSM-devel.i386 0:1.1.0-2.fc10                 

  libX11-devel.i386 0:1.1.5-4.fc10                libXau-devel.i386 0:1.0.4-1.fc10                

  libXcursor-devel.i386 0:1.1.9-3.fc10            libXdmcp-devel.i386 0:1.0.2-6.fc10              

  libXext-devel.i386 0:1.0.4-1.fc9                libXfixes-devel.i386 0:4.0.3-4.fc10             

  libXft-devel.i386 0:2.1.13-1.fc10               libXi-devel.i386 0:1.1.3-4.fc9                  

  libXinerama-devel.i386 0:1.0.3-2.fc10           libXrandr-devel.i386 0:1.2.3-1.fc10             

  libXrender-devel.i386 0:0.9.4-3.fc9             libXt-devel.i386 0:1.0.5-1.fc10                 

  libjpeg-devel.i386 0:6b-43.fc10                 libpng-devel.i386 2:1.2.37-1.fc10               

  libxcb-devel.i386 0:1.1.91-7.fc10               mesa-libGL-devel.i386 0:7.2-0.15.fc10           

  mesa-libGLU-devel.i386 0:7.2-0.15.fc10          python-devel.i386 0:2.5.2-1.fc10                

  qt-devel.i386 1:4.5.2-3.fc10                    sip.i386 0:4.8.2-1.fc10                         

  sip-devel.i386 0:4.8.2-1.fc10                   xorg-x11-proto-devel.noarch 0:7.4-5.fc10        

  zlib-devel.i386 0:1.2.3-18.fc9                

 

 Complete!

[root@fedora10 ~]#

 

Everything should be working perfectly... try to execute smolt by using command below...

[fedora10@fedora10 ~]$ su - -c "/usr/share/smolt/client/smoltGui.py"

Password:  

[fedora10@fedora10 ~]$

 




0 comments: