Can not create or edit recipes

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

Bug Description

Since upgrading to Ubuntu 16.04 last fall I can not enter or edit recipes in Gourmet Recipe Manager 0.17.4. When I try to, I get a blank page with two buttons "Save" or "Revert" neither appear to do anything. If I close and then re-open my recipe count is increased by one. The new recipe title is "New" and every things is blank. I have tried un-installing Gourmet and re-installing, and get the exact same error. I also can not export recipes unless I turn off the nutritional plug-in. Are there any solutions or suggestions? UPDATE:
I have included a TraceBack listing from trying to start while in Terminal.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gourmet/gtk_extras/ratingWidget.py", line 383, in cell_data_func
    pb = self.star_generator.get_pixbuf(int(val),self.upper)
  File "/usr/local/lib/python2.7/dist-packages/gourmet/gtk_extras/ratingWidget.py", line 80, in get_pixbuf
    pb=self.get_pixbuf_from_image(img)
  File "/usr/local/lib/python2.7/dist-packages/gourmet/gtk_extras/ratingWidget.py", line 138, in get_pixbuf_from_image
    image.tostring(),
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 628, in __getattr__
    raise AttributeError(name)
AttributeError: tostring

I have looked at the programming indicated above and searched for "tostring" without success. Some one else reported that the error was on line 628 of Image.py. Their suggestion was to change "tostring" to "tobytes". The version I have already has "tobytes" here. The only other reference I found to "tostring" was in an if-then statement.

I loaded the windows version using Wine. It works, read my recipes and allows me to edit and create recipes. This confirms my earlier thought that the problem is with the form for adding or editing recipes in the Linux version. I have checked the dependencies listed for Gourmet, and I have all required.

Revision history for this message
Stevie Dillo (slmandr) wrote :
Download full text (18.8 KiB)

Also affects me. Will post this in case it may help troubleshooting.

slmandr@slmandr-solus-17 ~ $ gourmet
elib.intl failed to load.
IF YOU HAVE TROUBLE WITH TRANSLATIONS, MAKE SURE YOU HAVE THIS LIBRARY INSTALLED.
elib.intl failed to load.
IF YOU HAVE TROUBLE WITH TRANSLATIONS, MAKE SURE YOU HAVE THIS LIBRARY INSTALLED.
No gst player
No windows player
WARNING: Plugin module import failed
PATH: ['/usr/lib/python2.7/site-packages/', '/usr/bin', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/share/gourmet/plugins', '/usr/lib/python2.7/site-packages/gourmet/plugins', '/usr/lib/python2.7/site-packages/gourmet/plugins/import_export']
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gourmet/plugin_loader.py", line 259, in get_module
    self._loaded = __import__(self.module)
  File "/usr/lib/python2.7/site-packages/gourmet/plugins/spellcheck/__init__.py", line 1, in <module>
    import reccard_spellcheck_plugin
  File "/usr/lib/python2.7/site-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/site-packages/gourmet/plugin_loader.py", line 93, in load_active_plugins
    self.active_plugins.extend(self.available_plugin_sets[p].plugins)
  File "/usr/lib/python2.7/site-packages/gourmet/plugin_loader.py", line 272, in __getattr__
    if attr == 'plugins': return self.get_plugins()
  File "/usr/lib/python2.7/site-packages/gourmet/plugin_loader.py", line 278, in get_plugins
    return self.get_module().plugins
AttributeError: 'NoneType' object has no attribute 'plugins'
WARNING: Plugin module import failed
PATH: ['/usr/lib/python2.7/site-packages/', '/usr/bin', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/share/gourmet/plugins', '/usr/lib/python2.7/site-packages/gourmet/plugins', '/usr/lib/python2.7/site-packages/gourmet/plugins/import_export', '/usr/share/gourmet/plugins/import_export']
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gourmet/plugin_loader.py", line 259, in get_module
    self._loaded = __import__(self.module)
  File "/usr/lib/python2.7/site-packages/gourmet/plugins/import_export/pdf_plugin/__init__.py", line 1, in <module>
    import pdf_exporter_plugin, print_plugin
  File "/usr/lib/python2.7/site-packages/gourmet/plugins/import_export/pdf_plugin/print_plugin.py", line 4, in <module>
    import poppler
ImportError: No module named poppler
WARNING: Failed to load plugin pdf_plugin
ERROR:root:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gourmet/plugin_loader.py", line 93, in load_active_plugins
    self.active_plugins.exten...

Revision history for this message
Connie Malan (conniemalan) wrote :
Download full text (3.5 KiB)

I have the same problem with version 0.17.4

See the trace log for more details

connie@PC1:~$ gourmet
Gtk-Message: 06:53:31.799: Failed to load module "canberra-gtk-module"
No gst player
No windows player
WARNING: Plugin module import failed
PATH: ['/usr/lib/python2.7/dist-packages/', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-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/gtk-2.0', '/usr/share/gourmet/plugins', '/usr/lib/python2.7/dist-packages/gourmet/plugins', '/usr/lib/python2.7/dist-packages/gourmet/plugins/import_export', '/usr/share/gourmet/plugins/import_export']
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 259, in get_module
    self._loaded = __import__(self.module)
  File "/usr/lib/python2.7/dist-packages/gourmet/plugins/import_export/pdf_plugin/__init__.py", line 1, in <module>
    import pdf_exporter_plugin, print_plugin
ImportError: No module named print_plugin
WARNING: Failed to load plugin pdf_plugin
ERROR:root:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 93, 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 272, in __getattr__
    if attr == 'plugins': return self.get_plugins()
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 278, in get_plugins
    return self.get_module().plugins
AttributeError: 'NoneType' object has no attribute 'plugins'
WARNING: Plugin module import failed
PATH: ['/usr/lib/python2.7/dist-packages/', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-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/gtk-2.0', '/usr/share/gourmet/plugins', '/usr/lib/python2.7/dist-packages/gourmet/plugins', '/usr/lib/python2.7/dist-packages/gourmet/plugins/import_export', '/usr/share/gourmet/plugins/import_export']
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 259, in get_module
    self._loaded = __import__(self.module)
  File "/usr/lib/python2.7/dist-packages/gourmet/plugins/import_export/web_import_plugin/__init__.py", line 1, in <module>
    import generic_web_importer_plugin
  File "/usr/lib/python2.7/dist-packages/gourmet/plugins/import_export/web_import_plugin/generic_web_importer_plugin.py", line 3, in <module>
    import webpage_importer
  File "/usr/lib/python2.7/dist-packages/gourmet/plugins/import_export/web_import_plugin/webpage_importer.py", line 2, in <module>
    import BeautifulSoup
ImportError: No module named BeautifulSoup
WARNING: Failed to load plugin web_import_plugin
ERROR:root:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/gourmet/plugin_loader.py", line 93, in load_active_plug...

Read more...

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.