I tried the command line "python2.6 gourmet" and received the
following. Anyone working on the code ought to be able to take this
traceback and determine what was wrong. I still only get the splash
screen.
usr/share/gourmet/gourmet/gtk_extras/thumbnail.py:1:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import Image, urllib, md5, os.path, os, StringIO
/var/lib/python-support/python2.6/sqlalchemy/util.py:7:
DeprecationWarning: the sets module is deprecated
import inspect, itertools, new, operator, sets, sys, warnings,
weakref
Loading gnomeprint failed: trying win
Loading win failed: trying lpr
Connecting to file /home/ron/.gourmet/recipes.db
Traceback (most recent call last):
File "/usr/bin/gourmet", line 35, in <module>
gourmet.GourmetRecipeManager.startGUI()
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 708,
in startGUI
r=RecGui(splash_label=splash.label)
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 912,
in __init__
GourmetApplication.__init__(self, splash_label=splash_label)
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 114,
in __init__
self.setup_shopping()
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 222,
in setup_shopping
self.sl = shopgui.ShopGui(self, conv=self.conv)
File "/usr/share/gourmet/gourmet/shopgui.py", line 29, in __init__
self.data,self.pantry=self.grabIngsFromRecs([])
File "/usr/share/gourmet/gourmet/shopgui.py", line 580, in grabIngsFromRecs
self.sh = recipeManager.DatabaseShopper(lst, self.rg.rd, conv=self.conv)
File "/usr/share/gourmet/gourmet/recipeManager.py", line 25, in __init__
shopping.Shopper.__init__(self,lst)
File "/usr/share/gourmet/gourmet/shopping.py", line 46, in __init__
self.init_orgdic()
File "/usr/share/gourmet/gourmet/recipeManager.py", line 38, in init_orgdic
self.orgdic[k]=v
File "/usr/share/gourmet/gourmet/backends/db.py", line 1816, in __setitem__
row = self.db.fetch_one(self.vw,**{self.kp:k})
File "/usr/share/gourmet/gourmet/backends/db.py", line 623, in fetch_one
return table.select(*make_simple_select_arg(criteria,table)).execute().fetchone()
File "/var/lib/python-support/python2.6/sqlalchemy/sql/expression.py",
line 1087, in execute
return e.execute_clauseelement(self, multiparams, params)
File "/var/lib/python-support/python2.6/sqlalchemy/engine/base.py",
line 1219, in execute_clauseelement
return connection.execute_clauseelement(elem, multiparams, params)
File "/var/lib/python-support/python2.6/sqlalchemy/engine/base.py",
line 895, in execute_clauseelement
return self._execute_compiled(elem.compile(dialect=self.dialect,
column_keys=keys, inline=len(params) > 1), distilled_params=params)
File "/var/lib/python-support/python2.6/sqlalchemy/engine/base.py",
line 907, in _execute_compiled
self.__execute_raw(context)
File "/var/lib/python-support/python2.6/sqlalchemy/engine/base.py",
line 916, in __execute_raw
self._cursor_execute(context.cursor, context.statement,
context.parameters[0], context=context)
File "/var/lib/python-support/python2.6/sqlalchemy/engine/base.py",
line 960, in _cursor_execute
self._handle_dbapi_exception(e, statement, parameters, cursor)
File "/var/lib/python-support/python2.6/sqlalchemy/engine/base.py",
line 942, in _handle_dbapi_exception
raise exceptions.DBAPIError.instance(statement, parameters, e,
connection_invalidated=is_disconnect)
sqlalchemy.exceptions.ProgrammingError: (ProgrammingError) You must
not use 8-bit bytestrings unless you use a text_factory that can
interpret 8-bit bytestrings (like text_factory = str). It is highly
recommended that you instead just switch your application to Unicode
strings. u'SELECT shopcats.ingkey, shopcats.shopcategory,
shopcats.position \nFROM shopcats \nWHERE shopcats.ingkey = ?'
['pepper, jalape\xc3\xb1o']
I tried the command line "python2.6 gourmet" and received the
following. Anyone working on the code ought to be able to take this
traceback and determine what was wrong. I still only get the splash
screen.
usr/share/ gourmet/ gourmet/ gtk_extras/ thumbnail. py:1: python- support/ python2. 6/sqlalchemy/ util.py: 7: .gourmet/ recipes. db GourmetRecipeMa nager.startGUI( ) gourmet/ gourmet/ GourmetRecipeMa nager.py" , line 708, splash_ label=splash. label) gourmet/ gourmet/ GourmetRecipeMa nager.py" , line 912, ication. __init_ _(self, splash_ label=splash_ label) gourmet/ gourmet/ GourmetRecipeMa nager.py" , line 114, setup_shopping( ) gourmet/ gourmet/ GourmetRecipeMa nager.py" , line 222, ShopGui( self, conv=self.conv) gourmet/ gourmet/ shopgui. py", line 29, in __init__ data,self. pantry= self.grabIngsFr omRecs( []) gourmet/ gourmet/ shopgui. py", line 580, in grabIngsFromRecs DatabaseShopper (lst, self.rg.rd, conv=self.conv) gourmet/ gourmet/ recipeManager. py", line 25, in __init__ Shopper. __init_ _(self, lst) gourmet/ gourmet/ shopping. py", line 46, in __init__ init_orgdic( ) gourmet/ gourmet/ recipeManager. py", line 38, in init_orgdic orgdic[ k]=v gourmet/ gourmet/ backends/ db.py", line 1816, in __setitem__ fetch_one( self.vw, **{self. kp:k}) gourmet/ gourmet/ backends/ db.py", line 623, in fetch_one *make_simple_ select_ arg(criteria, table)) .execute( ).fetchone( ) python- support/ python2. 6/sqlalchemy/ sql/expression. py", clauseelement( self, multiparams, params) python- support/ python2. 6/sqlalchemy/ engine/ base.py" , clauseelement execute_ clauseelement( elem, multiparams, params) python- support/ python2. 6/sqlalchemy/ engine/ base.py" , clauseelement compiled( elem.compile( dialect= self.dialect, params= params) python- support/ python2. 6/sqlalchemy/ engine/ base.py" , __execute_ raw(context) python- support/ python2. 6/sqlalchemy/ engine/ base.py" , _cursor_ execute( context. cursor, context.statement, parameters[ 0], context=context) python- support/ python2. 6/sqlalchemy/ engine/ base.py" , _handle_ dbapi_exception (e, statement, parameters, cursor) python- support/ python2. 6/sqlalchemy/ engine/ base.py" , dbapi_exception DBAPIError. instance( statement, parameters, e, invalidated= is_disconnect) exceptions. ProgrammingErro r: (ProgrammingError) You must shopcategory,
DeprecationWarning: the md5 module is deprecated; use hashlib instead
import Image, urllib, md5, os.path, os, StringIO
/var/lib/
DeprecationWarning: the sets module is deprecated
import inspect, itertools, new, operator, sets, sys, warnings,
weakref
Loading gnomeprint failed: trying win
Loading win failed: trying lpr
Connecting to file /home/ron/
Traceback (most recent call last):
File "/usr/bin/gourmet", line 35, in <module>
gourmet.
File "/usr/share/
in startGUI
r=RecGui(
File "/usr/share/
in __init__
GourmetAppl
File "/usr/share/
in __init__
self.
File "/usr/share/
in setup_shopping
self.sl = shopgui.
File "/usr/share/
self.
File "/usr/share/
self.sh = recipeManager.
File "/usr/share/
shopping.
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
row = self.db.
File "/usr/share/
return table.select(
File "/var/lib/
line 1087, in execute
return e.execute_
File "/var/lib/
line 1219, in execute_
return connection.
File "/var/lib/
line 895, in execute_
return self._execute_
column_keys=keys, inline=len(params) > 1), distilled_
File "/var/lib/
line 907, in _execute_compiled
self.
File "/var/lib/
line 916, in __execute_raw
self.
context.
File "/var/lib/
line 960, in _cursor_execute
self.
File "/var/lib/
line 942, in _handle_
raise exceptions.
connection_
sqlalchemy.
not use 8-bit bytestrings unless you use a text_factory that can
interpret 8-bit bytestrings (like text_factory = str). It is highly
recommended that you instead just switch your application to Unicode
strings. u'SELECT shopcats.ingkey, shopcats.
shopcats.position \nFROM shopcats \nWHERE shopcats.ingkey = ?'
['pepper, jalape\xc3\xb1o']