-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image objects data unpacking failed. Please leave comment... #37
Comments
So, we are at the previous bug again... 3rd time fixing it. This now is a better fix, and would have fixed the code 3 times without having to definte which item gives the correct value of info:
basically what I'm doing is looking at all values of data and seeing which one is the dictionary. When we find it this is what info is set to. It works. And it would have worked for data[22] which occurred about 6 months ago. This then changed to data[23] and now the issue is that info = data[25]. We should just use my new fix. At least if there is one available directory the code can find the value of info itself. See issue #31 for the full path. Really this is a duplicate of #31 |
Thanks, Eamonn for the reply. I changed line 406 (info = data[25]) to fix a new bug: For example: deqrz marvel returns images(it's made up gibberish). |
@AdamNix I'm not sure what your issue is. I've tried "Bugs Bunny" and it works perfectly for me. What is the exact command line command you are running? And can you show a snippet of the code where you are having the problem? |
Go to Google Images itself. i.e. the search engine not the Python program. Then: What I was trying to do, in the imported code, was to have a Bugs Bunny default. If Google Images(the search engine) has no images for a search, rather than google-images-download returning an error and stopping the program, the program runs the search again with bugs bunny as the query. So if you have multiple independent searches, the code does not stop on one bad apple. |
The error occurs because Google Images itself returns zero images. "Looks like there aren’t any matches for your search."
Everything else works fine, but this has a sys.exit() (Line 251), and even if I remove that, it will still come back with an unpacking error at a different point.
I clumsily tried to manually add new arguments(i.e. a query that Google definitely has images for e.g. Bugs Bunny) at this point(Line 252) but...trying to fix one problem creates three more.
The text was updated successfully, but these errors were encountered: