[Bug 440889] Re: software-center crashed with ImportError in /usr/lib/python2.7/bsddb/__init__.py: No module named _bsddb

Charles Durant 440889 at bugs.launchpad.net
Sat Jan 21 23:06:17 UTC 2012


I have my precise updated completely. Here is my error on this bug.

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



Python 2.7.2+ (default, Jan 20 2012, 21:07:34) 
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python2.7 in Ubuntu.
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




More information about the foundations-bugs mailing list