As of recipe number 765

Help
2011-06-21
2013-05-14
  • Mark Preston
    Mark Preston
    2011-06-21

    On editing my recipe #765, I can no longer edit the title to reflect the name of the recipe. The last word in the title is "BURGER" and all that GRM will accept is "BURGE". No amount of "editing" changes it. This recipe was an internet import and GRM imported all but the "instructions". I tried twice to cut and paste the 300 words into the Instruction pane, but no amount of ctrl-v or Edit-Paste would put those words there.

    Thomas, thank you again, for the software app. that always makes me happy to use it.

     
  • tom
    tom
    2011-06-22

    Very unusual. Do you see any error output if you run Gourmet from a commandline and try to reproduce? What happens if you just start a brand new recipe and try to edit?

     
  • Mark Preston
    Mark Preston
    2011-06-24

    I'm responding, as I go through the steps to add a recipe. GRM is running from the command line, in this session. The terminal shows a lot of output as I add the various parts (ingredients, instructions, servings) and I'll post that last as it's quite long and extensive.

    After I ran GRM, I selected New Recipe. I typed the name of the recipe and other info on that screen and A-OK. Next, I cut and pasted the ingredients list and that went well. Next the instructions page and that saved, too. But, when I looked in the Recipe List in the main panel (menu?), the recipe was there, but with no title listed, nor any Category, Rating, Cuisine, Source, even though I had added them to the recipe input and saved each before going on to the next, e.g., I saved

    New Recipe (edit)
    then I added the
    Ingredients
    then
    Instruction

    filling in at much detail as I could.

    What is more curious, the recipe I tried to add on the day of this post to you, NOW appears in the recipe list. It showed no title or other information in the list, but there was an obvious blank line and when I clicked and opened the recipe, there most of it was. So, I added the recipe name in, saved and now it's all there! Go Figure!

    I didn't see this before trying your idea of adding a recipe manually. If I had opened GRM and gone to "Last", I probably would not have seen this at all.

    The manually added recipe, is perfect. But when I went back to #764, I still cannot add or change the title. GRM won't accept an "r" (the last letter in Berger).

    Thomas, do you think my backed-up (exported) recipes database will be corrupted? Or how can I save/salavge my work?

    Terminal output of this session:

    mark@Lexington-19:~$ gourmet
    /usr/share/gourmet/gourmet/reccard.py:951: GtkWarning: UnitConverter: missing action UnitConverter
      main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
    /usr/share/gourmet/gourmet/reccard.py:951: GtkWarning: Undo: missing action Undo
      main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
    /usr/share/gourmet/gourmet/reccard.py:951: GtkWarning: Redo: missing action Redo
      main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
    WARNING <bound method BrowserPlugin.reset_view of <browse_recipes.BrowserPlugin instance at 0xaeeccec>> did not return args,kwargs
    /usr/share/gourmet/gourmet/GourmetRecipeManager.py:726: GtkWarning: Cut: missing action Cut
      gtk.main()
    /usr/share/gourmet/gourmet/GourmetRecipeManager.py:726: GtkWarning: Copy: missing action Copy
      gtk.main()
    /usr/share/gourmet/gourmet/GourmetRecipeManager.py:726: GtkWarning: Paste: missing action Paste
      gtk.main()
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    parse_ingredient: conv argument is now ignored
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 1146, in show
        self.update_go_menu()
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 294, in update_go_menu
        self.update_action_group()
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 286, in update_action_group
        [(action_name,None,'_'+rc.current_rec.title,
    TypeError: cannot concatenate 'str' and 'NoneType' objects
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 1146, in show
        self.update_go_menu()
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 294, in update_go_menu
        self.update_action_group()
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 286, in update_action_group
        [(action_name,None,'_'+rc.current_rec.title,
    TypeError: cannot concatenate 'str' and 'NoneType' objects
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 597, in hide
        self.reccard.hide()
      File "/usr/share/gourmet/gourmet/reccard.py", line 130, in hide
        self.rg.del_rc(self.current_rec.id)
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 236, in del_rc
        self.update_go_menu()
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 294, in update_go_menu
        self.update_action_group()
      File "/usr/share/gourmet/gourmet/GourmetRecipeManager.py", line 286, in update_action_group
        [(action_name,None,'_'+rc.current_rec.title,
    TypeError: cannot concatenate 'str' and 'NoneType' objects
    /usr/share/gourmet/gourmet/GourmetRecipeManager.py:316: GtkWarning: IA__gtk_container_foreach: assertion `GTK_IS_CONTAINER (container)' failed
      uimanager.ensure_update()
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    /usr/share/gourmet/gourmet/GourmetRecipeManager.py:726: GtkWarning: IA__gtk_container_foreach: assertion `GTK_IS_CONTAINER (container)' failed
      gtk.main()
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    WARNING <bound method BrowserPlugin.reset_view of <browse_recipes.BrowserPlugin instance at 0xaeeccec>> did not return args,kwargs
    WARNING <bound method BrowserPlugin.reset_view of <browse_recipes.BrowserPlugin instance at 0xaeeccec>> did not return args,kwargs
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/reccard.py", line 1051, in close_cb
        self.save_cb()
      File "/usr/share/gourmet/gourmet/reccard.py", line 1021, in save_cb
        newdict = m.save(newdict)
      File "/usr/share/gourmet/gourmet/reccard.py", line 1222, in save
        self.ingtree_ui.ingController.commit_ingredients()
      File "/usr/share/gourmet/gourmet/reccard.py", line 2120, in commit_ingredients
        n = commit_iter(iter,n)
      File "/usr/share/gourmet/gourmet/reccard.py", line 2091, in commit_iter
        if getattr(ing,att)==d: del d
    KeyError: 'ingkey'
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    Return exporter instance
    Connect <recipe_table_to_xml(Exporter, started -1294996624)> to show dialog when done
    emit ('completed',)
    emit ('done',)
    Ignoring sqlalchemy problem
    Traceback (most recent call last):
      File "/usr/share/gourmet/gourmet/backends/db.py", line 224, in save
        self.db.commit()
      File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/threadlocal.py", line 78, in commit
        trans = self._connections.trans.pop(-1)
    IndexError: pop from empty list
    mark@Lexington-19:~$

    Thank you, sir.

     
  • tom
    tom
    2011-06-25

    Hmm - this seems odd. Nothing too obvious. If you like, you could send me the db via email to tmhinkle AT gmail.

    The db is ~/.gourmet/recipes.db

     
  • tom
    tom
    2011-06-29

    Ok - I'm still not sure how the recipe got into this state, but what actually happened was that the ingredients got saved in a screwed up fashion. In fact, all the instructions had imported as ingredients - as very long ingredients - and these ingredients, even though already somehow "saved", were failing to save properly.

    There are a number of bugs I'll need to fix to prevent this from happening again - first, fixing the import step so it doesn't think a paragraph of material is a single ingredient; second, fixing the save step so ingredients don't get screwed up. In the short term, if you just delete the offending "ingredients" (and move them to the "instructions" where they belong), the recipe will save just fine.

    I'll send you a copy of the recipe I was able to modify and save, as well as your updated DB.

    Tom

     
  • Mark Preston
    Mark Preston
    2011-06-29

    I import a large number of recipes from the 'net. I've noticed for some time that some of the imports put the words that belong to "Instructions" in the "Ingredients" list. Up to (approx.) #765, I could delete those "ingredients" appearing as "instructions". I think I've seen approximately 20 to 30 recipes like this. It is the last few in my recipes.db.

    Many thanks.

     
  • Mark Preston
    Mark Preston
    2011-06-29

    I just came back from editing my recipe #765. Upon looking at it, there were 4 or 5 lines blank in the ingredients list. The only way I knew this was by seeing the "Optional" checkbox to the right of the blank line. After deleting those, I have fixed the problem, I believe.

    I'm now going through the list, backwards, to check for this anomaly. If I see something worthy of reporting, I'll post it here.