thinkle / gourmet

Gourmet Recipe Manager
GNU General Public License v2.0
341 stars 141 forks source link

importing recipes from Mastercook 20 #1028

Open jfabernathy opened 2 years ago

jfabernathy commented 2 years ago

Problems importing recipe from Mastercook 20

Steps to Reproduce

  1. In Mastercook 20 I exported a recipe. only choices I could find compatible was .txt. XML was not a choice. MC2 was not an option in Gourmet that I could see.
  2. In Gourmet I did File -> Import File -> select file -> Open
  3. A green text bar appears on Gourmet main page showing import progress, but it never completes.
  4. Details button show Error 1: Error duing importer with arrow. If arrow is expanded this test appears.
  5. Traceback (most recent call last): File "/app/lib/python3.8/site-packages/gourmet-0.17.5-py3.8.egg/gourmet/threadManager.py", line 104, in run self.do_run() File "/app/lib/python3.8/site-packages/gourmet-0.17.5-py3.8.egg/gourmet/importers/plaintext_importer.py", line 38, in do_run self.handle_line(l) File "/app/lib/python3.8/site-packages/gourmet-0.17.5-py3.8.egg/gourmet/plugins/import_export/mastercook_import_plugin/mastercook_plaintext_importer.py", line 102, in handle_line self.handle_ingline (line) File "/app/lib/python3.8/site-packages/gourmet-0.17.5-py3.8.egg/gourmet/plugins/import_export/mastercook_import_plugin/mastercook_plaintext_importer.py", line 169, in handle_ingline amt = line.getslice(*self.amt_col).strip() AttributeError: 'str' object has no attribute 'getslice'

Expected Behavior

Basiclly, I want to import all of my MasterCook 20 recipes to Gourmet. I also have most all of those recipes in MacGourmet on my iMac. Any help would be appreciated.

Current Behavior

Possible Solution

Environment