[Bug 1246539] Re: get-distro-upgrade.py needs to be converted to python3
Craig Gowing (credativ)
1246539 at bugs.launchpad.net
Tue Jan 28 12:19:56 UTC 2014
I got this error pop up around 4 times every login on Kubuntu 13.10
amd64 (upgraded), and then at random intervals after that.
Oddly on my other Kubuntu 13.10 amd64 box (again upgraded) this module is available for python 2.7:
>>> import packagekit.backend
>>> packagekit.backend
<module 'packagekit.backend' from '/usr/lib/python2.7/dist-packages/packagekit/backend.pyc'>
The py files on my working box were in /usr/share/pyshared/packagekit and symlinked to /usr/lib/python2.7/dist-packages/packagekit.
They must have come from some old package that was removed during the upgrade but preserved the files I guess?
I tested out two possible workarounds and they both seemed to work:
1. Modify /usr/share/PackageKit/helpers/aptcc/get-distro-upgrade.py and change the first line to:
#!/usr/bin/env python3
2. Copy over /usr/share/pyshared/packagekit/ from my working box and
symlink the py files to /usr/lib/python2.7/dist-packages/packagekit/
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to packagekit in Ubuntu.
https://bugs.launchpad.net/bugs/1246539
Title:
get-distro-upgrade.py needs to be converted to python3
Status in “packagekit” package in Ubuntu:
Triaged
Status in “packagekit” source package in Trusty:
Triaged
Bug description:
The report appeared after upgrading from 13.04 to 13.10
ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: packagekit-backend-aptcc 0.8.10-2ubuntu2
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: i386
Date: Thu Oct 31 02:52:59 2013
ExecutablePath: /usr/share/PackageKit/helpers/aptcc/get-distro-upgrade.py
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
ProcCmdline: python /usr/share/PackageKit/helpers/aptcc/get-distro-upgrade.py get-distro-upgrades
ProcEnviron: LANG=en_US.UTF-8
PythonArgs: ['/usr/share/PackageKit/helpers/aptcc/get-distro-upgrade.py', 'get-distro-upgrades']
SourcePackage: packagekit
Title: get-distro-upgrade.py crashed with ImportError in __main__: No module named packagekit.backend
Traceback:
Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/aptcc/get-distro-upgrade.py", line 24, in <module>
from packagekit.backend import *
ImportError: No module named packagekit.backend
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1246539/+subscriptions
More information about the foundations-bugs
mailing list