LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-27-2009, 06:28 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
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
 
Old 12-27-2009, 07:03 PM   #2
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 292

Rep: Reputation: 75
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.

Last edited by larryhaja; 12-27-2009 at 07:27 PM.
 
1 members found this post helpful.
Old 12-28-2009, 07:52 AM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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
 
Old 12-28-2009, 04:02 PM   #4
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
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

Last edited by Alexvader; 12-28-2009 at 04:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackbuild of Scilab 5.1 fails under Slackware64 13... is this reproducible...?? Alexvader Slackware 21 11-29-2009 02:29 PM
Porting SlackBuild of Scilab from Slackware 12 to Slackware64 13 Alexvader Slackware 20 11-15-2009 09:20 PM
For the Krusader fans on slackware64 slackbuild ROXR Slackware 0 07-20-2009 06:03 PM
Kmymoney2 Slackware64 Sbo Slackbuild Error AlleyTrotter Slackware 4 07-05-2009 10:10 PM


All times are GMT -5. The time now is 10:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration