LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   can't run albumart-qt on Slackware 13.37 (http://www.linuxquestions.org/questions/slackware-14/can%27t-run-albumart-qt-on-slackware-13-37-a-4175424725/)

slack12ware 08-30-2012 03:41 AM

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?
.

NeoMetal 08-30-2012 07:49 PM

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

Fiver_Ni 08-31-2012 03:58 AM

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.

ponce 08-31-2012 06:19 AM

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.

yenn 08-31-2012 07:34 AM

Quote:

Originally Posted by ponce (Post 4769065)
...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.

slack12ware 09-01-2012 01:42 AM

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.

slack12ware 09-01-2012 01:46 AM

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.

yenn 09-02-2012 04:56 PM

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.

slack12ware 09-18-2012 05:57 AM

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!


All times are GMT -5. The time now is 08:07 AM.