Subject: gourmet does not bootstrap under LANG=pt_BR.UTF-8
Package: gourmet
Version: 0.15.7-1
Severity: important
*** Please type your report below this line ***
Running
rm -fR ~/.gourmet && LANG=pt_BR.UTF-8 gourmet
("rm -fR ~/.gourmet" to make sure the database isn't yet created)
it does not start up, and shows the following output:
Traceback (most recent call last):
File "/usr/bin/gourmet", line 35, in <module>
gourmet.GourmetRecipeManager.startGUI()
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line
715, in startGUI
r=RecGui(splash_label=splash.label)
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line
918, in __init__
GourmetApplication.__init__(self, splash_label=splash_label)
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line
116, in __init__
self.setup_shopping()
File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line
228, in setup_shopping
self.sl = shopgui.ShopGui()
File "/usr/share/gourmet/gourmet/shopgui.py", line 541, in __init__
ShoppingList.__init__(self)
File "/usr/share/gourmet/gourmet/shopping.py", line 266, in __init__
self.data,self.pantry=self.grabIngsFromRecs([])
File "/usr/share/gourmet/gourmet/shopping.py", line 282, in grabIngsFromRecs
return self.organize_list(self.lst)
File "/usr/share/gourmet/gourmet/shopping.py", line 285, in organize_list
self.sh = self.get_shopper(lst)
File "/usr/share/gourmet/gourmet/shopgui.py", line 571, in get_shopper
return recipeManager.DatabaseShopper(lst, self.rd)
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 37, in init_orgdic
self.orgdic.initialize(dic)
File "/usr/share/gourmet/gourmet/backends/db.py", line 2001, in initialize
self.vw.insert().execute(*dics)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/sql/expression.py",
line 1217, in execute
return e._execute_clauseelement(self, multiparams, params)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py",
line 1722, in _execute_clauseelement
return connection._execute_clauseelement(elem, multiparams, params)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py",
line 1237, in _execute_clauseelement
return self.__execute_context(context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py",
line 1268, in __execute_context
context.parameters[0], context=context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py",
line 1367, in _cursor_execute
context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/base.py",
line 1360, in _cursor_execute
context)
File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/default.py",
line 288, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.IntegrityError: (IntegrityError) shopcats.ingkey may
not be NULL u'INSERT INTO shopcats DEFAULT VALUES' ()
Please, observe that under LANG=en_US.UTF-8 it does indeed start.
The problem is related to bootstrap, since after bootstraping under
en_US locale, it works finely under pt_BR locale.
-- Locale (pt_BR.UTF-8):
LANG=pt_BR.UTF-8
LC_CTYPE="pt_BR.UTF-8"
LC_NUMERIC="pt_BR.UTF-8"
LC_TIME="pt_BR.UTF-8"
LC_COLLATE="pt_BR.UTF-8"
LC_MONETARY="pt_BR.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="pt_BR.UTF-8"
LC_NAME="pt_BR.UTF-8"
LC_ADDRESS="pt_BR.UTF-8"
LC_TELEPHONE="pt_BR.UTF-8"
LC_MEASUREMENT="pt_BR.UTF-8"
LC_IDENTIFICATION="pt_BR.UTF-8"
LC_ALL=
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=pt_BR.utf8, LC_CTYPE=pt_BR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gourmet depends on:
ii python 2.6.6-3+squeeze5 interactive high-level object-orie
ii python-central 0.6.16+nmu1 register and build utility for Pyt
ii python-glade2 2.17.0-4 GTK+ bindings: Glade support
ii python-gtk2 2.17.0-4 Python bindings for the GTK+ widge
ii python-imaging 1.1.7-2 Python Imaging Library
ii python-poppler 0.12.1-1+b1 Poppler Python bindings
ii python-reportlab 2.4-4 ReportLab library to create PDF do
ii python-sqlalchemy 0.6.3-3 SQL toolkit and Object Relational
Versions of packages gourmet recommends:
ii python-gnome2 2.28.1-1 Python bindings for the GNOME desk
ii python-gtkspell 2.25.3-7 Python bindings for the GtkSpell l
gourmet suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]