Skip to content

Export failure - html and mealmaster formats #372

@eliotb

Description

@eliotb

Exporting all recipes to Mealmaster or HTML fails.
(Gourmet XML, PDF, plain text, epub, mycookbook mcb succeed)

Note: PDF export also failed until I deleted my old toml configuration files.

Steps to Reproduce

  1. File/Export all recipes
  2. Choose format HTML or Mealmaster
  3. Click OK

Expected Behavior

Export file(s) is created.

Current Behavior

In both cases there is a pale blue info bar in the GUI says Export (format), Cancel and Details buttons.
Cancel button does not work. Details button pops up dialog box.
Traceback is also seen in the terminal.

HTML export:

writing css to /home/eliot/documents/recipes/recipes_html/style.css
Return exporter instance
emit error 1 Error during Exporter Traceback (most recent call last):
File "/home/eliot/src/python/gourmet/src/gourmet/threadManager.py", line 104, in run
self.do_run()
File "/home/eliot/src/python/gourmet/src/gourmet/plugin_loader.py", line 440, in _
retval = f(self,*args,**kwargs)
File "/home/eliot/src/python/gourmet/src/gourmet/exporters/exporter.py", line 576, in do_run
fn = self.generate_filename(r, self.ext, add_id=True)
File "/home/eliot/src/python/gourmet/src/gourmet/exporters/exporter.py", line 610, in generate_filename
for c in title:
TypeError: 'NoneType' object is not iterable

Mealmaster export:

DEBUG: /home/eliot/src/python/gourmet/src/gourmet/plugins/import_export/mealmaster_plugin/mealmaster_exporter.py: 98 write_grouphead called with Dressing
emit error 1 Error during Exporter Traceback (most recent call last):
File "/home/eliot/src/python/gourmet/src/gourmet/threadManager.py", line 104, in run
self.do_run()
File "/home/eliot/src/python/gourmet/src/gourmet/plugin_loader.py", line 440, in _
retval = f(self,*args,**kwargs)
File "/home/eliot/src/python/gourmet/src/gourmet/exporters/exporter.py", line 582, in do_run
e.do_run()
File "/home/eliot/src/python/gourmet/src/gourmet/exporters/exporter.py", line 89, in do_run
elif task=='ings': self.write_ings()
File "/home/eliot/src/python/gourmet/src/gourmet/plugin_loader.py", line 440, in _
retval = f(self,*args,**kwargs)
File "/home/eliot/src/python/gourmet/src/gourmet/exporters/exporter.py", line 190, in write_ings
self.write_ingfoot()
File "/home/eliot/src/python/gourmet/src/gourmet/plugins/import_export/mealmaster_plugin/mealmaster_exporter.py", line 148, in write_ingfoot
self.out.write("-----%s%s%s\r\n"%(left_side * "-",
TypeError: can't multiply sequence by non-int of type 'float'

emit done

Possible Solution

None as yet. A general question: How can I run gourmet from a git checkout inside a debugger?

Environment

  • Operating System: Ubuntu 20.04
  • Version or commit id: ba7b25f
  • Installed as Flatpak or Python package?: From git checkout
  • Deleted .toml config files before running gourmet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions