thinkle / gourmet

Gourmet Recipe Manager
GNU General Public License v2.0
338 stars 138 forks source link

Unable to import from webpages in XP #515

Closed ockham closed 11 years ago

ockham commented 11 years ago

Converted from SourceForge issue 1281097, submitted by SourceForge user mrchad on 2005-09-03 03:21:48 UTC.

Just installed 0.8.5.11 and I'm not able to import from ANY webpages. I have an Application Data\gourmet\html_plugins folder under my user profile folder, but it is empty after the install.

  1. I tried dropping the food network plugin into the html_plugins folder. I now see foodnetwork.com listed as a supported website under the Import Web Page dialog, but I am unable to import anything:

Traceback (most recent call last): File "C:\Python24\lib\site-packages\gourmet\GourmetRecipeManager.py", line 906, in import_webpageg File "C:\Python24\lib\site-packages\gourmet\GourmetRecipeManager.py", line 1099, in run_import File "C:\Python24\lib\site-packages\gourmet\GourmetFauxThreads.py", line 38, in start File "C:\Python24\lib\site-packages\gourmet\GourmetFauxThreads.py", line 43, in target_func File "C:\Python24\lib\site-packages\gourmet\GourmetThreads.py", line 36, in target_func File "C:\Python24\lib\site-packages\gourmet\importers\html_importer.py", line 344, in run File "C:\Python24\lib\site-packages\gourmet\importers\html_importer.py", line 272, in scrape_url File "C:\Python24\lib\site-packages\gourmet\importers\html_importer.py", line 84, in scrape_url File "C:\Python24\lib\site-packages\gourmet\importers\html_importer.py", line 94, in scrape File "C:\Python24\lib\site-packages\gourmet\importers\html_importer.py", line 104, in apply_rule File "C:\Python24\lib\site-packages\gourmet\importers\html_importer.py", line 140, in get_tag_according_to_path File "C:\Python24\lib\site-packages\gourmet\importers\html_importer.py", line 195, in follow_path IOError: [Errno 9] Bad file descriptor

  1. I tried downloading the tar.gz file and dropping the .py files from the src\lib\importers\html_plugins\ folder into my html_plugins folder, but then the Import Web Page dialog fails to open when I select it from the menu.
ockham commented 11 years ago

Submitted by SourceForge user nanotube on 2005-12-21 22:17:41 UTC.

Logged In: YES user_id=1173666

This bug has now been fixed (as of versions 0.8.5.14, and 0.9.1). Closing.

ockham commented 11 years ago

Submitted by SourceForge user thomas_hinkle on 2005-09-03 03:42:48 UTC.

Logged In: YES user_id=1030390

This is a known problem on Windows -- Dan F. (our Windows porter) has been working when available on it and observed much the same behavior you have seen. It will take some more debugging to figure out exactly what is going on. For what its worth, the import plugins work when running from source on windows (in other words, if you install python, pygtk, metakit, etc. and then run on Windows from the tarball, it will work). So it's basically a packaging error, but it's possible we'll need to make some changes to the underlying code as well to get this working. The last observation you made is a new one and rather interesting. We'll have to see if we can reproduce and (more importantly) figure out why the other plugins are behaving differently from the foodnetwork plugin.