Summary: | Gourmet Recipe Manager crashes on startup with TypeError: Boolean value of this clause is not defined | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ben Scanlon <benscanlon> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED FIXED | ||
Severity: | critical | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Should fix the bug in gourmet |
Description
Ben Scanlon
2010-04-27 23:53:22 UTC
Try: emerge gtkspell-python. (In reply to comment #1) > Try: emerge gtkspell-python. > That gets rid of part of the error message but it still crashes. /usr/lib/python2.6/site-packages/gourmet/backends/db.py:294: SADeprecationWarning: The Binary type has been renamed to LargeBinary. Column('image',Binary(),**{}), /usr/lib/python2.6/site-packages/gourmet/backends/db.py:295: SADeprecationWarning: The Binary type has been renamed to LargeBinary. Column('thumb',Binary(),**{}), Traceback (most recent call last): File "/usr/bin/gourmet", line 35, in <module> gourmet.GourmetRecipeManager.startGUI() File "/usr/lib/python2.6/site-packages/gourmet/GourmetRecipeManager.py", line 709, in startGUI r=RecGui(splash_label=splash.label) File "/usr/lib/python2.6/site-packages/gourmet/GourmetRecipeManager.py", line 916, in __init__ GourmetApplication.__init__(self, splash_label=splash_label) File "/usr/lib/python2.6/site-packages/gourmet/GourmetRecipeManager.py", line 113, in __init__ self.setup_recipes() # Setup recipe database File "/usr/lib/python2.6/site-packages/gourmet/GourmetRecipeManager.py", line 203, in setup_recipes self.rd = recipeManager.default_rec_manager() File "/usr/lib/python2.6/site-packages/gourmet/recipeManager.py", line 132, in default_rec_manager return get_recipe_manager(**dbargs) File "/usr/lib/python2.6/site-packages/gourmet/recipeManager.py", line 127, in get_recipe_manager return RecipeManager(**args) File "/usr/lib/python2.6/site-packages/gourmet/backends/db.py", line 1733, in __init__ self.km = keymanager.get_keymanager(rm=self) File "/usr/lib/python2.6/site-packages/gourmet/keymanager.py", line 531, in get_keymanager return KeyManager(*args,**kwargs) File "/usr/lib/python2.6/site-packages/gourmet/keymanager.py", line 40, in __init__ self.initialize_categories() File "/usr/lib/python2.6/site-packages/gourmet/keymanager.py", line 81, in initialize_categories for k in self.rm.get_unique_values('ingkey',self.rm.ingredients_table,deleted=False): File "/usr/lib/python2.6/site-packages/gourmet/backends/db.py", line 791, in get_unique_values if not table: table=self.recipe_table File "/usr/lib/python2.6/site-packages/sqlalchemy/sql/expression.py", line 1282, in __nonzero__ raise TypeError("Boolean value of this clause is not defined") TypeError: Boolean value of this clause is not defined emerge --sync && emerge sqlalchemy should fix this. (In reply to comment #3) > emerge --sync && emerge sqlalchemy should fix this. > I did that and am still getting the same error message. Could this be a database corruption issue? In case it helps here are some program versions that I have installed. gourmet 0.15 python 3.1.2-r2 sqlalchemy 0.6.0 sqlite 3.6.23.1 Created attachment 229637 [details, diff]
Should fix the bug in gourmet
Wasn't tested.
The patch fixes the problem for me. However, gourmet still doesn't work correctly because when I try to close it, the windows disappers but the command line shows the application is still running. The warnings were caused by other bugs in gourmet and a bug in sqlalchemy. I submitted the patches to upstream: https://sourceforge.net/tracker/?func=detail&aid=2994363&group_id=66150&atid=513503 https://sourceforge.net/tracker/?func=detail&aid=2993965&group_id=108118&atid=649652 (In reply to comment #7) > The warnings were caused by other bugs in gourmet and a bug in sqlalchemy. I > submitted the patches to upstream: > > https://sourceforge.net/tracker/?func=detail&aid=2994363&group_id=66150&atid=513503 > > https://sourceforge.net/tracker/?func=detail&aid=2993965&group_id=108118&atid=649652 > Made those changes and it is working again. Thanks! |