You are not logged in.

#1 2008-11-03 21:36:13

lateralus
Member
Registered: 2008-10-06
Posts: 29

guidance-power-manager ceased to work

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

#2 2008-11-04 14:01:00

lateralus
Member
Registered: 2008-10-06
Posts: 29

Re: guidance-power-manager ceased to work

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

#3 2008-11-04 14:05:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,423
Website

Re: guidance-power-manager ceased to work

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

#4 2008-11-04 14:10:49

lateralus
Member
Registered: 2008-10-06
Posts: 29

Re: guidance-power-manager ceased to work

I just removed /usr/lib/python/2.5 directory, and it's working again big_smile

Thanks anyway, cheers!

Offline

#5 2008-11-05 17:35:51

JonnyJD
Member
From: Berlin
Registered: 2007-11-05
Posts: 50

Re: guidance-power-manager ceased to work

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

#6 2008-11-05 18:37:22

lateralus
Member
Registered: 2008-10-06
Posts: 29

Re: guidance-power-manager ceased to work

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

#7 2008-11-05 18:49:20

JonnyJD
Member
From: Berlin
Registered: 2007-11-05
Posts: 50

Re: guidance-power-manager ceased to work

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

#8 2008-11-07 18:37:21

Xinix
Member
Registered: 2008-03-14
Posts: 83

Re: guidance-power-manager ceased to work

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

#9 2008-11-10 01:47:51

deltaecho
Member
From: Georgia (USA)
Registered: 2008-08-06
Posts: 187

Re: guidance-power-manager ceased to work

Not to worry for much longer, PowerDevil in 4.2 Trunk uses the Battery Monitor plasmoid smile


Dylon

Offline

Board footer

Powered by FluxBB