LinuxQuestions.org
Help answer threads with 0 replies.
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 08-30-2012, 03:41 AM   #1
slack12ware
Member
 
Registered: Mar 2008
Location: Deep in the Jango(Africa)
Distribution: Slackware 12, Fedora 8
Posts: 46

Rep: Reputation: 15
can't run albumart-qt on Slackware 13.37


Hi Guys,
I have managed to install albumart-1.6.6-1 on Slackware 13.37 but when I run albumart-qt on the CLI I get
.
.
$>albumart-qt
Traceback (most recent call last):
File "/usr/bin/albumart-qt", line 154, in <module>
sys.exit(runGui())
File "/usr/bin/albumart-qt", line 86, in runGui
import albumart_dialog
File "/usr/lib/albumart/albumart_dialog.py", line 27, in <module>
from qt import *
ImportError: No module named qt
.
.
I realise this message meant I Didn't have PyQT so I installed PyQt-4.8.1-i486-1.txz, but I Still get the same error message.
.

Code:
$>env | grep -i qt
.

Gives:
CPLUS_INCLUDE_PATH=/usr/lib/qt/include:/usr/lib/qt/include
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/ant/bin:/opt/blender:/usr/lib/java/bin:/usr/lib/kde4/libexec:/usr/kerberos/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin:~/bin
QT4DIR=/usr/lib/qt
QT_PLUGIN_PATH=/home/jim/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/
.
.

Tried setting
:
Code:
export PYTHON_PATH=/usr/bin/python
export QTDIR=/usr/lib/qt
.

But that didn't help either.
.

I Have:
PyQt-4.8.1-i486-1
qt3-3.3.8b-i486-1sl
qt-4.7.0_7abde40-i486-3
PyQt-4.8.1-i486-1
python-2.6.6-i486-1
.
.

Are All Installed
.

I realise its something to do with PyQt, but I have kind of run out of ideas.
Anyboy managed to get albumart working on Slack? How did you do it?
.

Last edited by slack12ware; 08-30-2012 at 03:59 AM. Reason: post too cluttered
 
Old 08-30-2012, 07:49 PM   #2
NeoMetal
Member
 
Registered: Aug 2004
Location: MD
Distribution: Slackware
Posts: 101

Rep: Reputation: 18
I think the Python module search path is PYTHONPATH with no underscore - also "export PYTHON_PATH=/usr/bin/python" looks to point to the python binary, you want to put the directory containing the PyQT installation for python to be able to find it if its installed anywhere not in the default search path

http://docs.python.org/tutorial/modu...le-search-path

Last edited by NeoMetal; 08-30-2012 at 07:51 PM.
 
Old 08-31-2012, 03:58 AM   #3
Fiver_Ni
LQ Newbie
 
Registered: Jul 2012
Posts: 3

Rep: Reputation: Disabled
Have just watched the demo for albumart-qt and it looks like it has just saved me a massive job. Thank you slack12ware for making me aware of this program. Please keep us posted on how well you are getting on.
 
Old 08-31-2012, 06:19 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,413

Rep: Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857Reputation: 857
that's an old application based on qt3 and pyqt3 (pyqt for qt3), the stable slackware got qt (version 4.x) and pyqt (for version 4.x): you should need to install pyqt3, but I think that's totally unsupported.
 
Old 08-31-2012, 07:34 AM   #5
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 153

Rep: Reputation: 21
Quote:
Originally Posted by ponce View Post
...you should need to install pyqt3, but I think that's totally unsupported.
I'd try that. Yes, it's unsupported, so it might not work, but same goes for KDE 3.5.10 (from Slack 12.2) which works like a charm on newest Slackware

This is one of many things I like on Slackware. Slack lets you install any package you want and old packages usually just works without breaking anything.
 
Old 09-01-2012, 01:42 AM   #6
slack12ware
Member
 
