Bug 633521 - [abrt] griffith-0.10-2.fc14: expression.py:1296:__nonzero__:TypeError: Boolean value of this clause is not defined
Summary: [abrt] griffith-0.10-2.fc14: expression.py:1296:__nonzero__:TypeError: Boolea...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: griffith
Version: 14
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Narasimhan
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cb283bb8
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-13 21:38 UTC by Christian Jann
Modified: 2011-03-31 20:05 UTC (History)
0 users

Fixed In Version: griffith-0.12.1-2.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-31 20:05:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (979 bytes, text/plain)
2010-09-13 21:38 UTC, Christian Jann
no flags Details

Description Christian Jann 2010-09-13 21:38:00 UTC
abrt version: 1.1.13
architecture: x86_64
cmdline: python /usr/share/griffith/lib/griffith
comment: My first test with the Automatic Bug Reporting Tool
component: griffith
executable: /usr/share/griffith/lib/griffith
kernel: 2.6.35.4-12.fc14.x86_64
package: griffith-0.10-2.fc14
reason: expression.py:1296:__nonzero__:TypeError: Boolean value of this clause is not defined
release: Fedora release 14 (Laughlin)
time: 1284412869
uid: 1000

backtrace
-----
expression.py:1296:__nonzero__:TypeError: Boolean value of this clause is not defined

Traceback (most recent call last):
  File "/usr/share/griffith/lib/griffith", line 1168, in filter_txt
    quick_filter.change_filter(self)
  File "/usr/share/griffith/lib/quick_filter.py", line 46, in change_filter
    self.populate_treeview(statement)
  File "/usr/share/griffith/lib/griffith", line 1013, in populate_treeview
    main_treeview.populate(self, statement, where)
  File "/usr/share/griffith/lib/main_treeview.py", line 367, in populate
    if qf and not movies or isinstance(movies, Select): # if ".execute().fetchall()" not invoked on movies yet
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/expression.py", line 1296, in __nonzero__
    raise TypeError("Boolean value of this clause is not defined")
TypeError: Boolean value of this clause is not defined

Local variables in innermost frame:
self: <sqlalchemy.sql.expression.Select at 0x30059d0; Select object>

How to reproduce
-----
1. start Griffith
2. enter a search term into the edit field labeled "Filter"
3. Griffith still works and the crash window pop's up but the filter does not work

Comment 1 Christian Jann 2010-09-13 21:38:06 UTC
Created an attachment (id=447054)
File: backtrace

Comment 2 Fedora Admin XMLRPC Client 2011-03-11 13:59:07 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Narasimhan 2011-03-21 11:05:14 UTC
This bug #676195 has similar backtrace. Will upgrade griffith to v0.12.1.

Comment 4 Christian Jann 2011-03-23 09:35:44 UTC
This is very nice, I've waited since the ownership change for an update because the old version of griffith crashes  instantly after startup on Fedora 15.

Comment 5 Narasimhan 2011-03-23 13:04:06 UTC
I could reproduce it in Fedora 15 and griffith-0.10-3.fc15

expression.py:1439:__nonzero__:TypeError: Boolean value of this clause is not
defined

Traceback (most recent call last):
  File "/usr/share/griffith/lib/griffith", line 266, in save_preferences
    save_preferences(self)
  File "/usr/share/griffith/lib/preferences.py", line 464, in save_preferences
    self.filter_txt(None)
  File "/usr/share/griffith/lib/griffith", line 1168, in filter_txt
    quick_filter.change_filter(self)
  File "/usr/share/griffith/lib/quick_filter.py", line 46, in change_filter
    self.populate_treeview(statement)
  File "/usr/share/griffith/lib/griffith", line 1013, in populate_treeview
    main_treeview.populate(self, statement, where)
  File "/usr/share/griffith/lib/main_treeview.py", line 367, in populate
    if qf and not movies or isinstance(movies, Select): # if
".execute().fetchall()" not invoked on movies yet
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/expression.py", line
1439, in __nonzero__
    raise TypeError("Boolean value of this clause is not defined")
TypeError: Boolean value of this clause is not defined

Local variables in innermost frame:
self: <sqlalchemy.sql.expression.Select at 0x20f6bd0; Select object>

After upgrading to v0.12.1, the same use case does not result in a crash
reported in abrt and I don't get the trace in the console.

Comment 8 Christian Jann 2011-03-23 17:05:05 UTC
http://narasim.fedorapeople.org/griffith-0.12.1-2.fc14.noarch.rpm fixes everything

Comment 9 Fedora Update System 2011-03-23 17:30:26 UTC
griffith-0.12.1-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/griffith-0.12.1-2.fc15

Comment 10 Fedora Update System 2011-03-31 20:05:05 UTC
griffith-0.12.1-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.