Installing gourmet 11.5 works fine. But when I run it gives a database connection failed with:
File "/usr/bin/gourmet", line 35, in ?
File "/usr/share/gourmet/GourmetRecipeManager.py", line 1356, in startGUI
File "/usr/share/gourmet/GourmetRecipeManager.py", line 161, in __init__
File "/usr/share/gourmet/GourmetRecipeManager.py", line 439, in init_recipes
self.rd = recipeManager.RecipeManager(**recipeManager.dbargs)
File "/usr/share/gourmet/backends/sqlite_db.py", line 78, in __init__
self.km = keymanager.KeyManager(rm=self)
File "/usr/share/gourmet/keymanager.py", line 31, in __init__
File "/usr/share/gourmet/keymanager.py", line 37, in initialize_from_defaults
File "/usr/share/gourmet/backends/rdatabase.py", line 811, in add_ing_to_keydic
for w in item.rsplit():
AttributeError: 'str' object has no attribute 'rsplit'
Odd -- this appears to be a python versioning issue -- I don't know when rsplit was introduced, but apparently not until after whatever version you have. I just changed rsplit -> split in the sourcecode -- I'm not sure why I used rsplit anyway as in this case it should make no difference. If you want to change it yourself rather than re-download all the source, there are only two instances, in src/lib/backends/rdatabase.py at lines 811 and 828
That solved it. Debian currently defaults to python 2.3.5, so I'm guessing rsplit was added in 2.4.x
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.