Registered: Mar 2008
Location: Deep in the Jango(Africa)
Distribution: Slackware 12, Fedora 8
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for for the responces NeoMetal,yenn,ponce and Fiver_Ni!
.
Fiver_Ni, Glad to have brought the app to your attention. You're welcome. Let me know if it works for you. And which distro you get it working on.
.
.
Ponce is right, the app seems to old and use pyqt3 and python-2.4 and older. So I tried installing pyqt for for Slackware 8 but that didn't help till I reaslised the New PyQt
4 doesn't even have /usr/lib/python-2.6/site-packages/qt.py , so I ripped the package open and modified to make sure it put the qt in .../python-2.6/site-packages/ ..... Sounds like a great idea right? ....WRONG!
.
The app would get past the "no module named qt but would die wiith an error like "the SIP API installed requires v8.0 while the qt module API requires v3.0" that's when I realised I have to install almost the whole old python-system and use that to get it working .
Will do that when I have some free time and Hunger for more. Punishment.
Will keep posting till I get it right.
.
Thankyou very much again Everyone! I Really appreciate it!

In the mean time any suggestions are welcome.
 
Old 09-01-2012, 01:46 AM   #7
slack12ware
Member
 
Registered: Mar 2008
Location: Deep in the Jango(Africa)
Distribution: Slackware 12, Fedora 8
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for for the responces NeoMetal,yenn,ponce and Fiver_Ni!
.
Fiver_Ni, Glad to have brought the app to your attention. You're welcome. Let me know if it works for you. And which distro you get it working on.
.
.
Ponce is right, the app seems old and to use pyqt3 and python-2.4 and older. So I tried installing pyqt for for Slackware 8 but that didn't help till I reaslised the New PyQt4 doesn't even have /usr/lib/python-2.6/site-packages/qt.py , so I ripped the package open and modified to make sure it put the qt in .../python-2.6/site-packages/ ..... Sounds like a great idea right? ....WRONG!
.
The app would get past the "no module named qt but would die wiith an error like "the SIP API installed requires v8.0 while the qt module API requires v3.0" that's when I realised I have to install almost the whole old python-system and use that to get it working .
Will do that when I have some free time and Hunger for more. Punishment.
Will keep posting till I get it right.
.
Thankyou very much again Everyone! I Really appreciate it!
In the mean time any suggestions are welcome.

Last edited by slack12ware; 09-01-2012 at 01:49 AM.
 
Old 09-02-2012, 04:56 PM   #8
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo
Posts: 153

Rep: Reputation: 21
Hi,

I was curious how to get working PyQt3 programs (and also how albumart works) on recent Slackware, so I tried few things and managed to get albumart-qt running!

Tested on Slackware 14 RC4, but I'm think it will work on Slackware 13.0 and newer releases.

Follow these steps:

1) get qt3-3.3.8d package from Trinity Slackware repository

2) Now it depends on Python version

Python 2.6
3a) get PyQt3 package from Trinity Slackware repository

Python 2.7
3b) get PyQt3 sources and compile it using the PyQt3 SlackBuild for Slackware 12.2
Code:
# when everything is in place...
$ VERSION=3.18.1 ./pyqt3.Slackbuild
4b) Install newly created PyQt3 package

5) Install all required Python modules

6) Install albumart-qt from sources

Albumart should be running now.

Note: If you use qt3-3.3.8b package from Slackware 13.0 extra/kde3-compat, albumart will complain about different versions of libpng (running and used for compilation) and it crashes pretty often with SIGSEGV. If you can, stick with Trinity qt3 package, if you can't, recompile qt3.

Last edited by yenn; 09-04-2012 at 09:33 PM. Reason: grammar correction
 
Old 09-18-2012, 05:57 AM   #9
slack12ware
Member
 
Registered: Mar 2008
Location: Deep in the Jango(Africa)
Distribution: Slackware 12, Fedora 8
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks a lot for the Details yenn!
.... And sorry about for the late reply.
Will definitely try out your solution and update this post when I get some free time.

Thanks again everyone!
 
  


Reply

Tags
slackware


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
Has anyone gotten mikogo to run under Slackware? tallship Slackware 1 11-16-2011 06:05 AM
cant get my slackware to run ? Yoshimura Slackware - Installation 4 09-07-2004 05:18 PM


All times are GMT -5. The time now is 07:16 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