python applications fail due to library problem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I have a version of python in /usr/local.
When /usr/local is mounted during login, a number of applications do not appear in my taskbar, and fail with bizarre messages when requested from system settings.
Two that really matter are guidance and the power manager (battery monitor) (Actually, I think these are the same, but I'm not quite sure).
It appears that while the (some?) kde python applications correctly use /usr/bin/python, they are nonetheless picking up the python site-library from /usr/local
Investigating with guidance shows the following error when run from the command-line
./guidance-
bnl@sstdlbnl:
Traceback (most recent call last):
File "/var/lib/
import apport.report, apport.fileutils
File "/var/lib/
from apport.report import Report
File "/var/lib/
from xml.parsers.expat import ExpatError
File "/usr/local/
from pyexpat import *
ImportError: /usr/local/
Original exception was:
Traceback (most recent call last):
File "/usr/share/
import dbus
File "/var/lib/
from dbus._dbus import Bus, SystemBus, SessionBus, StarterBus, Interface
File "/var/lib/
from dbus.proxies import ProxyObject, BUS_DAEMON_NAME, BUS_DAEMON_PATH, \
File "/var/lib/
from dbus._expat_
File "/var/lib/
from xml.parsers.expat import ExpatError, ParserCreate
File "/usr/local/
from pyexpat import *
ImportError: /usr/local/
Sorry, I should have said version: kubuntu feisty release.
(And the title should have had python in it, but I can't change that ... sorry)