You are not logged in.
Pages: 1
Hi!
I just made a system update, and guidance-power-manager (v 4.1.2-2 after update) is now refusing to start.
shin@bagienny ~ $ guidance-power-manager
Traceback (most recent call last):
File "/usr/bin/guidance-power-manager", line 28, in <module>
from PyKDE4.kdecore import KAboutData, KCmdLineArgs, KConfig, i18n, i18nc, i18np, ki18n, ki18nc, KGlobal, KStandardDirs, KLocalizedString
ImportError: Bad magic number in /usr/lib/python2.5/site-packages/PyQt4/__init__.pyc
Any ideas? I've tried reinstalling PyQt, but it didn't help.
Cheers.
Offline
OK, I've figured that system uses Python 2.6, but running guidance gives error
/usr/lib/python2.5/site-packages/PyQt4/__init__.pyc
So it's possibly a version mismatch error, but how to fix this issue?
Offline
What arch are you using and what version of pyqt? Looking at pyqt-4.4.3-2 on i686, files are in /usr/lib/python2.6
Offline
I just removed /usr/lib/python/2.5 directory, and it's working again
Thanks anyway, cheers!
Offline
I have the same problem with another python program:
Traceback (most recent call last):
File "/usr/bin/picard", line 2, in <module>
from picard.tagger import main; main('/usr/share/locale', True)
File "/usr/lib/python2.6/site-packages/picard/tagger.py", line 21, in <module>
from PyQt4 import QtGui, QtCore
ImportError: Bad magic number in /usr/lib/python2.5/site-packages/PyQt4/__init__.pyc
The problem seems to be, that PyQt4 is completely gone in 2.5, but the compiled version of __init__.py is stil there. How is this dealt with normally in python package updates?
fix:
I just delete the PyQt4 directory from the 2.5 tree, but there might be something like a bug in some package installation routine of PyQt4.
I made a bug report: http://bugs.archlinux.org/task/12004
EDIT:
I didn't want to remove the whole 2.5 tree, because I still have packages in there, like pacupdate.
Last edited by JonnyJD (2008-11-05 17:37:31)
Offline
You can try moving /usr/lib/python/2.5/site-packages/PyQt4 to different location (just in case).
AFAIK your python2.5 packages won't work against python2.6, so...
Offline
There is only __init__.pyc in there, so I can just delete it.
The compiled files will not work, but why should the scripts stop to work? Python is a http://en.wikipedia.org/wiki/Dynamic_language
In fact: pacupdate is running fine.
EDIT:
pacupdate was update and is now in the 2.6 tree. No .pyc was left in the old tree
Last edited by JonnyJD (2008-11-06 01:52:43)
Offline
Saw an update today for guidance-power-manager but it still errors out.
I installed powerdevil from AUR and it works quite OK, it just lacks a systray icon
Offline
Not to worry for much longer, PowerDevil in 4.2 Trunk uses the Battery Monitor plasmoid
Dylon
Offline
Pages: 1