no import plugins available in UI; all imports fail

Bug #295982 reported by Luis Villa
4
Affects Status Importance Assigned to Milestone
Gourmet
Fix Released
Undecided
Unassigned
gourmet (Ubuntu)
Fix Released
Undecided
Jamie Strandboge

Bug Description

gourmet 0.14.0 (as shipped in intrepid) installs import/export plugins in /usr/share/gourmet/plugins/import_export/ However, the UI (settings->plugins->importer/exporter) shows only the export plugins- not the import plugins. Needless to say, the lack of plugins means all attempts to import fail (silently, though with 'no plugin found' errors on the console).

This is a fairly important bug, since upgrades from old version of gourmet fail (see bug 269936) and the recommended solution is 'export and then import'.

Related branches

Revision history for this message
Luis Villa (luis-villa) wrote :

And re-reading the old bug, I apologize for the cheap shot. But the problem is still there (and still biting me :/

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

Hmm -- looking at my list, I see a typo where the gourmet import/export plugin is listed as "export and export", but I believe that plugin will provide import and export anyway. Other than that, the only import plugins listed are website importers and plaintext guided import -- are you seeing others?

What plugins exactly are you seeing listed?

By the way, there's a *much worse bug* in 0.14.0 as shipped in intrepid that I thought I'd reported (I know I e-mailed the package maintainer directly). That bug will wipe out all ingredients on upgrade from 0.13.x databases.

I don't know what it will take to get the ubuntu package updated, but if ubuntu is going to package the unstable branch of Gourmet, it would be nice if the packaging updated frequently so that users don't get killed by these kinds of bugs.

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

The much worse bug I was referring to is #291353 -- for some reason I didn't see it when I clicked "list all bugs" for Gourmet. Perhaps I'm missing something in the launchpad interface?

Revision history for this message
Luis Villa (luis-villa) wrote :

Thomas: it lists HTML export, Gourmet XML export, PDF export, and mealmaster export. All I've tried to actually import so far is gourmet XML and mealmaster.

Huh, so... now at least gourmet import is working when I enable the gourmet export, as you suggested. Well, 'working'- instead of giving a 'no plugin found' error it gives a whole bunch of lines like:
IMPORTING TEXT TIME cooktime: "6 minutes"

and then:
<converter(GXML2 Importer, started)> Done!
emit ('completed',)
emit ('done',)
thread_done cb
Traceback (most recent call last):
  File "/usr/share/gourmet/threadManager.py", line 300, in thread_done
    threadbox.pb.set_text(txt + ' ('+_('Done')+')')
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
TypeError: follow_up() takes no arguments (1 given)
<converter(GXML2 Importer, started)> done
Check queue

and then no recipes show up in the UI.

Ah! They don't show up until after a restart, but all the data does appear to be there. Thanks for the pointers, Thomas.

Anyway... this is a bit of a mess, so I'd be happy to test an 0.14.2 package for similar issues if someone wants to publish it. Agreed completely that if Ubuntu is going to ship the first release of an unstable branch there is some responsibility to keep updating it.

Revision history for this message
Luis Villa (luis-villa) wrote :

(Oh, and maybe under the circumstances this should be retitled 'export plugins should be renamed import/export'? And really, assuming the performance overhead is low, the import plugins should probably be enabled by default so that it is maximally easy for people to get their data into the app when they first start using it.)

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Is this still a problem in Ubuntu 9.10? I see the importers there (but haven't tried them).

Changed in gourmet (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gourmet - 0.15.2-0ubuntu1

---------------
gourmet (0.15.2-0ubuntu1) lucid; urgency=low

  * New upstream release (LP: #431806, Closes: #530841). Also fixes the
    following bugs:
    - LP: #315836
    - LP: #295982
    - LP: #316445 (the GUI has been changed so this no longer applies)
  * Drop forcing of python2.5
  * debian/control: Recommends python-gnome2-extras for printing
  * drop debian/patches/05-add_manpage.patch, which is now included upstream
  * Fix some lintian warnings:
    - add debian/README.source
    - debian/control: bump Standards-Version to 3.8.3
    - debian/compat: bump to 5
  * debian/control: Depends on python-poppler (needed for printing)
  * debian/patches/01_fix_raise_str.patch: don't raise str exception
    in src/lib/plugin_gui.py
  * debian/patches/02_fix_nutrition_index_out_of_range.patch: don't
    add entries beyond the width of the field in databaseGrabber.py
  * debian/patches/03_dont_remove_nonexistent_plugin.patch: don't
    remove an inactive plugin in plugin_loader.py and don't deactivate
    a plugin from a non-existent database
 -- Jamie Strandboge <email address hidden> Tue, 29 Dec 2009 09:12:49 -0600

Changed in gourmet (Ubuntu):
status: Incomplete → Fix Released
Changed in grecipe-manager:
status: New → Fix Released
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.