Kirjoittaja Kisu » 03 Touko 2009, 21:58
Gourmet kertoo seuravaa. Ensin gourmetin antama ilmoitus ja sien jälkeen on päätteessä tuleva teksti.
Database Connection failed
There was a problem with the database information you gave Gourmet
Details
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gourmet/GourmetRecipeManager.py", line 462, in init_recipes
self.rd = recipeManager.RecipeManager(**recipeManager.dbargs)
File "/usr/lib/python2.6/site-packages/gourmet/backends/sqlite_db.py", line 97, in __init__
self.km = keymanager.KeyManager(rm=self)
File "/usr/lib/python2.6/site-packages/gourmet/keymanager.py", line 31, in __init__
self.initialize_from_defaults()
File "/usr/lib/python2.6/site-packages/gourmet/keymanager.py", line 37, in initialize_from_defaults
self.rm.add_ing_to_keydic(i,key)
File "/usr/lib/python2.6/site-packages/gourmet/backends/rdatabase.py", line 960, in add_ing_to_keydic
row = self.fetch_one(self.ikview, item=item, ingkey=key)
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 170, in fetch_one
self.execute(self.cursor,'SELECT '+', '.join(column_names)+' FROM %s '%table + where,params)
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 114, in execute
cursor.execute(sql,params)
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.
Päätteessä lukee:
/usr/lib/python2.6/site-packages/gourmet/thumbnail.py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import Image, urllib, md5, os.path, os, StringIO
Using sqlite3
Player is gourmet.sound_gnome.Player
Fixing broken ingredient-key view from earlier versions.
UPDATE FROM < 0.13.0...
Alter table
ALTER TABLE recipe ADD last_modified INTEGER
Failed to execute:
sql : ALTER TABLE recipe ADD last_modified INTEGER
params: []
Perhaps the table already existed.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 59, in add_column_to_table
'ALTER TABLE %(table)s ADD %(colname)s %(typ)s'%locals()
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 114, in execute
cursor.execute(sql,params)
OperationalError: duplicate column name: last_modified
Fearlessly charging onward...
Alter table
ALTER TABLE recipe ADD recipe_hash VARCHAR(32)
Failed to execute:
sql : ALTER TABLE recipe ADD recipe_hash VARCHAR(32)
params: []
Perhaps the table already existed.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 59, in add_column_to_table
'ALTER TABLE %(table)s ADD %(colname)s %(typ)s'%locals()
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 114, in execute
cursor.execute(sql,params)
OperationalError: duplicate column name: recipe_hash
Fearlessly charging onward...
Alter table
ALTER TABLE recipe ADD ingredient_hash VARCHAR(32)
Failed to execute:
sql : ALTER TABLE recipe ADD ingredient_hash VARCHAR(32)
params: []
Perhaps the table already existed.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 59, in add_column_to_table
'ALTER TABLE %(table)s ADD %(colname)s %(typ)s'%locals()
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 114, in execute
cursor.execute(sql,params)
OperationalError: duplicate column name: ingredient_hash
Fearlessly charging onward...
Alter table
ALTER TABLE recipe ADD link text
Failed to execute:
sql : ALTER TABLE recipe ADD link text
params: []
Perhaps the table already existed.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 59, in add_column_to_table
'ALTER TABLE %(table)s ADD %(colname)s %(typ)s'%locals()
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 114, in execute
cursor.execute(sql,params)
OperationalError: duplicate column name: link
Fearlessly charging onward...
Searching for links in old recipe fields...
Failed to execute:
sql : SELECT rowid, word, item, ingkey, count, rowid FROM keylookup where item == ? AND ingkey == ?
params: ['jalape\xc3\xb1o pepper', 'pepper, jalape\xc3\xb1o']
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", line1528, in startGUI
r=RecGui(splash_label=splash.label)
File "/usr/lib/python2.6/site-packages/gourmet/GourmetRecipeManager.py", line169, in __init__
self.init_recipes()
File "/usr/lib/python2.6/site-packages/gourmet/GourmetRecipeManager.py", line462, in init_recipes
self.rd = recipeManager.RecipeManager(**recipeManager.dbargs)
File "/usr/lib/python2.6/site-packages/gourmet/backends/sqlite_db.py", line 97, in __init__
self.km = keymanager.KeyManager(rm=self)
File "/usr/lib/python2.6/site-packages/gourmet/keymanager.py", line 31, in __init__
self.initialize_from_defaults()
File "/usr/lib/python2.6/site-packages/gourmet/keymanager.py", line 37, in initialize_from_defaults
self.rm.add_ing_to_keydic(i,key)
File "/usr/lib/python2.6/site-packages/gourmet/backends/rdatabase.py", line 960, in add_ing_to_keydic
row = self.fetch_one(self.ikview, item=item, ingkey=key)
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 170,in fetch_one
self.execute(self.cursor,'SELECT '+', '.join(column_names)+' FROM %s '%table + where,params)
File "/usr/lib/python2.6/site-packages/gourmet/backends/sql_db.py", line 114,in execute
cursor.execute(sql,params)
sqlite3.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.