Gourmet unable to print in Ubuntu

Asked by Mike Strickland

I have been using Gourmet for a good while and have had few problems. This one has me stumped.

I printed a recipe, a couple of weeks ago, no problem, to my network printer. Yesterday, I attempted to do the same, but nothing happened. The printer dialog opens, I choose my printer, and click print and nothing occurs, not the normal 'print start' message, nothing. There is a message, in the printer dialog, immediately after opening, and prior to my clicking 'Print' that says, 'Data file sent successfully.' - normally a brief message says something about getting printer info, then the area is blank until I dismiss the dialog by clicking the print button. To make it even stranger, it occurs with one particular recipe, I just printed another recipe without problems. I do not know how many recipes this may affect as I have only tried these two.

Logwatch (emails end of logfiles to me) is showing log entries, similar to the ones below, in the 'connections (secure log)' section. These entries were generated, yesterday, after attempting to print the same recipe that will not print today - did not attempt to print any others.

dbus: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.3" (uid=110 pid=1928 comm="avahi-daemon: starting up") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.227" (uid=1000 pid=8029 comm="/usr/bin/python /usr/local/bin/gourmet "): 1 Time(s)
    dbus: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.3" (uid=110 pid=1928 comm="avahi-daemon: starting up") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.228" (uid=1000 pid=28843 comm="/usr/bin/python /usr/local/bin/gourmet "): 2 Time(s)

I do not know what is going on. I have not changed anything with the printer, but some system updates have been done, via Software Updater - nothing to Gourmet, itself, that I recall. I uninstalled Gourmet and reinstalled, because the About dialog showed 0.15.9 (software updater showed it as current) and the version that is supposed to be installed by Software Manager is 0.17.0-1ubuntu1 - however, after reinstall (Software Manager from Ubuntu repositories), the version still shows as 0.15.9, and I still have the printing problem.

The above log messages were generated prior to the reinstall, but there are several, that look the same, that were generated after the reinstall.

Although not a newbie to Ubuntu, I am not real familiar with the inner workings of the OS, and the log message doesn't mean anything to me. Any suggestions? If more info is needed, let me know what is needed.

Question information

Language:
English Edit question
Status:
Solved
For:
Gourmet Edit question
Assignee:
No assignee Edit question
Solved by:
Bernhard Reiter
Solved:
Last query:
Last reply:
Revision history for this message
Bernhard Reiter (ockham-razor) said :
#1

In the page layout section of the printer settings dialog, are there any fields (especially combo boxes) left blank? If so, set them to a suitable value -- anything but blank. There's a known (but unfortunately somewhat tricky to fix) issue with that. Please report if that solves your issue.

If it doesn't: Please run gourmet from a terminal, try to reproduce the issue, and post the terminal output here.
Also, what version of Ubuntu are you running?

Revision history for this message
Mike Strickland (livinwell) said :
#2

On Sun, 2014-08-17 at 22:02 +0000, Bernhard Reiter wrote:
> In the page layout section of the printer settings dialog, are there
> any
> fields (especially combo boxes) left blank? If so, set them to a
> suitable value -- anything but blank. There's a known (but
> unfortunately
> somewhat tricky to fix) issue with that. Please report if that solves
> your issue.

There are no empty boxes. All have a legitimate value, on all printer
settings, including Page Layout.

Forgot to mention, in my posting, that creating a PDF also failed -
generated a file with 0 bytes. I attempted to print to file, create a
PDF via export.

> If it doesn't: Please run gourmet from a terminal, try to reproduce
> the issue, and post the terminal output here.
> Also, what version of Ubuntu are you running?

I am running Ubuntu 14.04, with latest updates. No problem to run from
terminal. Problem still exists, and output is below. I broke it down
into sections, based on my actions, in the email, and attached all as
plain text in case the email breaks the lines too much. If more info is
needed, let me know.

This was generated up to the point of displaying the recipe that will
not print:

iris@iris-desktop:~$ gourmet
sqlite:////home/iris/.gourmet/recipes.db
TypeError: can't convert return value to desired type
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugins/browse_recipes/browser.py", line 165, in item_activated_cb
    self.emit('recipe-selected',rid)
TypeError: unknown type (null)
/usr/local/lib/python2.7/dist-packages/gourmet/reccard.py:573:
GtkWarning: Failed to set text from markup due to error parsing markup:
Error on line 1: Entity did not end with a semicolon; most likely you
used an ampersand character without intending to start an entity -
escape ampersand as &
  '<span underline="single" color="blue">%s</span>'%
self.current_rec.link

Nothing new was generated with the opening of the print dialog, but the
dialog shows 'Data file sent successfully.' when I have not clicked the
Print button yet.

This was generated, when I clicked the Print button:

Trouble building [<pdf_plugin.pdf_exporter.Bookmark instance at
0xb407ef4c>, Paragraph(
'style': <ParagraphStyle 'Heading1'>
'bulletText': None
'text': u'<para>Garlicky Kale Salad</para>'
'encoding': 'utf8'
'height': 22
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=1, fontName='Helvetica-Bold', fontSize=18,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0,
text=u'Garlicky Kale Salad', textColor=Color(0,0,0,1), underline=0)]
'width': 514.9606299212599
'blPara': ParaFrag(ascent=12.924, bold=1, descent=-3.7259999999999995,
fontName='Helvetica-Bold', fontSize=18, greek=0, italic=0, kind=0,
lines=[(347.8666299212598, [u'Garlicky', u'Kale', u'Salad'])],
link=None, rise=0, strike=0, sub=0, super=0, text=u'Garlicky Kale
Salad', textColor=Color(0,0,0,1), underline=0)
) #Paragraph, Table(
 rowHeights=[124.8],
 colWidths=[257.4803149606299, 257.4803149606299],
