[Bug 1013276] Re: update-manager crashed with ImportError in __main__: No module named UpdateManager.UpdateManager
Barry Warsaw
1013276 at bugs.launchpad.net
Thu Jun 21 18:05:20 UTC 2012
Just to complete the circle, this probably happens because the
UpdateManager module is now only installed in the Python 3 sys.path, so
when invoked with Python 2, the module isn't found.
Does it make sense to crash with a more useful message? E.g. we could
put a sys.version test at the top of update-manager and complain loudly
if it wasn't invoked with Python 3. OTOH, maybe this is good enough.
Yes, the bug is not in Update Manager, but in whatever is invoking u-m
with the Python 2 command line.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1013276
Title:
update-manager crashed with ImportError in __main__: No module named
UpdateManager.UpdateManager
Status in “update-manager” package in Ubuntu:
Incomplete
Bug description:
update-manager crashed with ImportError in __main__: No module named
UpdateManager.UpdateManager
ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: update-manager 1:0.163
Uname: Linux 3.5.0-030500rc2-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.2.2-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Thu Jun 14 19:57:53 2012
ExecutablePath: /usr/bin/update-manager
GsettingsChanges:
b'com.ubuntu.update-manager' b'first-run' b'false'
b'com.ubuntu.update-manager' b'launch-time' b'1339692919'
b'com.ubuntu.update-manager' b'show-details' b'true'
b'com.ubuntu.update-manager' b'window-height' b'325'
b'com.ubuntu.update-manager' b'window-width' b'640'
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120609.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/update-manager
ProcEnviron:
PATH=(custom, no user)
LANG=ro_RO.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/bin/update-manager']
SourcePackage: update-manager
Title: update-manager crashed with ImportError in __main__: No module named UpdateManager.UpdateManager
Traceback:
Traceback (most recent call last):
File "/usr/bin/update-manager", line 35, in <module>
from UpdateManager.UpdateManager import UpdateManager
ImportError: No module named UpdateManager.UpdateManager
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1013276/+subscriptions
More information about the foundations-bugs
mailing list