Closed ockham closed 11 years ago
Submitted by SourceForge user thomas_hinkle on 2005-04-15 02:13:48 UTC.
Logged In: YES user_id=1030390
As I suspected -- there was lingering code to set optional to "yes" in mastercook_plaintext_importer.py. This was a one line fix (fix is in CVS).
Converted from SourceForge issue 1183296, submitted by SourceForge user thomas_hinkle on 2005-04-14 20:12:05 UTC.
Using Gourmet 0.8.3.3 on Windows, an import of the attached mastercook recipe produces the following traceback:
Traceback (most recent call last): File "C:\Python23\lib\site-packages\gourmet\GourmetThreads.py", line 26, in target_func File "C:\Python23\lib\site-packages\gourmet\importers\importer.py", line 278, in run File "C:\Python23\lib\site-packages\gourmet\importers\plaintext_importer.py", line 31, in run File "C:\Python23\lib\site-packages\gourmet\importers\mastercook_plaintext_importer.py", line 84, in handle_line File "C:\Python23\lib\site-packages\gourmet\importers\mastercook_plaintext_importer.py", line 160, in handle_ingline File "C:\Python23\lib\site-packages\gourmet\importers\mastercook_plaintext_importer.py", line 184, in commit_ing File "C:\Python23\lib\site-packages\gourmet\importers\importer.py", line 189, in commit_ing File "C:\Python23\lib\site-packages\gourmet\backends\rmetakit.py", line 337, in add_ing File "C:\Python23\lib\site-packages\gourmet\backends\rdatabase.py", line 371, in add_ing TypeError: not a number
Will run on linux at home with output to see which ingredient is causing the trouble in particular. This could be a problem with the "boolean" (integer) type in metakit.
Tom