[[(Paragraph(
  'style': <ParagraphStyle 'Normal'>
  'bulletText': None
  'text': u'<para>Title: Garlicky Kale Salad</para>'
  'encoding': 'utf8'
  'height': 12
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'Title:
Garlicky Kale Salad', textColor=Color(0,0,0,1), underline=0)]
  'width': 251.48031496062993
  'blPara': ParaFrag(ascent=7.18, bold=0, descent=-2.07,
fontName='Helvetica', fontSize=10, greek=0, italic=0, kind=0,
lines=[(139.78031496062994, [u'Title:', u'Garlicky', u'Kale',
u'Salad'])], link=None, rise=0, strike=0, sub=0, super=0, text=u'Title:
Garlicky Kale Salad', textColor=Color(0,0,0,1), underline=0)
  ) #Paragraph,
     Paragraph(
  'style': <ParagraphStyle 'Normal'>
  'bulletText': None
  'text': u'<para>Yield: 4 servings</para>'
  'encoding': 'utf8'
  'height': 12
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'Yield: 4
servings', textColor=Color(0,0,0,1), underline=0)]
  'width': 251.48031496062993
  'blPara': ParaFrag(ascent=7.18, bold=0, descent=-2.07,
fontName='Helvetica', fontSize=10, greek=0, italic=0, kind=0,
lines=[(178.1203149606299, [u'Yield:', u'4', u'servings'])], link=None,
rise=0, strike=0, sub=0, super=0, text=u'Yield: 4 servings',
textColor=Color(0,0,0,1), underline=0)
  ) #Paragraph,
     Paragraph(
  'style': <ParagraphStyle 'Normal'>
  'bulletText': None
  'text': u'<para>Preparation Time: 20 minutes</para>'
  'encoding': 'utf8'
  'height': 12
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0,
text=u'Preparation Time: 20 minutes', textColor=Color(0,0,0,1),
underline=0)]
  'width': 251.48031496062993
  'blPara': ParaFrag(ascent=7.18, bold=0, descent=-2.07,
fontName='Helvetica', fontSize=10, greek=0, italic=0, kind=0,
lines=[(120.32031496062993, [u'Preparation', u'Time:', u'20',
u'minutes'])], link=None, rise=0, strike=0, sub=0, super=0,
text=u'Preparation Time: 20 minutes', textColor=Color(0,0,0,1),
underline=0)
  ) #Paragraph,
     Paragraph(
  'style': <ParagraphStyle 'Normal'>
  'bulletText': None
  'text': u'<para>Category: Salads</para>'
  'encoding': 'utf8'
  'height': 12
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'Category:
Salads', textColor=Color(0,0,0,1), underline=0)]
  'width': 251.48031496062993
  'blPara': ParaFrag(ascent=7.18, bold=0, descent=-2.07,
fontName='Helvetica', fontSize=10, greek=0, italic=0, kind=0,
lines=[(174.78031496062994, [u'Category:', u'Salads'])], link=None,
rise=0, strike=0, sub=0, super=0, text=u'Category: Salads',
textColor=Color(0,0,0,1), underline=0)
  ) #Paragraph,
     Paragraph(
  'style': <ParagraphStyle 'Normal'>
  'bulletText': None
  'text': u'<para>Cuisine: Southern</para>'
  'encoding': 'utf8'
  'height': 12
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'Cuisine:
Southern', textColor=Color(0,0,0,1), underline=0)]
  'width': 251.48031496062993
  'blPara': ParaFrag(ascent=7.18, bold=0, descent=-2.07,
fontName='Helvetica', fontSize=10, greek=0, italic=0, kind=0,
lines=[(172.0003149606299, [u'Cuisine:', u'Southern'])], link=None,
rise=0, strike=0, sub=0, super=0, text=u'Cuisine: Southern',
textColor=Color(0,0,0,1), underline=0)
  ) #Paragraph,
     Table(
   rowHeights=[15],
   colWidths=[32, 72.0],
  [['Rating: ', (<pdf_plugin.pdf_exporter.FiveStars instance at
0xb407e64c>,)]]
  ) # end table,
     Paragraph(
  'style': <ParagraphStyle 'Normal'>
  'bulletText': None
  'text': u'<para>Source: The Arcadia Mobile Market Seasonal
Cookbook</para>'
  'encoding': 'utf8'
  'height': 12
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'Source:
The Arcadia Mobile Market Seasonal Cookbook', textColor=Color(0,0,0,1),
underline=0)]
  'width': 251.48031496062993
  'blPara': ParaFrag(ascent=7.18, bold=0, descent=-2.07,
fontName='Helvetica', fontSize=10, greek=0, italic=0, kind=0,
lines=[(2.4903149606299166, [u'Source:', u'The', u'Arcadia', u'Mobile',
u'Market', u'Seasonal', u'Cookbook'])], link=None, rise=0, strike=0,
sub=0, super=0, text=u'Source: The Arcadia Mobile Market Seasonal
Cookbook', textColor=Color(0,0,0,1), underline=0)
  ) #Paragraph,
     Paragraph(
  'style': <ParagraphStyle 'Normal'>
  'bulletText': None
  'text': u'<para>Website: <link
href="http://www.npr.org/blogs/thesalt/2014/03/13/289594815/former-wic-mom-brings-produce-and-cooking-skills-to-dc-s-food-deserts?utm_medium=Email&utm_source=share&utm_campaign=storyshare">http://www.npr.org/blogs/thes&#8230;</link></para>'
  'encoding': 'utf8'
  'height': 12
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'Website:
', textColor=Color(0,0,0,1), underline=0), ParaFrag(bold=0,
fontName='Helvetica', fontSize=10, greek=0, italic=0,
link=u'http://www.npr.org/blogs/thesalt/2014/03/13/289594815/former-wic-mom-brings-produce-and-cooking-skills-to-dc-s-food-deserts?utm_medium=Email&utm_source=share&utm_campaign=storyshare', rise=0, strike=0, sub=0, super=0, text=u'http://www.npr.org/blogs/thes', textColor=Color(0,0,0,1), underline=0), ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0, italic=0, link=u'http://www.npr.org/blogs/thesalt/2014/03/13/289594815/former-wic-mom-brings-produce-and-cooking-skills-to-dc-s-food-deserts?utm_medium=Email&utm_source=share&utm_campaign=storyshare', rise=0, strike=0, sub=0, super=0, text=u'\u2026', textColor=Color(0,0,0,1), underline=0)]
  'width': 251.48031496062993
  'blPara': ParaLines(kind=1, lines=[ParaLines(ascent=7.18,
descent=-2.07, extraSpace=70.30031496062992, fontSize=10,
maxWidth=251.48031496062993, wordCount=2, words=[ParaFrag(bold=0,
fontName='Helvetica', fontSize=10, greek=0, italic=0, link=None, rise=0,
strike=0, sub=0, super=0, text=u'Website: ', textColor=Color(0,0,0,1),
underline=0), ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0,
link=u'http://www.npr.org/blogs/thesalt/2014/03/13/289594815/former-wic-mom-brings-produce-and-cooking-skills-to-dc-s-food-deserts?utm_medium=Email&utm_source=share&utm_campaign=storyshare', rise=0, strike=0, sub=0, super=0, text=u'http://www.npr.org/blogs/thes', textColor=Color(0,0,0,1), underline=0), ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0, italic=0, link=u'http://www.npr.org/blogs/thesalt/2014/03/13/289594815/former-wic-mom-brings-produce-and-cooking-skills-to-dc-s-food-deserts?utm_medium=Email&utm_source=share&utm_campaign=storyshare', rise=0, strike=0, sub=0, super=0, text=u'\u2026', textColor=Color(0,0,0,1), underline=0)])])
  ) #Paragraph),
    (<reportlab.platypus.flowables.Image instance at 0xb407e58c>,)]]
) # end table, KeepTogether(
  CondPageBreak(54.0)
  Paragraph(
  'style': <ParagraphStyle 'Heading2'>
  'bulletText': None
  'text': u'<para>Ingredients</para>'
  'encoding': 'utf8'
  'height': 18
  'caseSensitive': 1
  'debug': 0
  'frags': [ParaFrag(bold=1, fontName='Helvetica-Bold', fontSize=14,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0,
text=u'Ingredients', textColor=Color(0,0,0,1), underline=0)]
  'width': 514.9606299212599
  'blPara': ParaFrag(ascent=10.052, bold=1, descent=-2.898,
fontName='Helvetica-Bold', fontSize=14, greek=0, italic=0, kind=0,
lines=[(439.5006299212599, [u'Ingredients'])], link=None, rise=0,
strike=0, sub=0, super=0, text=u'Ingredients', textColor=Color(0,0,0,1),
underline=0)
  ) #Paragraph
  Table(
   rowHeights=[None],
   colWidths=[257.4803149606299, 257.4803149606299],
  [[(Paragraph(
    'style': <ParagraphStyle 'Normal'>
    'bulletText': None
    'text': u'<para firstLineIndent="-18.0" leftIndent="18.0">3 cloves
garlic, peeled</para>'
    'encoding': 'utf8'
    'height': 12
    'caseSensitive': 1
    'debug': 0
    'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'3
cloves garlic, peeled', textColor=Color(0,0,0,1), underline=0)]
    'width': 245.48031496062993
    'blPara': ParaFrag(ascent=7.18, bold=0, descent=-2.07,
fontName='Helvetica', fontSize=10, greek=0, italic=0, kind=0,
lines=[(146.55031496062992, [u'3', u'cloves', u'garlic,', u'peeled'])],
link=None, rise=0, strike=0, sub=0, super=0, text=u'3 cloves garlic,
peeled', textColor=Color(0,0,0,1), underline=0)
    ) #Paragraph,
       None,
       None,
       Paragraph(
    'style': <ParagraphStyle 'Normal'>
    'bulletText': None
    'text': u'<para firstLineIndent="-18.0" leftIndent="18.0">3 inches
fresh ginger, peeled (ginger is easily peeled with the side of a metal
spoon)</para>'
    'encoding': 'utf8'
    'caseSensitive': 1
    'debug': 0
    'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'3
inches fresh ginger, peeled (ginger is easily peeled with the side of a
metal spoon)', textColor=Color(0,0,0,1), underline=0)]
    ) #Paragraph,
       None,
       None),
      [Paragraph(
    'style': <ParagraphStyle 'Normal'>
    'bulletText': None
    'text': u'<para firstLineIndent="-18.0" leftIndent="18.0">1 cup
olive oil</para>'
    'encoding': 'utf8'
    'caseSensitive': 1
    'debug': 0
    'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'1
cup olive oil', textColor=Color(0,0,0,1), underline=0)]
    ) #Paragraph,
       Paragraph(
    'style': <ParagraphStyle 'Normal'>
    'bulletText': None
    'text': u'<para firstLineIndent="-18.0" leftIndent="18.0">1 bunch
kale, washed, de-ribbbed, and leaves chopped</para>'
    'encoding': 'utf8'
    'caseSensitive': 1
    'debug': 0
    'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'1
bunch kale, washed, de-ribbbed, and leaves chopped',
textColor=Color(0,0,0,1), underline=0)]
    ) #Paragraph,
       Paragraph(
    'style': <ParagraphStyle 'Normal'>
    'bulletText': None
    'text': u'<para firstLineIndent="-18.0" leftIndent="18.0">1 carrot,
grated</para>'
    'encoding': 'utf8'
    'caseSensitive': 1
    'debug': 0
    'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'1
carrot, grated', textColor=Color(0,0,0,1), underline=0)]
    ) #Paragraph,
       Paragraph(
    'style': <ParagraphStyle 'Normal'>
    'bulletText': None
    'text': u'<para firstLineIndent="-18.0" leftIndent="18.0">1 cup red
cabbage, thinly sliced</para>'
    'encoding': 'utf8'
    'caseSensitive': 1
    'debug': 0
    'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'1
cup red cabbage, thinly sliced', textColor=Color(0,0,0,1), underline=0)]
    ) #Paragraph,
       None,
       Paragraph(
    'style': <ParagraphStyle 'Normal'>
    'bulletText': None
    'text': u'<para firstLineIndent="-18.0" leftIndent="18.0">1 cup
garbanzo beans</para>'
    'encoding': 'utf8'
    'caseSensitive': 1
    'debug': 0
    'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'1
cup garbanzo beans', textColor=Color(0,0,0,1), underline=0)]
    ) #Paragraph]]]
  ) # end table,maxHeight=None), CondPageBreak(54.0), Paragraph(
'style': <ParagraphStyle 'Heading2'>
'bulletText': None
'text': u'<para>Instructions</para>'
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=1, fontName='Helvetica-Bold', fontSize=14,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0,
text=u'Instructions', textColor=Color(0,0,0,1), underline=0)]
) #Paragraph, Paragraph(
'style': <ParagraphStyle 'Normal'>
'bulletText': None
'text': u"<para spacebefore='6'>In a blender, add the garlic, lemon
juice, soy sauce, ginger and black pepper, and puree. Using the lid
opening, slowly add olive oil with the motor running on low to thicken
the dressing.</para>"
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'In a
blender, add the garlic, lemon juice, soy sauce, ginger and black
pepper, and puree. Using the lid opening, slowly add olive oil with the
motor running on low to thicken the dressing.',
textColor=Color(0,0,0,1), underline=0)]
) #Paragraph, Paragraph(
'style': <ParagraphStyle 'Normal'>
'bulletText': None
'text': u"<para spacebefore='6'></para>"
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': []
) #Paragraph, Paragraph(
'style': <ParagraphStyle 'Normal'>
'bulletText': None
'text': u"<para spacebefore='6'>In a large bowl, add kale, carrots,
cabbage, cranberries and garbanzo beans. Pour dressing into the bowl and
toss to coat. Mix thoroughly and let salad sit for at least 20
minutes.</para>"
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'In a large
bowl, add kale, carrots, cabbage, cranberries and garbanzo beans. Pour
dressing into the bowl and toss to coat. Mix thoroughly and let salad
sit for at least 20 minutes.', textColor=Color(0,0,0,1), underline=0)]
) #Paragraph, CondPageBreak(54.0), Paragraph(
'style': <ParagraphStyle 'Heading2'>
'bulletText': None
'text': u'<para>Notes</para>'
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=1, fontName='Helvetica-Bold', fontSize=14,
greek=0, italic=0, link=None, rise=0, strike=0, sub=0, super=0,
text=u'Notes', textColor=Color(0,0,0,1), underline=0)]
) #Paragraph, Paragraph(
'style': <ParagraphStyle 'Normal'>
'bulletText': None
'text': u"<para spacebefore='6'>From The Arcadia Mobile Market Seasonal
Cookbook, by JuJu Harris. Recipe found in an article on NPR website
March 16, 2014.</para>"
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u'From The
Arcadia Mobile Market Seasonal Cookbook, by JuJu Harris. Recipe found in
an article on NPR website March 16, 2014.', textColor=Color(0,0,0,1),
underline=0)]
) #Paragraph, Paragraph(
'style': <ParagraphStyle 'Normal'>
'bulletText': None
'text': u"<para spacebefore='6'></para>"
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': []
) #Paragraph, Paragraph(
'style': <ParagraphStyle 'Normal'>
'bulletText': None
'text': u"<para spacebefore='6'>Added salt, which wasn't called for in
original recipe.</para>"
'encoding': 'utf8'
'caseSensitive': 1
'debug': 0
'frags': [ParaFrag(bold=0, fontName='Helvetica', fontSize=10, greek=0,
italic=0, link=None, rise=0, strike=0, sub=0, super=0, text=u"Added
salt, which wasn't called for in original recipe.",
textColor=Color(0,0,0,1), underline=0)]
) #Paragraph]
emit ('error', 1, 'Error during Exporter', 'Traceback (most recent call
last):\n File
"/usr/local/lib/python2.7/dist-packages/gourmet/threadManager.py", line
97, in run\n self.do_run()\n File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line
372, in _\n retval = f(self,*args,**kwargs)\n File
"/usr/local/lib/python2.7/dist-packages/gourmet/exporters/exporter.py",
line 574, in do_run\n self.write_footer()\n File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 679, in write_footer\n self.close()\n File "/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 393, in close\n try: self.doc.build(self.txt)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 890, in build\n self.handle_flowable(flowables)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 773, in handle_flowable\n if frame.add(f, canv, trySplit=self.allowSplitting):\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/frames.py", line 161, in _add\n w, h = flowable.wrap(aW, h)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 645, in wrap\n W,H = _listWrapOn(self._content,aW,self.canv,dims=dims)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 579, in _listWrapOn\n w,h = f.wrapOn(canv,availWidth,0xfffffff)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 121, in wrapOn\n w, h = self.wrap(aW,aH)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 1173, in wrap\n self._calc(availWidth, availHeight)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 625, in _calc\n self._calc_height(availHeight,availWidth,W=W)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 556, in _calc_height\n dW,t = self._listCellGeom(v,w or self._listValueWidth(v),s)\n File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 397, in _listCellGeom\n vw, vh = v.wrapOn(canv, aW, aH)\nAttributeError: \'NoneType\' object has no attribute \'wrapOn\'\n')
emit ('done',)
Syntax Warning: May not be a PDF file (continuing anyway)
Syntax Error: Couldn't find trailer dictionary
Syntax Error: Couldn't read xref table
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/pdf_plugin/print_plugin.py", line 135, in begin_print
    self.set_document(fn, operation,context)
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/pdf_plugin/print_plugin.py", line 36, in set_document
    self.d = poppler.document_new_from_file(filename,None)
