LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   PyQt4 module error in SlackBuild for Slackware 12.2 under Slackware64 13... (http://www.linuxquestions.org/questions/slackware-14/pyqt4-module-error-in-slackbuild-for-slackware-12-2-under-slackware64-13-a-778374/)

Alexvader 12-27-2009 06:28 PM

PyQt4 module error in SlackBuild for Slackware 12.2 under Slackware64 13...
 
Hi Forum,

I am trying to build PyQt4.Qtcore for my Slackware64 13 box...

So I went to slackBuilds, and grabbed the tarballs...

The link for PyQt-X11 is not active, so I grebbed the sources from http://pyqwt.sourceforge.net/support/.

Anyway, edited the slackbuild to build it to x86_64, and ran it...

This error pops up... :

Code:

.........................................................
PyQt-x11-gpl-4.4.4/qpy/
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/qpydesignercustomwidgetplugin.h
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/qpydesignermembersheetextension.h
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/qpydesignercustomwidgetcollectionplugin.h
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/qpydesignercontainerextension.h
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/qpydesignerpropertysheetextension.h
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/qpydesignertaskmenuextension.h
PyQt-x11-gpl-4.4.4/qpy/QtDesigner/qpydesigner.pro
PyQt-x11-gpl-4.4.4/designer/
PyQt-x11-gpl-4.4.4/designer/python/
PyQt-x11-gpl-4.4.4/designer/pluginloader.h
PyQt-x11-gpl-4.4.4/designer/python.pro-in
PyQt-x11-gpl-4.4.4/designer/pluginloader.cpp
Traceback (most recent call last):
  File "configure.py", line 43, in <module>
    import sipconfig
ImportError: No module named sipconfig
root@iskandhar:/home/alex/NewAge/SlackwareStuff/SlackSoft/SlackBuilds/PyQt4/pyqt4#


Does anyone has any Idea of what this may be...?

IMPORTANT INFO: I downgraded the version of Python to 2.5.2...
Is Python from SL 12.2 an older version than this... ?

BRGDS

Alex

larryhaja 12-27-2009 07:03 PM

Did you rebuild sip against the new (err older) Python 2.5? Sip is needed to build PyQt. On 13.0 its here.
Code:

# find /var/log/packages/ -type f | xargs grep 'sipconfig'
/var/log/packages/sip-4.9.3-i486-1:usr/lib/python2.6/site-packages/sipconfig.py

EDIT: I didn't pay close enough attention to the Slackware64 part. The above info may be irrelevant regardless of whether sip is rebuilt against Python 2.5.

Alexvader 12-28-2009 07:52 AM

Hi LarryHaja

Sip is there allright :

Quote:

/var/log/packages/sip-4.9.3-x86_64-1:usr/lib64/python2.6/site-packages/sipconfig.py
Mustn't I rebuild it for Python 2.5.2...?

The thingie is there, but fails to be found... guess in case it would live in usr/.../Python2.5/site-packages/sipconfig.py PyQt4 would build... Anyway, dunno...

Is there some harm in grabbing the SlackBuild of sip, rebuilding the package, and installpkg it with my current version of Python...?

IMHO it is the most sane way of throwing it where it is more likely to be searched for... What do you think...?

BRGDS

Alex

Alexvader 12-28-2009 04:02 PM

Hi Forum

My sipconfig.py was in usr/lib/Python2.5/site-packages/sipconfig.py...

So, to make it be in usr/lib64/Python2.5/site-packages, I removepkg Python2.5, changed the SlackBuild so that Python libraries would land in /usr/lib64, and also changed sip slackbuild so that PYTHONLIB=/usr/lib64/python2.5/site-packages.

Reinstalled "new version" of Python-2.5.2, as well as Sip...

Code:

root@iskandhar:/home/alex# ls /usr/lib64 | grep python
libboost_python.so
libboost_python.so.1.41.0
libpython2.6.so
libpython2.6.so.1.0
python2.5
python2.6
root@iskandhar:/home/alex#
]

Code:

root@iskandhar:/home/alex# ls -la /usr/lib64/python2.5/site-packages
total 272
drwxr-xr-x 19 root root  4096 2009-12-28 21:07 .
drwxr-xr-x  3 root root  4096 2009-12-28 21:07 ..
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 audiopy
drwxr-xr-x  3 root root  4096 2008-02-21 11:55 bgen
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 buildbot
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 compiler
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 faqwiz
drwxr-xr-x  3 root root  4096 2008-02-21 11:55 framer
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 freeze
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 i18n
drwxr-xr-x  3 root root  4096 2008-02-21 11:55 modulator
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 msi
drwxr-xr-x  3 root root  4096 2008-02-21 11:55 pybench
drwxr-xr-x  3 root root  4096 2008-02-21 11:55 pynche
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 scripts
-rwxr-xr-x  1 root root 95552 2009-12-28 21:07 sip.so
-rw-r--r--  1 root root 86645 2009-12-28 21:07 sipconfig.py
-rw-r--r--  1 root root  3332 2009-12-28 21:07 sipdistutils.py
drwxr-xr-x  3 root root  4096 2008-02-21 11:55 unicode
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 versioncheck
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 webchecker
drwxr-xr-x  2 root root  4096 2008-02-21 11:55 world
root@iskandhar:/home/alex#

The problem seems to be that the PyQt4 slackbuild for Slackware 12.2 still does not find sipconfig.py

Code:

root@iskandhar:/home/alex# python
Python 2.5.2 (r252:60911, Dec 28 2009, 20:51:21)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sipconfig.py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sipconfig.py
>>> import sipconfig
Traceback (most recent call last):
  >>> import sipconfig
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sipconfig
File "<stdin>", line 1, in <module>
ImportError: No module named sipconfig

This is the instruction in /tmp/SBo/PyQt-x11-gpl-4.5.4/configure.py tha causes the slackbuild to fail...

What can I do, besides of "shifting" site-packages from /usr/lib/python2.5 to /usr/lib64/python2.5 ( which I have already done... )

Was this a wise decision anyway...?

BRGDS

Alex


All times are GMT -5. The time now is 04:14 PM.