[Bug 665914] Re: ubuntu-bug: Could not import module, is a package upgrade in progress? Error: cannot import name uris (maverick)
Marcus Tomlinson
marcus.tomlinson at canonical.com
Thu Mar 5 12:58:16 UTC 2020
This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.
** Changed in: apport (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/665914
Title:
ubuntu-bug: Could not import module, is a package upgrade in progress?
Error: cannot import name uris (maverick)
Status in apport package in Ubuntu:
Incomplete
Bug description:
Binary package hint: apport
This is likely not a bug in all of maverick, but I got this after upgrading and I can't see what's not up to date on my system and could be causing this.
Yes, I realize the irony of using ubuntu-bug to report an ubuntu-bug :) (I was able to work around it)
First, I had to
echo 1.1.4 > /usr/lib/python2.6/dist-packages/wadllib/version.txt
otherwise, ubuntu-bug died with:
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1154, in get_resource_string
return self._get(self._fn(self.module_path, resource_name))
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1281, in _get
stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.6/dist-packages/wadllib/version.txt'
After that, I now get:
gandalfthegrey:~$ ubuntu-bug
Could not import module, is a package upgrade in progress? Error: cannot import name uris
gandalfthegrey:~$ strace -f -e trace=file ubuntu-bug e16
[pid 11651] stat64("/usr/lib/python2.6/dist-packages/lazr/restfulclient/authorize/lazr", 0xbfbd53e8) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/lazr/restfulclient/authorize/lazr.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/lazr/restfulclient/authorize/lazrmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/lazr/restfulclient/authorize/lazr.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/lazr/restfulclient/authorize/lazr.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 11651] stat64("/usr/lib/python2.6/dist-packages/launchpadlib/uris", 0xbfbd8848) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/launchpadlib/uris.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/launchpadlib/urismodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/launchpadlib/uris.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[pid 11651] open("/usr/lib/python2.6/dist-packages/launchpadlib/uris.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
Could not import module, is a package upgrade in progress? Error: cannot import name uris
I do have /usr/share/pyshared/launchpadlib/uris.py from python-
launchpadlib, but in the wrong place.
Force-removing and re-installing
apt-get install python-launchpadlib python-apport apport
did not help.
ii apport 1.14.1-0ubuntu8 automatically generate crash reports for debugging
ii python-apport 1.14.1-0ubuntu8 apport crash report handling library
ii python-launchpadlib 1.6.1-1 Launchpad web services client library
ii python2.6 2.6.6-5ubuntu1 An interactive high-level object-oriented language (version 2.6)
So, I had to manually create this missing symlink:
gandalfthegrey:/usr/lib/python2.6/dist-packages/launchpadlib# ln -s /usr/share/pyshared/launchpadlib/uris.py .
I'd like to say that something is wrong in my system, but I did not
delete that symlink, nor wadllib/version.txt, and re-installing the
packages does not (re-)create the missing data.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apport 1.14.1-0ubuntu8
Uname: Linux 2.6.36.0-core2smp-volpreempt-noide-hm64-20100724 i686
Architecture: i386
Date: Sun Oct 24 07:34:02 2010
PackageArchitecture: all
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.ISO-8859-1
SHELL=/bin/bash
SourcePackage: apport
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/665914/+subscriptions
More information about the foundations-bugs
mailing list