glib.GError: PDF document is damaged
There was an error generating a PDF to print.
Error during Exporter
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/threadManager.py", line
97, in run
    self.do_run()
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line
372, in _
    retval = f(self,*args,**kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/exporters/exporter.py",
line 574, in do_run
    self.write_footer()
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 679, in write_footer
    self.close()
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 393, in close
    try: self.doc.build(self.txt)
  File
"/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py",
line 890, in build
    self.handle_flowable(flowables)
  File
"/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py",
line 773, in handle_flowable
    if frame.add(f, canv, trySplit=self.allowSplitting):
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/frames.py",
line 161, in _add
    w, h = flowable.wrap(aW, h)
  File
"/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line
645, in wrap
    W,H = _listWrapOn(self._content,aW,self.canv,dims=dims)
  File
"/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line
579, in _listWrapOn
    w,h = f.wrapOn(canv,availWidth,0xfffffff)
  File
"/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line
121, in wrapOn
    w, h = self.wrap(aW,aH)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py",
line 1173, in wrap
    self._calc(availWidth, availHeight)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py",
line 625, in _calc
    self._calc_height(availHeight,availWidth,W=W)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py",
line 556, in _calc_height
    dW,t = self._listCellGeom(v,w or self._listValueWidth(v),s)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py",
line 397, in _listCellGeom
    vw, vh = v.wrapOn(canv, aW, aH)
AttributeError: 'NoneType' object has no attribute 'wrapOn'

Traceback (most recent call last):
  File "/usr/local/bin/gourmet", line 28, in <module>
    import psyco
ImportError: No module named psyco

--
Mike Strickland
<email address hidden>
---------------------------
Homepage: A Rescuer's Guide to Georgia Native Plants
        GeorgiaNatives.net

Revision history for this message
Bernhard Reiter (ockham-razor) said :
#3

Thanks for the terminal output. Our print and PDF export functions rely on the same PDF generating backend, which obviously has some trouble with this particular recipe. I suspect the URL to be the culprit -- you might want to try if exporting works if you just remove it.

To investigate this issue, I'd need that recipe; ideally your entire $HOME/.gourmet folder, which includes the recipes.db database file. Could you send me a zip to ockham ät raz döt or döt at?

Revision history for this message
Mike Strickland (livinwell) said :
#4

On Mon, 2014-08-18 at 12:02 +0000, Bernhard Reiter wrote:
> Thanks for the terminal output. Our print and PDF export functions
> rely
> on the same PDF generating backend, which obviously has some trouble
> with this particular recipe. I suspect the URL to be the culprit --
> you
> might want to try if exporting works if you just remove it.

When I saw the 0 byte PDF, I suspected that all printing goes through
the same routine. I do a little coding (PHP) so that was the first thing
that came to mind.

I removed the URL, but the problem persists, so I pasted it back in.
Also found the same problem with KFC Breading Mix, when I attempted to
print another recipe, to make sure that print is working.

> To investigate this issue, I'd need that recipe; ideally your entire
> $HOME/.gourmet folder, which includes the recipes.db database file.

You should have the zip. It was almost 29MB, so, if it doesn't come
through, via email, let me know and I'll upload to my webspace and give
you the URL.
--
Mike Strickland
<email address hidden>
---------------------------
Homepage: A Rescuer's Guide to Georgia Native Plants
        GeorgiaNatives.net

Revision history for this message
Thomas Hinkle (tmhinkle) said :
#5

Any ampersands (&) in fields? It looked like maybe there was a problem with
escaping them from the error message.

Tom

On Mon, Aug 18, 2014 at 10:32 AM, Mike Strickland <
<email address hidden>> wrote:

> Question #253219 on Gourmet changed:
> https://answers.launchpad.net/gourmet/+question/253219
>
> Status: Needs information => Open
>
> Mike Strickland gave more information on the question:
> On Mon, 2014-08-18 at 12:02 +0000, Bernhard Reiter wrote:
> > Thanks for the terminal output. Our print and PDF export functions
> > rely
> > on the same PDF generating backend, which obviously has some trouble
> > with this particular recipe. I suspect the URL to be the culprit --
> > you
> > might want to try if exporting works if you just remove it.
>
> When I saw the 0 byte PDF, I suspected that all printing goes through
> the same routine. I do a little coding (PHP) so that was the first thing
> that came to mind.
>
> I removed the URL, but the problem persists, so I pasted it back in.
> Also found the same problem with KFC Breading Mix, when I attempted to
> print another recipe, to make sure that print is working.
>
> > To investigate this issue, I'd need that recipe; ideally your entire
> > $HOME/.gourmet folder, which includes the recipes.db database file.
>
> You should have the zip. It was almost 29MB, so, if it doesn't come
> through, via email, let me know and I'll upload to my webspace and give
> you the URL.
> --
> Mike Strickland
> <email address hidden>
> ---------------------------
> Homepage: A Rescuer's Guide to Georgia Native Plants
> GeorgiaNatives.net
>
> You received this question notification because you are a member of
> Gourmet Recipe Manager, which is an answer contact for Gourmet.
>

Revision history for this message
Mike Strickland (livinwell) said :
#6

On Fri, 2014-08-22 at 02:27 +0000, Thomas Hinkle wrote:
> Thomas Hinkle proposed the following answer:
> Any ampersands (&) in fields? It looked like maybe there was a problem
> with
> escaping them from the error message.

There are ampersands in the URL, which is pretty common for modern
websites, as variables are passed on the URL for quite a few scripted
websites.

I don't see any ampersands in other fields.

There is another recipe, KFC Fried Chicken, which generates the
following error on attempt to create PDF:

Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/threadManager.py", line
97, in run
    self.do_run()
  File
"/usr/local/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line
372, in _
    retval = f(self,*args,**kwargs)

I do not see any ampersands in this recipe, nor the KFC Breading Mix
recipe which fails to produce a PDF, but also produces no error message.

This information was gathered running Gourmet normally, not in terminal.

--
Mike Strickland
<email address hidden>
---------------------------
Homepage: A Rescuer's Guide to Georgia Native Plants
        GeorgiaNatives.net

Revision history for this message
Best Bernhard Reiter (ockham-razor) said :
#7

I've finally found some time to look into this. I seem to be able to print the Garlicky Kale Salad recipe just fine, so something's really odd here. Actually, I've come to believe that there must be some mix up with installed files that may have caused a bug present in previous versions to appear.

Now the reason for my suspect is that you initially stated that Gourmet's About dialog showed it was version 0.15.9 (which I think it actually is), and the fact that your error logs show something about gourmet being in /usr/local/bin (and other subdirectories of /usr/local, instead of just /usr). Software installed via the Software Center goes to /usr, not /usr/local; the latter directory is used when e.g. installing from a .tar.gz file. (Did you ever do that by chance?)

So I think what you need to do is look for all occurrences of files and directories named 'gourmet' within the /usr/local folder hierarchy and remove them. Be sure not to remove anything from /usr. To be safe, you should backup first.

After that, I hope that starting gourmet will really launch the version installed via the Software Center -- which for Ubuntu 14.04 should indeed be 0.17.0-1ubuntu1, and which should be relatively bug-free with regard to PDF export and printing.

Revision history for this message
Mike Strickland (livinwell) said :
#8

On Sat, 2014-08-23 at 20:37 +0000, Bernhard Reiter wrote:
> Now the reason for my suspect is that you initially stated that
> Gourmet's About dialog showed it was version 0.15.9 (which I think it
> actually is), and the fact that your error logs show something about
> gourmet being in /usr/local/bin (and other subdirectories
> of /usr/local,
> instead of just /usr). Software installed via the Software Center goes
> to /usr, not /usr/local; the latter directory is used when e.g.
> installing from a .tar.gz file. (Did you ever do that by chance?)
>
> So I think what you need to do is look for all occurrences of files
> and
> directories named 'gourmet' within the /usr/local folder hierarchy and
> remove them. Be sure not to remove anything from /usr. To be safe, you
> should backup first.
>
> After that, I hope that starting gourmet will really launch the
> version
> installed via the Software Center -- which for Ubuntu 14.04 should
> indeed be 0.17.0-1ubuntu1, and which should be relatively bug-free
> with
> regard to PDF export and printing.

I do not recall installing from a .tar.gz file, but I may have, to get
past a buggy version that the Software Center installed, when a later
version was available, elsewhere.

I followed your instructions to delete everything in /usr/local that has
gourmet in the name. That seems to have worked, and I have successfully
printed the problem recipe.

Thanks very much for your rapid response and troubleshooting. Your
insight found a problem that I would not have ever found.

I do have another question. Should I stick to updates via Ubuntu
updates, or is it OK to use your PPA, via software updater, to keep up
with the latest version?

Revision history for this message
Bernhard Reiter (ockham-razor) said :
#9

Either way is fine.

Package versions in a Ubuntu release (like 14.04) are really only updated to fix security issues or severe bugs, which is why we're providing the PPA for users that want the latest Gourmet version available (and still compatible with their Ubuntu version, that is). So if you want that, use the PPA -- you get a couple of new features with that.

Revision history for this message
Mike Strickland (livinwell) said :
#10

Thanks Bernhard Reiter, that solved my question.