My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 58: Exception thrown when loading cache (missing bsddb)
1 person starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  JerryCasiano
Closed:  May 2011


Sign in to add a comment
 
Reported by ste...@strobe.cc, Apr 7, 2011
When launching font-manager - presumably for the first time after an upgrade from Python 2.6 to 2.7, though I can't be sure - I persistently received this traceback:

INFO    :  Verified /home/steven/.fonts.conf
INFO    :  Font Manager is now starting
Traceback (most recent call last):
  File "/usr/bin/font-manager", line 98, in <module>
    main()
  File "/usr/bin/font-manager", line 89, in main
    Main()
  File "/usr/share/font-manager/main.py", line 98, in __init__
    self.objects.load_core()
  File "/usr/share/font-manager/main.py", line 425, in load_core
    self.data['FontManager'] = core.get_manager(self.data['MainWindow'])
  File "/usr/share/font-manager/core/__init__.py", line 791, in get_manager
    MANAGER = FontManager(PROGRESS_CALLBACK, parent)
  File "/usr/share/font-manager/core/__init__.py", line 177, in __init__
    core.fonts.Sort(self, self.progress, self.parent)
  File "/usr/share/font-manager/core/fonts.py", line 290, in __init__
    self._check_cache()
  File "/usr/share/font-manager/core/fonts.py", line 344, in _check_cache
    protocol=cPickle.HIGHEST_PROTOCOL)
  File "/usr/lib64/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/usr/lib64/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/usr/lib64/python2.7/anydbm.py", line 82, in open
    mod = __import__(result)
  File "/usr/lib64/python2.7/dbhash.py", line 7, in <module>
    import bsddb
ImportError: No module named bsddb

Removing font-manager's cache cleared the error.
Apr 10, 2011
Project Member #1 JerryCasiano
Glad you got it working for you.

What OS are you using?

I'll leave this open for now and see if others run into this. Should be an easy fix.

Owner: JerryCasiano
Labels: -Priority-Medium Priority-Low
May 10, 2011
Project Member #2 JerryCasiano
I'm closing this out for now since no one else seems to be running into this.
Status: WontFix
Labels: -Type-Defect Type-Other
Jul 18, 2011
#3 huangyew...@vip.qq.com
I also got the error:
[admin@huangye ~]$ font-manager
INFO    :  Verified /home/admin/.fonts.conf
INFO    :  Font Manager is now starting
/usr/share/font-manager/main.py:381: GtkWarning: Failed to get constuct only property adjustment of FontSizeSlider with value `SizeAdjustment'
  self.builder.add_from_file(join(PACKAGE_DATA_DIR, 'font-manager.ui'))
/usr/share/font-manager/main.py:381: GtkWarning: Failed to get constuct only property adjustment of BrowseSizeSlider with value `SizeAdjustment'
  self.builder.add_from_file(join(PACKAGE_DATA_DIR, 'font-manager.ui'))
Traceback (most recent call last):
  File "/usr/bin/font-manager", line 98, in <module>
    main()
  File "/usr/bin/font-manager", line 89, in main
    Main()
  File "/usr/share/font-manager/main.py", line 98, in __init__
    self.objects.load_core()
  File "/usr/share/font-manager/main.py", line 425, in load_core
    self.data['FontManager'] = core.get_manager(self.data['MainWindow'])
  File "/usr/share/font-manager/core/__init__.py", line 791, in get_manager
    MANAGER = FontManager(PROGRESS_CALLBACK, parent)
  File "/usr/share/font-manager/core/__init__.py", line 177, in __init__
    core.fonts.Sort(self, self.progress, self.parent)
  File "/usr/share/font-manager/core/fonts.py", line 290, in __init__
    self._check_cache()
  File "/usr/share/font-manager/core/fonts.py", line 344, in _check_cache
    protocol=cPickle.HIGHEST_PROTOCOL)
  File "/usr/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
  File "/usr/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
  File "/usr/lib/python2.7/anydbm.py", line 84, in open
    mod = __import__(result)
  File "/usr/lib/python2.7/dbhash.py", line 7, in <module>
    import bsddb
  File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
ImportError: No module named _bsddb

Jul 18, 2011
#4 huangyew...@vip.qq.com
and I also solve the problem by :
rm ~/.cache/font-manager/font-manager.cache
Sign in to add a comment

Powered by Google Project Hosting