trouble with debian sid (11.5)

Help
Indech
2006-08-22
2013-05-14
  • Indech

    Indech - 2006-08-22

    Installing gourmet 11.5 works fine.  But when I run it gives a database connection failed with:

      File "/usr/bin/gourmet", line 35, in ?
        gourmet.GourmetRecipeManager.startGUI()
      File "/usr/share/gourmet/GourmetRecipeManager.py", line 1356, in startGUI
        r=RecGui(splash_label=splash.label)
      File "/usr/share/gourmet/GourmetRecipeManager.py", line 161, in __init__
        self.init_recipes()
      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__
        self.initialize_from_defaults()
      File "/usr/share/gourmet/keymanager.py", line 37, in initialize_from_defaults
        self.rm.add_ing_to_keydic(i,key)
      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'

    thoughts?

     
    • tom

      tom - 2006-08-22

      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

       
    • Indech

      Indech - 2006-08-23

      That solved it.  Debian currently defaults to python 2.3.5, so I'm guessing rsplit was added in 2.4.x

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks