Comment 21 for bug 440889

Revision history for this message
J Cord (j7cord) wrote : Re: [Bug 440889] Re: software-center crashed with ImportError in /usr/lib/python2.7/bsddb/__init__.py: No module named _bsddb

Todays 2.7 python update has already fixed the problem. Apport would not
let file a bug report last night against it, when I tried to reproduce, but
is back to running fine now anyway.
Best Wishes

On Sat, Mar 10, 2012 at 9:00 AM, Scott Kitterman <email address hidden>wrote:

> Please file a new bug.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (919507).
> https://bugs.launchpad.net/bugs/440889
>
> Title:
> software-center crashed with ImportError in
> /usr/lib/python2.7/bsddb/__init__.py: No module named _bsddb
>
> Status in “python2.7” package in Ubuntu:
> Fix Released
> Status in “python2.7” source package in Precise:
> Fix Released
>
> Bug description:
> TEST CASE:
> python -c 'import bsddb'
>
> RESULT:
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
> import _bsddb
> ImportError: No module named _bsddb
>
> WORKAROUND:
> Downgrade python2.7, libpython2.7 and python2.7-minimal to a version
> prior to 2.7.2-13ubuntu1
> You can find the package in your local apt cache in
> /var/cache/apt/archives/
> Or from launchpad
> https://launchpad.net/ubuntu/precise/+source/python2.7/2.7.2-9ubuntu1 and
> select your architecture in the list of builds on the right of the page.
>
> Symptons: software-center doesn't start
>
> Traceback (most recent call last):
> File "/usr/bin/software-center", line 131, in <module>
> from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
> File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line
> 82, in <module>
> from softwarecenter.ui.gtk3.panes.installedpane import InstalledPane
> File
> "/usr/share/software-center/softwarecenter/ui/gtk3/panes/installedpane.py",
> line 36, in <module>
> from softwarecenter.ui.gtk3.models.appstore2 import (
> File
> "/usr/share/software-center/softwarecenter/ui/gtk3/models/appstore2.py",
> line 33, in <module>
> from softwarecenter.backend.reviews import get_review_loader
> File
> "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py",
> line 32, in <module>
> from bsddb import db as bdb
> File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
> import _bsddb
> ImportError: No module named _bsddb
>
> (this wasn't the original bug - but since apport decided to use this
> as the master bug I've updated the description)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/440889/+subscriptions
>