Crash during export to pdf

Bug #543763 reported by sonmez
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gourmet
New
Undecided
Unassigned

Bug Description

Gourmet Recipe manager crashes when I try to export all recipes to pdf.
this is version .15.1 on up to date Ubuntu 9.10.
I get the following error:
===========================================================================
Traceback (most recent call last):
  File "/usr/share/gourmet/gourmet/threadManager.py", line 97, in run
    self.do_run()
  File "/usr/share/gourmet/gourmet/plugin_loader.py", line 370, in _
    retval = f(self,*args,**kwargs)
  File "/usr/share/gourmet/gourmet/exporters/exporter.py", line 563, in do_run
    self.write_footer()
  File "/usr/share/gourmet/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 680, in write_footer
    self.close()
  File "/usr/share/gourmet/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 390, in close
    try: self.doc.build(self.txt)
  File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 803, in build
    self._endBuild()
  File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 745, in _endBuild
    if getattr(self,'_doSave',1): self.canv.save()
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfgen/canvas.py", line 947, in save
    self._doc.SaveToFile(self._filename, self)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 223, in SaveToFile
    f.write(self.GetPDFData(canvas))
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 245, in GetPDFData
    return self.format()
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 388, in format
    IOf = IO.format(self)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 837, in format
    fcontent = format(content, document, toplevel=1) # yes this is at top level
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 98, in format
    f = element.format(document)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 1594, in format
    return D.format(document)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 634, in format
    L = [(format(PDFName(k),document)+" "+format(dict[k],document)) for k in keys]
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 98, in format
    f = element.format(document)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 1720, in format
    if f is None: raise ValueError, "format not resolved %s" % self.name
ValueError: format not resolved r79

======================================================================

Revision history for this message
sonmez (sonmezsahut) wrote :

the version of the program was incorrectly reported. It should be 0.14.5-2-ubuntu2

Revision history for this message
Thomas M. Hinkle (thomas-hinkle) wrote :

This bug has already been fixed upstream.

Revision history for this message
sonmez (sonmezsahut) wrote :

So is there a version I can install on Ubuntu without this issue?

Thanks

Revision history for this message
Thomas M. Hinkle (thomas-hinkle) wrote : Re: [Bug 543763] Re: Crash during export to pdf

Yeah, just download the latest .deb from the upstream site -
http://grecipe-manager.sf.net

On Mon, Mar 22, 2010 at 9:53 AM, sonmez <email address hidden> wrote:

> So is there a version I can install on Ubuntu without this issue?
>
> Thanks
>
> --
> Crash during export to pdf
> https://bugs.launchpad.net/bugs/543763
> You received this bug notification because you are the registrant for
> Gourmet.
>

Revision history for this message
sonmez (sonmezsahut) wrote :

I installed the latest version (0.15.4-1) and I still get an error.
Here is the error I am getting:
------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/share/gourmet/gourmet/threadManager.py", line 97, in run
    self.do_run()
  File "/usr/share/gourmet/gourmet/plugin_loader.py", line 372, in _
    retval = f(self,*args,**kwargs)
  File "/usr/share/gourmet/gourmet/exporters/exporter.py", line 574, in do_run
    self.write_footer()
  File "/usr/share/gourmet/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 678, in write_footer
    self.close()
  File "/usr/share/gourmet/gourmet/plugins/import_export/pdf_plugin/pdf_exporter.py", line 392, in close
    try: self.doc.build(self.txt)
  File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 803, in build
    self._endBuild()
  File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 745, in _endBuild
    if getattr(self,'_doSave',1): self.canv.save()
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfgen/canvas.py", line 947, in save
    self._doc.SaveToFile(self._filename, self)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 223, in SaveToFile
    f.write(self.GetPDFData(canvas))
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 245, in GetPDFData
    return self.format()
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 388, in format
    IOf = IO.format(self)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 837, in format
    fcontent = format(content, document, toplevel=1) # yes this is at top level
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 98, in format
    f = element.format(document)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 1594, in format
    return D.format(document)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 634, in format
    L = [(format(PDFName(k),document)+" "+format(dict[k],document)) for k in keys]
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 98, in format
    f = element.format(document)
  File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/pdfdoc.py", line 1720, in format
    if f is None: raise ValueError, "format not resolved %s" % self.name
ValueError: format not resolved r79

Revision history for this message
Bernhard Reiter (ockham-razor) wrote :

New versions have been released since your last comment; the latest one is 0.15.9 which is e.g. in Ubuntu 11.10 (oneiric). Can you check if your issue is still there?

Revision history for this message
JohnMc (maruadventurer) wrote :

Receive the same error and traceback as described in error report above when attempting to export any format.

I am running Gourmet 0.17.0 on Linux Mint 'Xenial'.

Additional data:

I receive the following load errors on startup, though Gourmet launches and operates.
---------------------------
xxxxxxxxxxxx ~ $ gourmet
WARNING: Plugin module import failed
PATH: ['/usr/bin', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/', '/usr/bin', '/usr/local/lib/python2.7/dist-packages/uno-0.3.3-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/pytest-2.6.0-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/py-1.4.22-py2.7.egg', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-i386-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/share/gourmet/plugins', '/usr/lib/python2.7/dist-packages/gourmet/plugins', '/usr/lib/python2.7/dist-packages/gourmet/plugins/import_export']
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 258, in get_module
    self._loaded = __import__(self.module)
  File "/usr/lib/python2.7/dist-packages/gourmet/plugins/spellcheck/__init__.py", line 1, in <module>
    import reccard_spellcheck_plugin
  File "/usr/lib/python2.7/dist-packages/gourmet/plugins/spellcheck/reccard_spellcheck_plugin.py", line 1, in <module>
    import gtk, gtkspell
ImportError: No module named gtkspell
WARNING: Failed to load plugin spellcheck
ERROR:root:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 92, in load_active_plugins
    self.active_plugins.extend(self.available_plugin_sets[p].plugins)
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 271, in __getattr__
    if attr == 'plugins': return self.get_plugins()
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 277, in get_plugins
    return self.get_module().plugins
AttributeError: 'NoneType' object has no attribute 'plugins'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.